@innovixx/eslint-config 3.0.4-alpha.3 → 3.0.4-alpha.5

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.
@@ -34,7 +34,9 @@ const variableRules = {
34
34
  'no-undefined': 'off',
35
35
 
36
36
  // disallow declaration of variables that are not used in the code
37
- 'no-unused-vars': ['error', { vars: 'all', args: 'after-used', ignoreRestSiblings: true, argsIgnorePattern: '^_' }],
37
+ // disabled here and enabled in typescript-eslint as it reports errors here
38
+ // https://typescript-eslint.io/rules/no-unused-vars/
39
+ 'no-unused-vars': 'off',
38
40
 
39
41
  // disallow use of variables before they are defined
40
42
  'no-use-before-define': ['error', { functions: true, classes: true, variables: true }],
@@ -6,10 +6,19 @@ const variableRules = {
6
6
  '@typescript-eslint/require-await': 'warn',
7
7
  '@typescript-eslint/no-floating-promises': 'warn',
8
8
  '@typescript-eslint/strict-boolean-expressions': 'warn',
9
- '@typescript-eslint/switch-exhaustiveness-check': 'warn',
10
9
  '@typescript-eslint/no-unsafe-assignment': 'warn',
11
10
  '@typescript-eslint/prefer-nullish-coalescing': 'warn',
12
11
  '@typescript-eslint/no-explicit-any': 'warn',
12
+ '@typescript-eslint/no-unused-vars': [
13
+ 'warn',
14
+ {
15
+ vars: 'all',
16
+ args: 'after-used',
17
+ ignoreRestSiblings: true,
18
+ argsIgnorePattern: '^_',
19
+ },
20
+ ],
21
+ '@typescript-eslint/consistent-type-imports': 'warn',
13
22
  },
14
23
  };
15
24
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@innovixx/eslint-config",
3
- "version": "3.0.4-alpha.3",
3
+ "version": "3.0.4-alpha.5",
4
4
  "main": "configs/index.mjs",
5
5
  "repository": "git@github.com:innovixx/eslint-config.git",
6
6
  "description": "Opinionated ESLint config for JavaScript developers",