@lvce-editor/eslint-config 2.26.0 → 3.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.js +17 -1
- package/package.json +4 -4
package/index.js
CHANGED
|
@@ -30,6 +30,20 @@ const defaultConfig = tseslint.config(
|
|
|
30
30
|
newlinesBetween: 'never',
|
|
31
31
|
},
|
|
32
32
|
],
|
|
33
|
+
'perfectionist/sort-interfaces': [
|
|
34
|
+
'error',
|
|
35
|
+
{
|
|
36
|
+
type: 'alphabetical',
|
|
37
|
+
order: 'asc',
|
|
38
|
+
},
|
|
39
|
+
],
|
|
40
|
+
'perfectionist/sort-switch-case': [
|
|
41
|
+
'error',
|
|
42
|
+
{
|
|
43
|
+
type: 'alphabetical',
|
|
44
|
+
order: 'asc',
|
|
45
|
+
},
|
|
46
|
+
],
|
|
33
47
|
},
|
|
34
48
|
},
|
|
35
49
|
{
|
|
@@ -64,6 +78,7 @@ const defaultConfig = tseslint.config(
|
|
|
64
78
|
{ from: 'lib', name: 'FileList' },
|
|
65
79
|
{ from: 'lib', name: 'Response' },
|
|
66
80
|
{ from: 'lib', name: 'Error' },
|
|
81
|
+
{ from: 'lib', name: 'Blob' },
|
|
67
82
|
{ from: 'lib', name: 'File' },
|
|
68
83
|
{ from: 'lib', name: 'FileSystemDirectoryHandle' },
|
|
69
84
|
{ from: 'lib', name: 'FileSystemHandle' },
|
|
@@ -95,11 +110,11 @@ const defaultConfig = tseslint.config(
|
|
|
95
110
|
'@typescript-eslint/restrict-template-expressions': 'off',
|
|
96
111
|
'@typescript-eslint/require-await': 'off',
|
|
97
112
|
'@typescript-eslint/no-unused-vars': 'off', // handled by typescript
|
|
113
|
+
'unicorn/no-nested-ternary': 'off',
|
|
98
114
|
},
|
|
99
115
|
},
|
|
100
116
|
{
|
|
101
117
|
files: ['**/*.test.ts'],
|
|
102
|
-
// @ts-ignore
|
|
103
118
|
extends: [pluginJest.configs['flat/recommended']],
|
|
104
119
|
settings: {
|
|
105
120
|
jest: {
|
|
@@ -115,6 +130,7 @@ const defaultConfig = tseslint.config(
|
|
|
115
130
|
{
|
|
116
131
|
advanceTimersByTime: `Don't use timers`,
|
|
117
132
|
unstable_mockModule: "Don't use module mocks",
|
|
133
|
+
mock: "Don't use mocks",
|
|
118
134
|
},
|
|
119
135
|
],
|
|
120
136
|
'no-restricted-syntax': [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lvce-editor/eslint-config",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -29,9 +29,9 @@
|
|
|
29
29
|
"eslint-plugin-perfectionist": "4.15.1",
|
|
30
30
|
"eslint-plugin-unicorn": "62.0.0",
|
|
31
31
|
"eslint-plugin-yml": "1.19.0",
|
|
32
|
-
"typescript-eslint": "8.48.
|
|
33
|
-
"@lvce-editor/eslint-plugin-tsconfig": "
|
|
34
|
-
"@lvce-editor/eslint-plugin-github-actions": "
|
|
32
|
+
"typescript-eslint": "8.48.1",
|
|
33
|
+
"@lvce-editor/eslint-plugin-tsconfig": "3.0.0",
|
|
34
|
+
"@lvce-editor/eslint-plugin-github-actions": "3.0.0"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
37
|
"eslint": ">= 9"
|