@lvce-editor/eslint-config 12.3.0 → 13.0.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.d.ts +10 -8
- package/index.js +12 -0
- package/package.json +9 -8
package/index.d.ts
CHANGED
|
@@ -1,17 +1,19 @@
|
|
|
1
|
-
declare const config: readonly any[]
|
|
2
|
-
declare const recommendedNode: readonly any[]
|
|
3
|
-
declare const recommendedTsconfig: readonly any[]
|
|
4
|
-
declare const recommendedActions: readonly any[]
|
|
5
|
-
declare const recommendedNvmrc: readonly any[]
|
|
6
|
-
declare const recommendedRegex: readonly any[]
|
|
7
|
-
declare const
|
|
8
|
-
declare const
|
|
1
|
+
declare const config: readonly any[]
|
|
2
|
+
declare const recommendedNode: readonly any[]
|
|
3
|
+
declare const recommendedTsconfig: readonly any[]
|
|
4
|
+
declare const recommendedActions: readonly any[]
|
|
5
|
+
declare const recommendedNvmrc: readonly any[]
|
|
6
|
+
declare const recommendedRegex: readonly any[]
|
|
7
|
+
declare const recommendedVirtualDom: readonly any[]
|
|
8
|
+
declare const recommendedE2e: readonly any[]
|
|
9
|
+
declare const recommendedRpc: readonly any[]
|
|
9
10
|
|
|
10
11
|
export { recommendedNode }
|
|
11
12
|
export { recommendedTsconfig }
|
|
12
13
|
export { recommendedActions }
|
|
13
14
|
export { recommendedNvmrc }
|
|
14
15
|
export { recommendedRegex }
|
|
16
|
+
export { recommendedVirtualDom }
|
|
15
17
|
export { recommendedE2e }
|
|
16
18
|
export { recommendedRpc }
|
|
17
19
|
|
package/index.js
CHANGED
|
@@ -19,6 +19,8 @@ import * as nvmrcPlugin from '@lvce-editor/eslint-plugin-nvmrc'
|
|
|
19
19
|
|
|
20
20
|
import * as regexPlugin from '@lvce-editor/eslint-plugin-regex'
|
|
21
21
|
|
|
22
|
+
import * as virtualDomPlugin from '@lvce-editor/eslint-plugin-virtual-dom'
|
|
23
|
+
|
|
22
24
|
import * as e2ePlugin from '@lvce-editor/eslint-plugin-e2e'
|
|
23
25
|
|
|
24
26
|
import * as rpcPlugin from '@lvce-editor/eslint-plugin-rpc'
|
|
@@ -48,6 +50,7 @@ const defaultConfig = tseslint.config(
|
|
|
48
50
|
'testdir',
|
|
49
51
|
'iselectron',
|
|
50
52
|
'quickpick',
|
|
53
|
+
'quasis',
|
|
51
54
|
'Backquote',
|
|
52
55
|
'checkmark',
|
|
53
56
|
'openrouter',
|
|
@@ -318,6 +321,7 @@ const defaultConfig = tseslint.config(
|
|
|
318
321
|
files: ['packages/*/src/rules/**/*.ts'],
|
|
319
322
|
rules: {
|
|
320
323
|
'@typescript-eslint/prefer-readonly-parameter-types': 'off',
|
|
324
|
+
'sonarjs/cognitive-complexity': 'off',
|
|
321
325
|
},
|
|
322
326
|
},
|
|
323
327
|
{
|
|
@@ -438,6 +442,12 @@ const defaultConfig = tseslint.config(
|
|
|
438
442
|
'unicorn/consistent-boolean-name': 'off',
|
|
439
443
|
},
|
|
440
444
|
},
|
|
445
|
+
{
|
|
446
|
+
files: ['packages/*/src/rules/**/*.ts'],
|
|
447
|
+
rules: {
|
|
448
|
+
'unicorn/prefer-early-return': 'off',
|
|
449
|
+
},
|
|
450
|
+
},
|
|
441
451
|
{
|
|
442
452
|
rules: {
|
|
443
453
|
'package-json/require-author': 'off',
|
|
@@ -511,6 +521,8 @@ export const recommendedNvmrc = [...nvmrcPlugin.default]
|
|
|
511
521
|
|
|
512
522
|
export const recommendedRegex = [...regexPlugin.default]
|
|
513
523
|
|
|
524
|
+
export const recommendedVirtualDom = [...virtualDomPlugin.default]
|
|
525
|
+
|
|
514
526
|
export const recommendedE2e = [...e2ePlugin.default]
|
|
515
527
|
|
|
516
528
|
export const recommendedRpc = [...rpcPlugin.default]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lvce-editor/eslint-config",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "13.0.0",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -27,18 +27,19 @@
|
|
|
27
27
|
"@eslint/markdown": "8.0.2",
|
|
28
28
|
"eslint-plugin-jest": "29.15.2",
|
|
29
29
|
"eslint-plugin-n": "18.1.0",
|
|
30
|
-
"eslint-plugin-package-json": "1.
|
|
30
|
+
"eslint-plugin-package-json": "1.4.0",
|
|
31
31
|
"eslint-plugin-perfectionist": "5.9.1",
|
|
32
32
|
"eslint-plugin-sonarjs": "4.0.3",
|
|
33
33
|
"eslint-plugin-unicorn": "67.0.0",
|
|
34
34
|
"eslint-plugin-yml": "3.4.0",
|
|
35
35
|
"typescript-eslint": "8.61.1",
|
|
36
|
-
"@lvce-editor/eslint-plugin-tsconfig": "
|
|
37
|
-
"@lvce-editor/eslint-plugin-github-actions": "
|
|
38
|
-
"@lvce-editor/eslint-plugin-nvmrc": "
|
|
39
|
-
"@lvce-editor/eslint-plugin-regex": "
|
|
40
|
-
"@lvce-editor/eslint-plugin-
|
|
41
|
-
"@lvce-editor/eslint-plugin-
|
|
36
|
+
"@lvce-editor/eslint-plugin-tsconfig": "13.0.0",
|
|
37
|
+
"@lvce-editor/eslint-plugin-github-actions": "13.0.0",
|
|
38
|
+
"@lvce-editor/eslint-plugin-nvmrc": "13.0.0",
|
|
39
|
+
"@lvce-editor/eslint-plugin-regex": "13.0.0",
|
|
40
|
+
"@lvce-editor/eslint-plugin-virtual-dom": "13.0.0",
|
|
41
|
+
"@lvce-editor/eslint-plugin-e2e": "13.0.0",
|
|
42
|
+
"@lvce-editor/eslint-plugin-rpc": "13.0.0"
|
|
42
43
|
},
|
|
43
44
|
"peerDependencies": {
|
|
44
45
|
"eslint": "^10"
|