eslint-config-cityssm 0.2.0 → 0.3.0

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.
@@ -9,14 +9,24 @@ module.exports = {
9
9
  ecmaVersion: 2022,
10
10
  sourceType: 'module'
11
11
  },
12
- plugins: ['@typescript-eslint', 'import', 'n', 'sonarjs', 'unicorn'],
12
+ plugins: [
13
+ '@typescript-eslint',
14
+ 'eslint-comments',
15
+ 'import',
16
+ 'n',
17
+ 'regexp',
18
+ 'sonarjs',
19
+ 'unicorn'
20
+ ],
13
21
  extends: [
14
22
  'eslint:recommended',
15
23
  'standard-with-typescript',
24
+ 'plugin:eslint-comments/recommended',
16
25
  'plugin:import/recommended',
17
26
  'plugin:import/typescript',
18
27
  'plugin:n/recommended',
19
28
  'plugin:promise/recommended',
29
+ 'plugin:regexp/recommended',
20
30
  'plugin:sonarjs/recommended',
21
31
  'plugin:unicorn/recommended',
22
32
  'plugin:@typescript-eslint/recommended'
@@ -49,7 +59,6 @@ module.exports = {
49
59
  }
50
60
  }
51
61
  ],
52
- 'import/no-unresolved': 'off',
53
62
  'sonarjs/cognitive-complexity': ['warn', 20],
54
63
  'sonarjs/no-duplicate-string': 'warn',
55
64
  'unicorn/consistent-function-scoping': 'warn',
@@ -60,7 +60,6 @@ module.exports = {
60
60
  }
61
61
  }
62
62
  ],
63
- 'import/no-unresolved': 'off', // false positives in Codacy, covered by n/no-missing-import
64
63
 
65
64
  'sonarjs/cognitive-complexity': ['warn', 20],
66
65
  'sonarjs/no-duplicate-string': 'warn',
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "eslint-config-cityssm",
3
3
  "description": "ESLint rules used in the City of Sault Ste. Marie's TypeScript projects.",
4
- "version": "0.2.0",
4
+ "version": "0.3.0",
5
5
  "main": "eslint-config-cityssm.js",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1"