@keeex/eslint-config 2.2.2 → 2.2.4
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/package.json +12 -12
- package/src/config/base.js +5 -1
- package/src/config/react.js +1 -1
- package/src/pathutils.js +6 -4
package/package.json
CHANGED
|
@@ -15,20 +15,20 @@
|
|
|
15
15
|
},
|
|
16
16
|
"description": "Common eslint configuration",
|
|
17
17
|
"devDependencies": {
|
|
18
|
-
"@eslint/compat": "^1.2.
|
|
18
|
+
"@eslint/compat": "^1.2.4",
|
|
19
19
|
"@eslint/js": "^9.12.0",
|
|
20
|
-
"eslint": "^9.
|
|
21
|
-
"eslint-import-resolver-typescript": "^3.
|
|
22
|
-
"eslint-import-resolver-webpack": "^0.13.
|
|
23
|
-
"eslint-plugin-import-x": "^4.
|
|
20
|
+
"eslint": "^9.16.0",
|
|
21
|
+
"eslint-import-resolver-typescript": "^3.7.0",
|
|
22
|
+
"eslint-import-resolver-webpack": "^0.13.10",
|
|
23
|
+
"eslint-plugin-import-x": "^4.5.0",
|
|
24
24
|
"eslint-plugin-mocha": "^10.5.0",
|
|
25
|
-
"eslint-plugin-promise": "^7.2.
|
|
25
|
+
"eslint-plugin-promise": "^7.2.1",
|
|
26
26
|
"eslint-plugin-react": "^7.37.2",
|
|
27
|
-
"eslint-plugin-react-hooks": "^5.
|
|
28
|
-
"eslint-plugin-tsdoc": "^0.
|
|
29
|
-
"globals": "^15.
|
|
30
|
-
"prettier": "^3.4.
|
|
31
|
-
"typescript-eslint": "^8.
|
|
27
|
+
"eslint-plugin-react-hooks": "^5.1.0",
|
|
28
|
+
"eslint-plugin-tsdoc": "^0.4.0",
|
|
29
|
+
"globals": "^15.13.0",
|
|
30
|
+
"prettier": "^3.4.2",
|
|
31
|
+
"typescript-eslint": "^8.18.0"
|
|
32
32
|
},
|
|
33
33
|
"files": [
|
|
34
34
|
"prettier.config.js",
|
|
@@ -112,5 +112,5 @@
|
|
|
112
112
|
"test": "echo No test for this project"
|
|
113
113
|
},
|
|
114
114
|
"type": "module",
|
|
115
|
-
"version": "2.2.
|
|
115
|
+
"version": "2.2.4"
|
|
116
116
|
}
|
package/src/config/base.js
CHANGED
|
@@ -141,7 +141,11 @@ export const apply = (configResult, eslintConfig) => {
|
|
|
141
141
|
"require-await": "warn",
|
|
142
142
|
"require-unicode-regexp": "warn",
|
|
143
143
|
"sort-imports": ["warn", {ignoreCase: true, allowSeparatedGroups: true}],
|
|
144
|
-
"sort-keys": [
|
|
144
|
+
"sort-keys": [
|
|
145
|
+
"warn",
|
|
146
|
+
"asc",
|
|
147
|
+
{caseSensitive: false, ignoreComputedKeys: true, minKeys: 3, natural: true},
|
|
148
|
+
],
|
|
145
149
|
"symbol-description": "error",
|
|
146
150
|
});
|
|
147
151
|
// Promises
|
package/src/config/react.js
CHANGED
|
@@ -46,7 +46,7 @@ export const apply = (configResult, eslintConfig) => {
|
|
|
46
46
|
"jsx-max-depth": ["warn", {max: 8}],
|
|
47
47
|
"jsx-no-bind": "error",
|
|
48
48
|
"jsx-no-constructed-context-values": "error",
|
|
49
|
-
"jsx-no-leaked-render":
|
|
49
|
+
"jsx-no-leaked-render": "warn",
|
|
50
50
|
"jsx-no-script-url": "error",
|
|
51
51
|
"jsx-no-useless-fragment": "warn",
|
|
52
52
|
"jsx-pascal-case": ["warn", {allowNamespace: true}],
|
package/src/pathutils.js
CHANGED
|
@@ -80,12 +80,14 @@ export const getFiles = (definitions) => {
|
|
|
80
80
|
const extensions = getExtensions(definition.fileTypes);
|
|
81
81
|
const directories = new Set();
|
|
82
82
|
if (definition.exactDirectories !== undefined) {
|
|
83
|
-
|
|
83
|
+
for (const dir of asArray(definition.exactDirectories)) directories.add(dir);
|
|
84
84
|
}
|
|
85
85
|
if (definition.recursiveDirectories !== undefined) {
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
)
|
|
86
|
+
for (const dir of asArray(definition.recursiveDirectories).map((c) =>
|
|
87
|
+
c === "" ? "**" : `${c}/**`,
|
|
88
|
+
)) {
|
|
89
|
+
directories.add(dir);
|
|
90
|
+
}
|
|
89
91
|
}
|
|
90
92
|
const filePatterns = new Set(
|
|
91
93
|
definition.filePatterns ? asArray(definition.filePatterns) : [`*${extPlaceholder}`],
|