@paratco/eslint-config 1.0.11 → 1.0.12

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": "1.0.11",
3
+ "version": "1.0.12",
4
4
  "type": "module",
5
5
  "main": "index.js",
6
6
  "author": "Paratco",
@@ -28,12 +28,14 @@ export default [
28
28
  "@typescript-eslint/no-unused-vars": ["off"],
29
29
  "unused-imports/no-unused-imports": ["error"],
30
30
  "unused-imports/no-unused-vars": [
31
- "warn",
31
+ "error",
32
32
  {
33
- vars: "all",
34
- varsIgnorePattern: "^_",
35
- args: "after-used",
36
- argsIgnorePattern: "^_"
33
+ args: "all",
34
+ argsIgnorePattern: "^_",
35
+ caughtErrors: "all",
36
+ caughtErrorsIgnorePattern: "^_",
37
+ destructuredArrayIgnorePattern: "^_",
38
+ ignoreRestSiblings: true
37
39
  }
38
40
  ]
39
41
  }
@@ -19,5 +19,19 @@ export default {
19
19
  }
20
20
  ]
21
21
  }
22
+ ],
23
+
24
+ // https://eslint.org/docs/latest/rules/no-unused-vars
25
+ // Disallow unused variables
26
+ "no-unused-vars": [
27
+ "error",
28
+ {
29
+ args: "all",
30
+ argsIgnorePattern: "^_",
31
+ caughtErrors: "all",
32
+ caughtErrorsIgnorePattern: "^_",
33
+ destructuredArrayIgnorePattern: "^_",
34
+ ignoreRestSiblings: true
35
+ }
22
36
  ]
23
37
  };
@@ -275,6 +275,7 @@ export default {
275
275
  // Disallow unused variables.
276
276
  // https://typescript-eslint.io/rules/no-unused-vars
277
277
  // Note: This rule is in the recommended rules. But we modify it.
278
+ "no-unused-vars": ["off"],
278
279
  "@typescript-eslint/no-unused-vars": [
279
280
  "error",
280
281
  {
@@ -283,7 +284,6 @@ export default {
283
284
  caughtErrors: "all",
284
285
  caughtErrorsIgnorePattern: "^_",
285
286
  destructuredArrayIgnorePattern: "^_",
286
- varsIgnorePattern: "^_",
287
287
  ignoreRestSiblings: true
288
288
  }
289
289
  ],