@paratco/eslint-config 0.8.4 → 0.8.6
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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@paratco/eslint-config",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.6",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"author": "Paratco",
|
|
@@ -20,24 +20,24 @@
|
|
|
20
20
|
"format": "prettier --write src/"
|
|
21
21
|
},
|
|
22
22
|
"peerDependencies": {
|
|
23
|
-
"eslint": "^9.
|
|
24
|
-
"typescript-eslint": "^8.
|
|
23
|
+
"eslint": "^9.10.0",
|
|
24
|
+
"typescript-eslint": "^8.4.0"
|
|
25
25
|
},
|
|
26
26
|
"optionalDependencies": {
|
|
27
27
|
"prettier": "^3.3.3"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@eslint/js": "^9.
|
|
31
|
-
"@stylistic/eslint-plugin": "^2.
|
|
30
|
+
"@eslint/js": "^9.10.0",
|
|
31
|
+
"@stylistic/eslint-plugin": "^2.7.2",
|
|
32
32
|
"@types/eslint__js": "^8.42.3",
|
|
33
|
-
"eslint": "^9.
|
|
33
|
+
"eslint": "^9.10.0",
|
|
34
34
|
"eslint-config-prettier": "^9.1.0",
|
|
35
|
-
"eslint-import-resolver-typescript": "^3.6.
|
|
36
|
-
"eslint-plugin-import-x": "^
|
|
37
|
-
"eslint-plugin-react": "^7.35.
|
|
38
|
-
"eslint-plugin-react-hooks": "^5.1.0-rc-
|
|
39
|
-
"eslint-plugin-react-refresh": "^0.4.
|
|
35
|
+
"eslint-import-resolver-typescript": "^3.6.3",
|
|
36
|
+
"eslint-plugin-import-x": "^4.2.1",
|
|
37
|
+
"eslint-plugin-react": "^7.35.2",
|
|
38
|
+
"eslint-plugin-react-hooks": "^5.1.0-rc-a03254bc-20240905",
|
|
39
|
+
"eslint-plugin-react-refresh": "^0.4.11",
|
|
40
40
|
"globals": "^15.9.0",
|
|
41
|
-
"typescript-eslint": "^8.
|
|
41
|
+
"typescript-eslint": "^8.4.0"
|
|
42
42
|
}
|
|
43
43
|
}
|
|
@@ -18,6 +18,10 @@ export default {
|
|
|
18
18
|
// Forbid the use of mutable exports with var or let.
|
|
19
19
|
"import-x/no-mutable-exports": ["error"],
|
|
20
20
|
|
|
21
|
+
// https://github.com/un-ts/eslint-plugin-import-x/blob/HEAD/docs/rules/no-rename-default.md
|
|
22
|
+
// Prohibit importing a default export by another name.
|
|
23
|
+
"import-x/no-rename-default": ["off"],
|
|
24
|
+
|
|
21
25
|
// https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-unused-modules.md
|
|
22
26
|
// Forbid modules without exports, or exports without matching import in another module.
|
|
23
27
|
// TODO: Can be enabled
|
|
@@ -284,7 +284,7 @@ export default {
|
|
|
284
284
|
|
|
285
285
|
// https://eslint.style/rules/default/multiline-comment-style
|
|
286
286
|
// Enforce a particular style for multiline comments
|
|
287
|
-
"@stylistic/multiline-comment-style": ["
|
|
287
|
+
"@stylistic/multiline-comment-style": ["off"],
|
|
288
288
|
|
|
289
289
|
// https://eslint.style/rules/default/multiline-ternary
|
|
290
290
|
// Enforce newlines between operands of ternary expressions
|
|
@@ -260,5 +260,21 @@ export default {
|
|
|
260
260
|
// Disallow type parameters that aren't used multiple times
|
|
261
261
|
// https://typescript-eslint.io/rules/no-unnecessary-type-parameters
|
|
262
262
|
// Note: This rule is in the strict rules. But we decided to disable this rule.
|
|
263
|
-
"@typescript-eslint/no-unnecessary-type-parameters": ["off"]
|
|
263
|
+
"@typescript-eslint/no-unnecessary-type-parameters": ["off"],
|
|
264
|
+
|
|
265
|
+
// Disallow unused variables.
|
|
266
|
+
// https://typescript-eslint.io/rules/no-unused-vars
|
|
267
|
+
// Note: This rule is in the recommended rules. But we modify it.
|
|
268
|
+
"@typescript-eslint/no-unused-vars": [
|
|
269
|
+
"error",
|
|
270
|
+
{
|
|
271
|
+
args: "all",
|
|
272
|
+
argsIgnorePattern: "^_",
|
|
273
|
+
caughtErrors: "all",
|
|
274
|
+
caughtErrorsIgnorePattern: "^_",
|
|
275
|
+
destructuredArrayIgnorePattern: "^_",
|
|
276
|
+
varsIgnorePattern: "^_",
|
|
277
|
+
ignoreRestSiblings: true
|
|
278
|
+
}
|
|
279
|
+
]
|
|
264
280
|
};
|