@lvce-editor/eslint-config 2.26.0 → 3.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 +24 -1
- package/package.json +4 -4
package/index.js
CHANGED
|
@@ -30,6 +30,27 @@ 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
|
+
],
|
|
47
|
+
'perfectionist/sort-objects': [
|
|
48
|
+
'error',
|
|
49
|
+
{
|
|
50
|
+
type: 'alphabetical',
|
|
51
|
+
order: 'asc',
|
|
52
|
+
},
|
|
53
|
+
],
|
|
33
54
|
},
|
|
34
55
|
},
|
|
35
56
|
{
|
|
@@ -64,6 +85,7 @@ const defaultConfig = tseslint.config(
|
|
|
64
85
|
{ from: 'lib', name: 'FileList' },
|
|
65
86
|
{ from: 'lib', name: 'Response' },
|
|
66
87
|
{ from: 'lib', name: 'Error' },
|
|
88
|
+
{ from: 'lib', name: 'Blob' },
|
|
67
89
|
{ from: 'lib', name: 'File' },
|
|
68
90
|
{ from: 'lib', name: 'FileSystemDirectoryHandle' },
|
|
69
91
|
{ from: 'lib', name: 'FileSystemHandle' },
|
|
@@ -95,11 +117,11 @@ const defaultConfig = tseslint.config(
|
|
|
95
117
|
'@typescript-eslint/restrict-template-expressions': 'off',
|
|
96
118
|
'@typescript-eslint/require-await': 'off',
|
|
97
119
|
'@typescript-eslint/no-unused-vars': 'off', // handled by typescript
|
|
120
|
+
'unicorn/no-nested-ternary': 'off',
|
|
98
121
|
},
|
|
99
122
|
},
|
|
100
123
|
{
|
|
101
124
|
files: ['**/*.test.ts'],
|
|
102
|
-
// @ts-ignore
|
|
103
125
|
extends: [pluginJest.configs['flat/recommended']],
|
|
104
126
|
settings: {
|
|
105
127
|
jest: {
|
|
@@ -115,6 +137,7 @@ const defaultConfig = tseslint.config(
|
|
|
115
137
|
{
|
|
116
138
|
advanceTimersByTime: `Don't use timers`,
|
|
117
139
|
unstable_mockModule: "Don't use module mocks",
|
|
140
|
+
mock: "Don't use mocks",
|
|
118
141
|
},
|
|
119
142
|
],
|
|
120
143
|
'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.1.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.1.0",
|
|
34
|
+
"@lvce-editor/eslint-plugin-github-actions": "3.1.0"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
37
|
"eslint": ">= 9"
|