@siberiacancode/eslint 2.5.2 → 2.6.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/README.md +3 -3
- package/index.d.ts +19 -19
- package/index.js +1 -6
- package/package.json +10 -13
package/README.md
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
# 🔮 eslint configs
|
|
2
|
-
|
|
3
|
-
Пакет содержит eslint конфиг
|
|
1
|
+
# 🔮 eslint configs
|
|
2
|
+
|
|
3
|
+
Пакет содержит eslint конфиг
|
package/index.d.ts
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
declare module '@siberiacancode/eslint' {
|
|
2
|
-
declare type Eslint = (
|
|
3
|
-
options?: import('@antfu/eslint-config').OptionsConfig & {
|
|
4
|
-
jsxA11y?: boolean;
|
|
5
|
-
next?: boolean;
|
|
6
|
-
} & import('@antfu/eslint-config').TypedFlatConfigItem,
|
|
7
|
-
...userConfigs: import('@antfu/eslint-config').Awaitable<
|
|
8
|
-
| import('@antfu/eslint-config').FlatConfigComposer<any, any>
|
|
9
|
-
| import('@antfu/eslint-config').TypedFlatConfigItem
|
|
10
|
-
| import('@antfu/eslint-config').TypedFlatConfigItem[]
|
|
11
|
-
| Linter.Config[]
|
|
12
|
-
>[]
|
|
13
|
-
) => import('@antfu/eslint-config').FlatConfigComposer<
|
|
14
|
-
import('@antfu/eslint-config').TypedFlatConfigItem,
|
|
15
|
-
import('@antfu/eslint-config').ConfigNames
|
|
16
|
-
>;
|
|
17
|
-
|
|
18
|
-
export const eslint: Eslint;
|
|
19
|
-
}
|
|
1
|
+
declare module '@siberiacancode/eslint' {
|
|
2
|
+
declare type Eslint = (
|
|
3
|
+
options?: import('@antfu/eslint-config').OptionsConfig & {
|
|
4
|
+
jsxA11y?: boolean;
|
|
5
|
+
next?: boolean;
|
|
6
|
+
} & import('@antfu/eslint-config').TypedFlatConfigItem,
|
|
7
|
+
...userConfigs: import('@antfu/eslint-config').Awaitable<
|
|
8
|
+
| import('@antfu/eslint-config').FlatConfigComposer<any, any>
|
|
9
|
+
| import('@antfu/eslint-config').TypedFlatConfigItem
|
|
10
|
+
| import('@antfu/eslint-config').TypedFlatConfigItem[]
|
|
11
|
+
| Linter.Config[]
|
|
12
|
+
>[]
|
|
13
|
+
) => import('@antfu/eslint-config').FlatConfigComposer<
|
|
14
|
+
import('@antfu/eslint-config').TypedFlatConfigItem,
|
|
15
|
+
import('@antfu/eslint-config').ConfigNames
|
|
16
|
+
>;
|
|
17
|
+
|
|
18
|
+
export const eslint: Eslint;
|
|
19
|
+
}
|
package/index.js
CHANGED
|
@@ -124,7 +124,6 @@ export const eslint = ({ jsxA11y = false, next = false, ...options }, ...configs
|
|
|
124
124
|
'perfectionist/sort-array-includes': [
|
|
125
125
|
'error',
|
|
126
126
|
{
|
|
127
|
-
matcher: 'minimatch',
|
|
128
127
|
order: 'asc',
|
|
129
128
|
type: 'alphabetical'
|
|
130
129
|
}
|
|
@@ -144,8 +143,7 @@ export const eslint = ({ jsxA11y = false, next = false, ...options }, ...configs
|
|
|
144
143
|
'side-effect-style',
|
|
145
144
|
'unknown'
|
|
146
145
|
],
|
|
147
|
-
internalPattern: ['
|
|
148
|
-
matcher: 'minimatch',
|
|
146
|
+
internalPattern: ['^~/.*', '^@/.*'],
|
|
149
147
|
newlinesBetween: 'always',
|
|
150
148
|
order: 'asc',
|
|
151
149
|
type: 'natural'
|
|
@@ -155,7 +153,6 @@ export const eslint = ({ jsxA11y = false, next = false, ...options }, ...configs
|
|
|
155
153
|
'error',
|
|
156
154
|
{
|
|
157
155
|
groups: ['unknown', 'method', 'multiline'],
|
|
158
|
-
matcher: 'minimatch',
|
|
159
156
|
order: 'asc',
|
|
160
157
|
type: 'alphabetical'
|
|
161
158
|
}
|
|
@@ -168,7 +165,6 @@ export const eslint = ({ jsxA11y = false, next = false, ...options }, ...configs
|
|
|
168
165
|
reserved: ['key', 'ref']
|
|
169
166
|
},
|
|
170
167
|
groups: ['shorthand', 'reserved', 'multiline', 'unknown', 'callback'],
|
|
171
|
-
matcher: 'minimatch',
|
|
172
168
|
order: 'asc',
|
|
173
169
|
type: 'alphabetical'
|
|
174
170
|
}
|
|
@@ -190,7 +186,6 @@ export const eslint = ({ jsxA11y = false, next = false, ...options }, ...configs
|
|
|
190
186
|
'union',
|
|
191
187
|
'nullish'
|
|
192
188
|
],
|
|
193
|
-
matcher: 'minimatch',
|
|
194
189
|
order: 'asc',
|
|
195
190
|
specialCharacters: 'keep',
|
|
196
191
|
type: 'alphabetical'
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@siberiacancode/eslint",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.6.0",
|
|
5
5
|
"description": "eslint configs",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "SIBERIA CAN CODE 🧊",
|
|
@@ -34,19 +34,16 @@
|
|
|
34
34
|
"lint": "eslint . --fix",
|
|
35
35
|
"lint-inspector": "npx @eslint/config-inspector"
|
|
36
36
|
},
|
|
37
|
-
"peerDependencies": {
|
|
38
|
-
"eslint": "^9.15.0"
|
|
39
|
-
},
|
|
40
37
|
"dependencies": {
|
|
41
|
-
"@antfu/eslint-config": "
|
|
42
|
-
"@eslint-react/eslint-plugin": "
|
|
43
|
-
"@next/eslint-plugin-next": "
|
|
44
|
-
"@vue/compiler-sfc": "
|
|
45
|
-
"eslint": "
|
|
46
|
-
"eslint-plugin-jsx-a11y": "
|
|
47
|
-
"eslint-plugin-react": "
|
|
48
|
-
"eslint-plugin-react-hooks": "
|
|
49
|
-
"eslint-plugin-react-refresh": "
|
|
38
|
+
"@antfu/eslint-config": "3.10.0",
|
|
39
|
+
"@eslint-react/eslint-plugin": "1.17.1",
|
|
40
|
+
"@next/eslint-plugin-next": "15.0.3",
|
|
41
|
+
"@vue/compiler-sfc": "3.5.13",
|
|
42
|
+
"eslint": "9.15.0",
|
|
43
|
+
"eslint-plugin-jsx-a11y": "6.10.2",
|
|
44
|
+
"eslint-plugin-react": "7.37.2",
|
|
45
|
+
"eslint-plugin-react-hooks": "5.0.0",
|
|
46
|
+
"eslint-plugin-react-refresh": "0.4.14"
|
|
50
47
|
},
|
|
51
48
|
"devDependencies": {
|
|
52
49
|
"@siberiacancode/prettier": "*"
|