@lvce-editor/eslint-config 8.3.0 → 9.1.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.
- package/index.js +17 -0
- package/package.json +9 -8
package/index.js
CHANGED
|
@@ -5,6 +5,7 @@ import pluginJest from 'eslint-plugin-jest'
|
|
|
5
5
|
import nodePlugin from 'eslint-plugin-n'
|
|
6
6
|
import packageJson from 'eslint-plugin-package-json'
|
|
7
7
|
import perfectionist from 'eslint-plugin-perfectionist'
|
|
8
|
+
import sonarjs from 'eslint-plugin-sonarjs'
|
|
8
9
|
import eslintPluginUnicorn from 'eslint-plugin-unicorn'
|
|
9
10
|
import eslintPluginYml from 'eslint-plugin-yml'
|
|
10
11
|
import tseslint from 'typescript-eslint'
|
|
@@ -241,6 +242,10 @@ const defaultConfig = tseslint.config(
|
|
|
241
242
|
},
|
|
242
243
|
],
|
|
243
244
|
},
|
|
245
|
+
{
|
|
246
|
+
files: ['**/*.ts'],
|
|
247
|
+
...sonarjs.configs.recommended,
|
|
248
|
+
},
|
|
244
249
|
{
|
|
245
250
|
files: ['**/*.ts'],
|
|
246
251
|
rules: {
|
|
@@ -296,6 +301,18 @@ const defaultConfig = tseslint.config(
|
|
|
296
301
|
'unicorn/no-nested-ternary': 'off',
|
|
297
302
|
},
|
|
298
303
|
},
|
|
304
|
+
{
|
|
305
|
+
files: ['**/*.ts'],
|
|
306
|
+
rules: {
|
|
307
|
+
'sonarjs/no-exclusive-tests': 'off',
|
|
308
|
+
'sonarjs/no-unused-vars': 'off',
|
|
309
|
+
'sonarjs/no-skipped-tests': 'off',
|
|
310
|
+
'sonarjs/todo-tag': 'off',
|
|
311
|
+
'sonarjs/pseudo-random': 'off',
|
|
312
|
+
'sonarjs/no-invariant-returns': 'off',
|
|
313
|
+
'sonarjs/no-small-switch': 'off',
|
|
314
|
+
},
|
|
315
|
+
},
|
|
299
316
|
{
|
|
300
317
|
files: ['**/*.test.ts'],
|
|
301
318
|
extends: [pluginJest.configs['flat/recommended']],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lvce-editor/eslint-config",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "9.1.0",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -20,22 +20,23 @@
|
|
|
20
20
|
"description": "",
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@cspell/eslint-plugin": "10.0.0",
|
|
23
|
-
"@e18e/eslint-plugin": "^0.
|
|
23
|
+
"@e18e/eslint-plugin": "^0.4.1",
|
|
24
24
|
"@eslint/css": "1.1.0",
|
|
25
25
|
"@eslint/js": "10.0.1",
|
|
26
26
|
"@eslint/json": "1.2.0",
|
|
27
27
|
"@eslint/markdown": "8.0.1",
|
|
28
28
|
"eslint-plugin-jest": "29.15.2",
|
|
29
29
|
"eslint-plugin-n": "17.24.0",
|
|
30
|
-
"eslint-plugin-package-json": "0.91.
|
|
30
|
+
"eslint-plugin-package-json": "0.91.2",
|
|
31
31
|
"eslint-plugin-perfectionist": "5.9.0",
|
|
32
|
+
"eslint-plugin-sonarjs": "4.0.3",
|
|
32
33
|
"eslint-plugin-unicorn": "64.0.0",
|
|
33
34
|
"eslint-plugin-yml": "3.3.1",
|
|
34
|
-
"typescript-eslint": "8.59.
|
|
35
|
-
"@lvce-editor/eslint-plugin-tsconfig": "
|
|
36
|
-
"@lvce-editor/eslint-plugin-github-actions": "
|
|
37
|
-
"@lvce-editor/eslint-plugin-regex": "
|
|
38
|
-
"@lvce-editor/eslint-plugin-rpc": "
|
|
35
|
+
"typescript-eslint": "8.59.1",
|
|
36
|
+
"@lvce-editor/eslint-plugin-tsconfig": "9.1.0",
|
|
37
|
+
"@lvce-editor/eslint-plugin-github-actions": "9.1.0",
|
|
38
|
+
"@lvce-editor/eslint-plugin-regex": "9.1.0",
|
|
39
|
+
"@lvce-editor/eslint-plugin-rpc": "9.1.0"
|
|
39
40
|
},
|
|
40
41
|
"peerDependencies": {
|
|
41
42
|
"eslint": "^10"
|