@slango.configs/eslint 1.2.25 → 1.2.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/package.json +4 -4
- package/src/presets/typescript.js +9 -2
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@slango.configs/eslint",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.27",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Slango eslint configs",
|
|
6
6
|
"repository": {
|
|
@@ -21,13 +21,13 @@
|
|
|
21
21
|
"eslint-import-resolver-typescript": "4.4.5",
|
|
22
22
|
"eslint-plugin-import-x": "4.16.2",
|
|
23
23
|
"eslint-plugin-jsx-a11y": "6.10.2",
|
|
24
|
-
"eslint-plugin-perfectionist": "5.9.
|
|
24
|
+
"eslint-plugin-perfectionist": "5.9.1",
|
|
25
25
|
"eslint-plugin-prettier": "5.5.6",
|
|
26
26
|
"eslint-plugin-react-hooks": "7.1.1",
|
|
27
|
-
"eslint-plugin-react-refresh": "0.5.
|
|
27
|
+
"eslint-plugin-react-refresh": "0.5.3",
|
|
28
28
|
"eslint-plugin-regexp": "3.1.0",
|
|
29
29
|
"globals": "17.6.0",
|
|
30
|
-
"typescript-eslint": "8.61.
|
|
30
|
+
"typescript-eslint": "8.61.1"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
33
|
"eslint": "^10.4.1"
|
|
@@ -24,8 +24,15 @@ export const baseTypescriptConfig = (options = {}) => {
|
|
|
24
24
|
...baseConfig.languageOptions,
|
|
25
25
|
parserOptions: {
|
|
26
26
|
...baseConfig.languageOptions?.parserOptions,
|
|
27
|
-
project
|
|
28
|
-
|
|
27
|
+
// `project` is resolved from the current working directory. When ESLint
|
|
28
|
+
// resolves this config for a file but cwd has no tsconfig — e.g.
|
|
29
|
+
// lint-staged invoking eslint from a monorepo root, where ESLint 10
|
|
30
|
+
// looks up each file's nearest config and loads this preset — `project`
|
|
31
|
+
// is undefined. Guard so loading the config never throws on
|
|
32
|
+
// `dirname(undefined)`; type-aware linting just stays off for that
|
|
33
|
+
// invocation (only relevant for .ts files, which are linted from their
|
|
34
|
+
// own package directory where a tsconfig exists).
|
|
35
|
+
...(project ? { project, tsconfigRootDir: dirname(project) } : {}),
|
|
29
36
|
},
|
|
30
37
|
},
|
|
31
38
|
name: '@slango.configs/eslint/typescript',
|