@azat-io/eslint-config 2.9.0 → 2.11.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/dist/a11y/index.cjs +1 -0
- package/dist/a11y/index.mjs +1 -0
- package/dist/astro/index.cjs +1 -0
- package/dist/astro/index.mjs +1 -0
- package/dist/core/index.cjs +33 -7
- package/dist/core/index.mjs +33 -7
- package/dist/index.cjs +8 -2
- package/dist/index.mjs +8 -2
- package/dist/node/index.cjs +22 -21
- package/dist/node/index.mjs +22 -21
- package/dist/package-json/index.cjs +2 -0
- package/dist/package-json/index.mjs +2 -0
- package/dist/perfectionist/index.cjs +1 -0
- package/dist/perfectionist/index.mjs +1 -0
- package/dist/qwik/index.cjs +1 -0
- package/dist/qwik/index.mjs +1 -0
- package/dist/react/index.cjs +1 -0
- package/dist/react/index.mjs +1 -0
- package/dist/svelte/index.cjs +1 -0
- package/dist/svelte/index.mjs +1 -0
- package/dist/typescript/index.cjs +87 -88
- package/dist/typescript/index.mjs +87 -88
- package/dist/vitest/index.cjs +1 -0
- package/dist/vitest/index.mjs +1 -0
- package/dist/vue/index.cjs +1 -0
- package/dist/vue/index.mjs +1 -0
- package/package.json +7 -7
package/dist/a11y/index.cjs
CHANGED
package/dist/a11y/index.mjs
CHANGED
package/dist/astro/index.cjs
CHANGED
package/dist/astro/index.mjs
CHANGED
package/dist/core/index.cjs
CHANGED
|
@@ -31,6 +31,7 @@ let core = (config) => {
|
|
|
31
31
|
files.push("**/*.vue");
|
|
32
32
|
}
|
|
33
33
|
return {
|
|
34
|
+
name: "azat-io/core/rules",
|
|
34
35
|
files,
|
|
35
36
|
languageOptions: {
|
|
36
37
|
globals: {
|
|
@@ -44,7 +45,7 @@ let core = (config) => {
|
|
|
44
45
|
}
|
|
45
46
|
},
|
|
46
47
|
plugins: {
|
|
47
|
-
"
|
|
48
|
+
"eslint-comments": eslintCommentsPlugin,
|
|
48
49
|
"import-x": importXPlugin,
|
|
49
50
|
jsdoc: jsdocPlugin,
|
|
50
51
|
"prefer-arrow": preferArrowPlugin,
|
|
@@ -86,7 +87,9 @@ let core = (config) => {
|
|
|
86
87
|
"default-param-last": "error",
|
|
87
88
|
"dot-notation": "error",
|
|
88
89
|
eqeqeq: "error",
|
|
90
|
+
"for-direction": "error",
|
|
89
91
|
"func-names": ["error", "never"],
|
|
92
|
+
"getter-return": "error",
|
|
90
93
|
"id-length": [
|
|
91
94
|
"error",
|
|
92
95
|
{
|
|
@@ -110,6 +113,7 @@ let core = (config) => {
|
|
|
110
113
|
properties: true
|
|
111
114
|
}
|
|
112
115
|
],
|
|
116
|
+
"no-alert": "error",
|
|
113
117
|
"no-array-constructor": "error",
|
|
114
118
|
"no-async-promise-executor": "error",
|
|
115
119
|
"no-await-in-loop": "error",
|
|
@@ -157,6 +161,7 @@ let core = (config) => {
|
|
|
157
161
|
"no-global-assign": "error",
|
|
158
162
|
"no-implied-eval": "error",
|
|
159
163
|
"no-import-assign": "error",
|
|
164
|
+
"no-inline-comments": "error",
|
|
160
165
|
"no-invalid-regexp": "error",
|
|
161
166
|
"no-irregular-whitespace": [
|
|
162
167
|
"error",
|
|
@@ -177,6 +182,7 @@ let core = (config) => {
|
|
|
177
182
|
allowSwitch: false
|
|
178
183
|
}
|
|
179
184
|
],
|
|
185
|
+
"no-lone-blocks": "error",
|
|
180
186
|
"no-loop-func": "error",
|
|
181
187
|
"no-loss-of-precision": "error",
|
|
182
188
|
"no-multi-assign": "error",
|
|
@@ -195,6 +201,7 @@ let core = (config) => {
|
|
|
195
201
|
"no-promise-executor-return": "error",
|
|
196
202
|
"no-proto": "error",
|
|
197
203
|
"no-prototype-builtins": "error",
|
|
204
|
+
"no-redeclare": "error",
|
|
198
205
|
"no-regex-spaces": "error",
|
|
199
206
|
"no-return-assign": ["error", "except-parens"],
|
|
200
207
|
"no-self-assign": [
|
|
@@ -210,6 +217,7 @@ let core = (config) => {
|
|
|
210
217
|
"no-sparse-arrays": "error",
|
|
211
218
|
"no-template-curly-in-string": "error",
|
|
212
219
|
"no-this-before-super": "error",
|
|
220
|
+
"no-throw-literal": "error",
|
|
213
221
|
"no-undef": "error",
|
|
214
222
|
"no-undef-init": "error",
|
|
215
223
|
"no-undefined": "error",
|
|
@@ -234,6 +242,7 @@ let core = (config) => {
|
|
|
234
242
|
allowTernary: true
|
|
235
243
|
}
|
|
236
244
|
],
|
|
245
|
+
"no-unused-labels": "error",
|
|
237
246
|
"no-unused-private-class-members": "error",
|
|
238
247
|
"no-unused-vars": [
|
|
239
248
|
"error",
|
|
@@ -308,12 +317,12 @@ let core = (config) => {
|
|
|
308
317
|
}
|
|
309
318
|
],
|
|
310
319
|
yoda: ["error", "never"],
|
|
311
|
-
"
|
|
312
|
-
"
|
|
313
|
-
"
|
|
314
|
-
"
|
|
315
|
-
"
|
|
316
|
-
"
|
|
320
|
+
"eslint-comments/disable-enable-pair": "error",
|
|
321
|
+
"eslint-comments/no-aggregating-enable": "error",
|
|
322
|
+
"eslint-comments/no-duplicate-disable": "error",
|
|
323
|
+
"eslint-comments/no-unlimited-disable": "error",
|
|
324
|
+
"eslint-comments/no-unused-disable": "error",
|
|
325
|
+
"eslint-comments/no-unused-enable": "error",
|
|
317
326
|
"import-x/consistent-type-specifier-style": ["error", "prefer-top-level"],
|
|
318
327
|
"import-x/export": "error",
|
|
319
328
|
"import-x/first": "error",
|
|
@@ -507,6 +516,16 @@ let core = (config) => {
|
|
|
507
516
|
"unicorn/custom-error-definition": "error",
|
|
508
517
|
"unicorn/error-message": "error",
|
|
509
518
|
"unicorn/escape-case": "error",
|
|
519
|
+
"unicorn/explicit-length-check": "error",
|
|
520
|
+
"unicorn/filename-case": [
|
|
521
|
+
"error",
|
|
522
|
+
{
|
|
523
|
+
cases: {
|
|
524
|
+
kebabCase: true,
|
|
525
|
+
pascalCase: true
|
|
526
|
+
}
|
|
527
|
+
}
|
|
528
|
+
],
|
|
510
529
|
"unicorn/new-for-builtins": "error",
|
|
511
530
|
"unicorn/no-array-for-each": "error",
|
|
512
531
|
"unicorn/no-array-method-this-argument": "error",
|
|
@@ -586,6 +605,12 @@ let core = (config) => {
|
|
|
586
605
|
"unicorn/prefer-string-starts-ends-with": "error",
|
|
587
606
|
"unicorn/prefer-string-trim-start-end": "error",
|
|
588
607
|
"unicorn/prefer-structured-clone": "error",
|
|
608
|
+
"unicorn/prefer-switch": [
|
|
609
|
+
"error",
|
|
610
|
+
{
|
|
611
|
+
minimumCases: 3
|
|
612
|
+
}
|
|
613
|
+
],
|
|
589
614
|
"unicorn/prefer-top-level-await": "error",
|
|
590
615
|
"unicorn/prefer-type-error": "error",
|
|
591
616
|
"unicorn/prevent-abbreviations": [
|
|
@@ -605,6 +630,7 @@ let core = (config) => {
|
|
|
605
630
|
],
|
|
606
631
|
"unicorn/require-array-join-separator": "error",
|
|
607
632
|
"unicorn/require-number-to-fixed-digits-argument": "error",
|
|
633
|
+
"unicorn/template-indent": "error",
|
|
608
634
|
"unicorn/text-encoding-identifier-case": "error",
|
|
609
635
|
"unicorn/throw-new-error": "error"
|
|
610
636
|
},
|
package/dist/core/index.mjs
CHANGED
|
@@ -29,6 +29,7 @@ let core = (config) => {
|
|
|
29
29
|
files.push("**/*.vue");
|
|
30
30
|
}
|
|
31
31
|
return {
|
|
32
|
+
name: "azat-io/core/rules",
|
|
32
33
|
files,
|
|
33
34
|
languageOptions: {
|
|
34
35
|
globals: {
|
|
@@ -42,7 +43,7 @@ let core = (config) => {
|
|
|
42
43
|
}
|
|
43
44
|
},
|
|
44
45
|
plugins: {
|
|
45
|
-
"
|
|
46
|
+
"eslint-comments": eslintCommentsPlugin,
|
|
46
47
|
"import-x": importXPlugin,
|
|
47
48
|
jsdoc: jsdocPlugin,
|
|
48
49
|
"prefer-arrow": preferArrowPlugin,
|
|
@@ -84,7 +85,9 @@ let core = (config) => {
|
|
|
84
85
|
"default-param-last": "error",
|
|
85
86
|
"dot-notation": "error",
|
|
86
87
|
eqeqeq: "error",
|
|
88
|
+
"for-direction": "error",
|
|
87
89
|
"func-names": ["error", "never"],
|
|
90
|
+
"getter-return": "error",
|
|
88
91
|
"id-length": [
|
|
89
92
|
"error",
|
|
90
93
|
{
|
|
@@ -108,6 +111,7 @@ let core = (config) => {
|
|
|
108
111
|
properties: true
|
|
109
112
|
}
|
|
110
113
|
],
|
|
114
|
+
"no-alert": "error",
|
|
111
115
|
"no-array-constructor": "error",
|
|
112
116
|
"no-async-promise-executor": "error",
|
|
113
117
|
"no-await-in-loop": "error",
|
|
@@ -155,6 +159,7 @@ let core = (config) => {
|
|
|
155
159
|
"no-global-assign": "error",
|
|
156
160
|
"no-implied-eval": "error",
|
|
157
161
|
"no-import-assign": "error",
|
|
162
|
+
"no-inline-comments": "error",
|
|
158
163
|
"no-invalid-regexp": "error",
|
|
159
164
|
"no-irregular-whitespace": [
|
|
160
165
|
"error",
|
|
@@ -175,6 +180,7 @@ let core = (config) => {
|
|
|
175
180
|
allowSwitch: false
|
|
176
181
|
}
|
|
177
182
|
],
|
|
183
|
+
"no-lone-blocks": "error",
|
|
178
184
|
"no-loop-func": "error",
|
|
179
185
|
"no-loss-of-precision": "error",
|
|
180
186
|
"no-multi-assign": "error",
|
|
@@ -193,6 +199,7 @@ let core = (config) => {
|
|
|
193
199
|
"no-promise-executor-return": "error",
|
|
194
200
|
"no-proto": "error",
|
|
195
201
|
"no-prototype-builtins": "error",
|
|
202
|
+
"no-redeclare": "error",
|
|
196
203
|
"no-regex-spaces": "error",
|
|
197
204
|
"no-return-assign": ["error", "except-parens"],
|
|
198
205
|
"no-self-assign": [
|
|
@@ -208,6 +215,7 @@ let core = (config) => {
|
|
|
208
215
|
"no-sparse-arrays": "error",
|
|
209
216
|
"no-template-curly-in-string": "error",
|
|
210
217
|
"no-this-before-super": "error",
|
|
218
|
+
"no-throw-literal": "error",
|
|
211
219
|
"no-undef": "error",
|
|
212
220
|
"no-undef-init": "error",
|
|
213
221
|
"no-undefined": "error",
|
|
@@ -232,6 +240,7 @@ let core = (config) => {
|
|
|
232
240
|
allowTernary: true
|
|
233
241
|
}
|
|
234
242
|
],
|
|
243
|
+
"no-unused-labels": "error",
|
|
235
244
|
"no-unused-private-class-members": "error",
|
|
236
245
|
"no-unused-vars": [
|
|
237
246
|
"error",
|
|
@@ -306,12 +315,12 @@ let core = (config) => {
|
|
|
306
315
|
}
|
|
307
316
|
],
|
|
308
317
|
yoda: ["error", "never"],
|
|
309
|
-
"
|
|
310
|
-
"
|
|
311
|
-
"
|
|
312
|
-
"
|
|
313
|
-
"
|
|
314
|
-
"
|
|
318
|
+
"eslint-comments/disable-enable-pair": "error",
|
|
319
|
+
"eslint-comments/no-aggregating-enable": "error",
|
|
320
|
+
"eslint-comments/no-duplicate-disable": "error",
|
|
321
|
+
"eslint-comments/no-unlimited-disable": "error",
|
|
322
|
+
"eslint-comments/no-unused-disable": "error",
|
|
323
|
+
"eslint-comments/no-unused-enable": "error",
|
|
315
324
|
"import-x/consistent-type-specifier-style": ["error", "prefer-top-level"],
|
|
316
325
|
"import-x/export": "error",
|
|
317
326
|
"import-x/first": "error",
|
|
@@ -505,6 +514,16 @@ let core = (config) => {
|
|
|
505
514
|
"unicorn/custom-error-definition": "error",
|
|
506
515
|
"unicorn/error-message": "error",
|
|
507
516
|
"unicorn/escape-case": "error",
|
|
517
|
+
"unicorn/explicit-length-check": "error",
|
|
518
|
+
"unicorn/filename-case": [
|
|
519
|
+
"error",
|
|
520
|
+
{
|
|
521
|
+
cases: {
|
|
522
|
+
kebabCase: true,
|
|
523
|
+
pascalCase: true
|
|
524
|
+
}
|
|
525
|
+
}
|
|
526
|
+
],
|
|
508
527
|
"unicorn/new-for-builtins": "error",
|
|
509
528
|
"unicorn/no-array-for-each": "error",
|
|
510
529
|
"unicorn/no-array-method-this-argument": "error",
|
|
@@ -584,6 +603,12 @@ let core = (config) => {
|
|
|
584
603
|
"unicorn/prefer-string-starts-ends-with": "error",
|
|
585
604
|
"unicorn/prefer-string-trim-start-end": "error",
|
|
586
605
|
"unicorn/prefer-structured-clone": "error",
|
|
606
|
+
"unicorn/prefer-switch": [
|
|
607
|
+
"error",
|
|
608
|
+
{
|
|
609
|
+
minimumCases: 3
|
|
610
|
+
}
|
|
611
|
+
],
|
|
587
612
|
"unicorn/prefer-top-level-await": "error",
|
|
588
613
|
"unicorn/prefer-type-error": "error",
|
|
589
614
|
"unicorn/prevent-abbreviations": [
|
|
@@ -603,6 +628,7 @@ let core = (config) => {
|
|
|
603
628
|
],
|
|
604
629
|
"unicorn/require-array-join-separator": "error",
|
|
605
630
|
"unicorn/require-number-to-fixed-digits-argument": "error",
|
|
631
|
+
"unicorn/template-indent": "error",
|
|
606
632
|
"unicorn/text-encoding-identifier-case": "error",
|
|
607
633
|
"unicorn/throw-new-error": "error"
|
|
608
634
|
},
|
package/dist/index.cjs
CHANGED
|
@@ -71,10 +71,16 @@ const index = async ({
|
|
|
71
71
|
"**/temp/**",
|
|
72
72
|
"**/.tmp/**",
|
|
73
73
|
"**/tmp/**"
|
|
74
|
-
]
|
|
74
|
+
],
|
|
75
|
+
name: "azat-io/core/ignores"
|
|
75
76
|
},
|
|
76
77
|
...configs,
|
|
77
|
-
...Array.isArray(customExtends) ? customExtends : [
|
|
78
|
+
...Array.isArray(customExtends) ? customExtends : [
|
|
79
|
+
{
|
|
80
|
+
name: "azat-io/custom-extends",
|
|
81
|
+
...customExtends
|
|
82
|
+
}
|
|
83
|
+
]
|
|
78
84
|
];
|
|
79
85
|
};
|
|
80
86
|
module.exports = index;
|
package/dist/index.mjs
CHANGED
|
@@ -70,10 +70,16 @@ const index = async ({
|
|
|
70
70
|
"**/temp/**",
|
|
71
71
|
"**/.tmp/**",
|
|
72
72
|
"**/tmp/**"
|
|
73
|
-
]
|
|
73
|
+
],
|
|
74
|
+
name: "azat-io/core/ignores"
|
|
74
75
|
},
|
|
75
76
|
...configs,
|
|
76
|
-
...Array.isArray(customExtends) ? customExtends : [
|
|
77
|
+
...Array.isArray(customExtends) ? customExtends : [
|
|
78
|
+
{
|
|
79
|
+
name: "azat-io/custom-extends",
|
|
80
|
+
...customExtends
|
|
81
|
+
}
|
|
82
|
+
]
|
|
77
83
|
];
|
|
78
84
|
};
|
|
79
85
|
export {
|
package/dist/node/index.cjs
CHANGED
|
@@ -23,7 +23,7 @@ let node = async (config) => {
|
|
|
23
23
|
if (!config.node) {
|
|
24
24
|
return {};
|
|
25
25
|
}
|
|
26
|
-
let
|
|
26
|
+
let nodePlugin = await utils.interopDefault(import("eslint-plugin-n"));
|
|
27
27
|
let files = ["**/*.js", "**/*.cjs", "**/*.mjs"];
|
|
28
28
|
if (config.typescript) {
|
|
29
29
|
files.push("**/*.ts", "**/*.cts", "**/*.mts");
|
|
@@ -44,30 +44,31 @@ let node = async (config) => {
|
|
|
44
44
|
files.push("**/*.vue");
|
|
45
45
|
}
|
|
46
46
|
return {
|
|
47
|
+
name: "azat-io/node/rules",
|
|
47
48
|
files,
|
|
48
49
|
plugins: {
|
|
49
|
-
|
|
50
|
+
node: nodePlugin
|
|
50
51
|
},
|
|
51
52
|
rules: {
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
"
|
|
62
|
-
"
|
|
63
|
-
"
|
|
64
|
-
"
|
|
65
|
-
"
|
|
66
|
-
"
|
|
67
|
-
"
|
|
68
|
-
"
|
|
69
|
-
"
|
|
70
|
-
"
|
|
53
|
+
"node/handle-callback-err": ["error", "error"],
|
|
54
|
+
"node/hashbang": "error",
|
|
55
|
+
"node/no-deprecated-api": "error",
|
|
56
|
+
"node/no-exports-assign": "error",
|
|
57
|
+
"node/no-extraneous-require": "error",
|
|
58
|
+
"node/no-new-require": "error",
|
|
59
|
+
"node/no-path-concat": "error",
|
|
60
|
+
"node/no-unpublished-bin": "error",
|
|
61
|
+
"node/no-unsupported-features/es-builtins": "error",
|
|
62
|
+
"node/prefer-global/buffer": ["error", "always"],
|
|
63
|
+
"node/prefer-global/console": ["error", "always"],
|
|
64
|
+
"node/prefer-global/process": ["error", "always"],
|
|
65
|
+
"node/prefer-global/text-decoder": ["error", "always"],
|
|
66
|
+
"node/prefer-global/text-encoder": ["error", "always"],
|
|
67
|
+
"node/prefer-global/url": ["error", "always"],
|
|
68
|
+
"node/prefer-global/url-search-params": ["error", "always"],
|
|
69
|
+
"node/prefer-node-protocol": "error",
|
|
70
|
+
"node/prefer-promises/fs": "error",
|
|
71
|
+
"node/process-exit-as-throw": "error"
|
|
71
72
|
}
|
|
72
73
|
};
|
|
73
74
|
};
|
package/dist/node/index.mjs
CHANGED
|
@@ -3,7 +3,7 @@ let node = async (config) => {
|
|
|
3
3
|
if (!config.node) {
|
|
4
4
|
return {};
|
|
5
5
|
}
|
|
6
|
-
let
|
|
6
|
+
let nodePlugin = await interopDefault(import("eslint-plugin-n"));
|
|
7
7
|
let files = ["**/*.js", "**/*.cjs", "**/*.mjs"];
|
|
8
8
|
if (config.typescript) {
|
|
9
9
|
files.push("**/*.ts", "**/*.cts", "**/*.mts");
|
|
@@ -24,30 +24,31 @@ let node = async (config) => {
|
|
|
24
24
|
files.push("**/*.vue");
|
|
25
25
|
}
|
|
26
26
|
return {
|
|
27
|
+
name: "azat-io/node/rules",
|
|
27
28
|
files,
|
|
28
29
|
plugins: {
|
|
29
|
-
|
|
30
|
+
node: nodePlugin
|
|
30
31
|
},
|
|
31
32
|
rules: {
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
"
|
|
33
|
+
"node/handle-callback-err": ["error", "error"],
|
|
34
|
+
"node/hashbang": "error",
|
|
35
|
+
"node/no-deprecated-api": "error",
|
|
36
|
+
"node/no-exports-assign": "error",
|
|
37
|
+
"node/no-extraneous-require": "error",
|
|
38
|
+
"node/no-new-require": "error",
|
|
39
|
+
"node/no-path-concat": "error",
|
|
40
|
+
"node/no-unpublished-bin": "error",
|
|
41
|
+
"node/no-unsupported-features/es-builtins": "error",
|
|
42
|
+
"node/prefer-global/buffer": ["error", "always"],
|
|
43
|
+
"node/prefer-global/console": ["error", "always"],
|
|
44
|
+
"node/prefer-global/process": ["error", "always"],
|
|
45
|
+
"node/prefer-global/text-decoder": ["error", "always"],
|
|
46
|
+
"node/prefer-global/text-encoder": ["error", "always"],
|
|
47
|
+
"node/prefer-global/url": ["error", "always"],
|
|
48
|
+
"node/prefer-global/url-search-params": ["error", "always"],
|
|
49
|
+
"node/prefer-node-protocol": "error",
|
|
50
|
+
"node/prefer-promises/fs": "error",
|
|
51
|
+
"node/process-exit-as-throw": "error"
|
|
51
52
|
}
|
|
52
53
|
};
|
|
53
54
|
};
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
3
3
|
const packageJsonPlugin = require("eslint-plugin-package-json");
|
|
4
4
|
const jsoncParser = require("jsonc-eslint-parser");
|
|
5
5
|
let packageJson = (_config) => ({
|
|
6
|
+
name: "azat-io/package-json/rules",
|
|
6
7
|
files: ["**/package.json"],
|
|
7
8
|
plugins: {
|
|
8
9
|
"package-json": packageJsonPlugin
|
|
@@ -11,6 +12,7 @@ let packageJson = (_config) => ({
|
|
|
11
12
|
parser: jsoncParser
|
|
12
13
|
},
|
|
13
14
|
rules: {
|
|
15
|
+
"package-json/no-redundant-files": "error",
|
|
14
16
|
"package-json/order-properties": [
|
|
15
17
|
"error",
|
|
16
18
|
{
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import packageJsonPlugin from "eslint-plugin-package-json";
|
|
2
2
|
import jsoncParser from "jsonc-eslint-parser";
|
|
3
3
|
let packageJson = (_config) => ({
|
|
4
|
+
name: "azat-io/package-json/rules",
|
|
4
5
|
files: ["**/package.json"],
|
|
5
6
|
plugins: {
|
|
6
7
|
"package-json": packageJsonPlugin
|
|
@@ -9,6 +10,7 @@ let packageJson = (_config) => ({
|
|
|
9
10
|
parser: jsoncParser
|
|
10
11
|
},
|
|
11
12
|
rules: {
|
|
13
|
+
"package-json/no-redundant-files": "error",
|
|
12
14
|
"package-json/order-properties": [
|
|
13
15
|
"error",
|
|
14
16
|
{
|
package/dist/qwik/index.cjs
CHANGED
package/dist/qwik/index.mjs
CHANGED
package/dist/react/index.cjs
CHANGED
package/dist/react/index.mjs
CHANGED
package/dist/svelte/index.cjs
CHANGED
package/dist/svelte/index.mjs
CHANGED
|
@@ -38,6 +38,7 @@ let typescript = async (config) => {
|
|
|
38
38
|
files.push("**/*.vue");
|
|
39
39
|
}
|
|
40
40
|
return {
|
|
41
|
+
name: "azat-io/typescript/rules",
|
|
41
42
|
files,
|
|
42
43
|
languageOptions: {
|
|
43
44
|
parser: typescriptParser,
|
|
@@ -52,30 +53,27 @@ let typescript = async (config) => {
|
|
|
52
53
|
}
|
|
53
54
|
},
|
|
54
55
|
plugins: {
|
|
55
|
-
|
|
56
|
+
typescript: typescriptPlugin
|
|
56
57
|
},
|
|
57
58
|
rules: {
|
|
58
|
-
"
|
|
59
|
+
"typescript/array-type": [
|
|
59
60
|
"error",
|
|
60
61
|
{
|
|
61
62
|
default: "array",
|
|
62
63
|
readonly: "array"
|
|
63
64
|
}
|
|
64
65
|
],
|
|
65
|
-
"
|
|
66
|
-
"
|
|
67
|
-
"
|
|
68
|
-
"
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
"
|
|
73
|
-
"
|
|
74
|
-
"
|
|
75
|
-
"
|
|
76
|
-
"@typescript-eslint/default-param-last": "error",
|
|
77
|
-
"@typescript-eslint/dot-notation": "error",
|
|
78
|
-
"@typescript-eslint/explicit-function-return-type": [
|
|
66
|
+
"typescript/await-thenable": "error",
|
|
67
|
+
"typescript/class-literal-property-style": "error",
|
|
68
|
+
"typescript/class-methods-use-this": "error",
|
|
69
|
+
"typescript/consistent-generic-constructors": ["error", "constructor"],
|
|
70
|
+
"typescript/consistent-indexed-object-style": ["error", "record"],
|
|
71
|
+
"typescript/consistent-type-definitions": "error",
|
|
72
|
+
"typescript/consistent-type-exports": "error",
|
|
73
|
+
"typescript/consistent-type-imports": "error",
|
|
74
|
+
"typescript/default-param-last": "error",
|
|
75
|
+
"typescript/dot-notation": "error",
|
|
76
|
+
"typescript/explicit-function-return-type": [
|
|
79
77
|
"error",
|
|
80
78
|
{
|
|
81
79
|
allowedNames: config.astro ? ["getStaticPaths"] : [],
|
|
@@ -84,21 +82,21 @@ let typescript = async (config) => {
|
|
|
84
82
|
allowIIFEs: true
|
|
85
83
|
}
|
|
86
84
|
],
|
|
87
|
-
"
|
|
88
|
-
"
|
|
85
|
+
"typescript/explicit-member-accessibility": "error",
|
|
86
|
+
"typescript/explicit-module-boundary-types": [
|
|
89
87
|
"error",
|
|
90
88
|
{
|
|
91
89
|
allowedNames: config.astro ? ["getStaticPaths"] : []
|
|
92
90
|
}
|
|
93
91
|
],
|
|
94
|
-
"
|
|
92
|
+
"typescript/max-params": [
|
|
95
93
|
"error",
|
|
96
94
|
{
|
|
97
95
|
max: 3
|
|
98
96
|
}
|
|
99
97
|
],
|
|
100
|
-
"
|
|
101
|
-
"
|
|
98
|
+
"typescript/method-signature-style": ["error", "method"],
|
|
99
|
+
"typescript/naming-convention": [
|
|
102
100
|
"error",
|
|
103
101
|
{
|
|
104
102
|
format: ["camelCase", "PascalCase", "UPPER_CASE"],
|
|
@@ -114,15 +112,15 @@ let typescript = async (config) => {
|
|
|
114
112
|
selector: "typeLike"
|
|
115
113
|
}
|
|
116
114
|
],
|
|
117
|
-
"
|
|
118
|
-
"
|
|
119
|
-
"
|
|
120
|
-
"
|
|
121
|
-
"
|
|
122
|
-
"
|
|
123
|
-
"
|
|
124
|
-
"
|
|
125
|
-
"
|
|
115
|
+
"typescript/no-array-constructor": "error",
|
|
116
|
+
"typescript/no-array-delete": "error",
|
|
117
|
+
"typescript/no-base-to-string": "error",
|
|
118
|
+
"typescript/no-duplicate-enum-values": "error",
|
|
119
|
+
"typescript/no-duplicate-type-constituents": "error",
|
|
120
|
+
"typescript/no-empty-object-type": "error",
|
|
121
|
+
"typescript/no-explicit-any": "error",
|
|
122
|
+
"typescript/no-extra-non-null-assertion": "error",
|
|
123
|
+
"typescript/no-floating-promises": [
|
|
126
124
|
"error",
|
|
127
125
|
{
|
|
128
126
|
allowForKnownSafeCalls: [
|
|
@@ -137,46 +135,46 @@ let typescript = async (config) => {
|
|
|
137
135
|
ignoreVoid: true
|
|
138
136
|
}
|
|
139
137
|
],
|
|
140
|
-
"
|
|
141
|
-
"
|
|
142
|
-
"
|
|
143
|
-
"
|
|
144
|
-
"
|
|
145
|
-
"
|
|
146
|
-
"
|
|
147
|
-
"
|
|
138
|
+
"typescript/no-for-in-array": "error",
|
|
139
|
+
"typescript/no-implied-eval": "error",
|
|
140
|
+
"typescript/no-import-type-side-effects": "error",
|
|
141
|
+
"typescript/no-invalid-void-type": "error",
|
|
142
|
+
"typescript/no-loop-func": "error",
|
|
143
|
+
"typescript/no-meaningless-void-operator": "error",
|
|
144
|
+
"typescript/no-misused-new": "error",
|
|
145
|
+
"typescript/no-misused-promises": [
|
|
148
146
|
"error",
|
|
149
147
|
{
|
|
150
148
|
checksVoidReturn: false
|
|
151
149
|
}
|
|
152
150
|
],
|
|
153
|
-
"
|
|
154
|
-
"
|
|
155
|
-
"
|
|
156
|
-
"
|
|
157
|
-
"
|
|
158
|
-
"
|
|
159
|
-
"
|
|
160
|
-
"
|
|
161
|
-
"
|
|
162
|
-
"
|
|
163
|
-
"
|
|
164
|
-
"
|
|
165
|
-
"
|
|
166
|
-
"
|
|
167
|
-
"
|
|
168
|
-
"
|
|
169
|
-
"
|
|
170
|
-
"
|
|
151
|
+
"typescript/no-mixed-enums": "error",
|
|
152
|
+
"typescript/no-namespace": "error",
|
|
153
|
+
"typescript/no-non-null-asserted-nullish-coalescing": "error",
|
|
154
|
+
"typescript/no-non-null-asserted-optional-chain": "error",
|
|
155
|
+
"typescript/no-require-imports": "error",
|
|
156
|
+
"typescript/no-shadow": "error",
|
|
157
|
+
"typescript/no-this-alias": "error",
|
|
158
|
+
"typescript/no-unnecessary-boolean-literal-compare": "error",
|
|
159
|
+
"typescript/no-unnecessary-condition": "error",
|
|
160
|
+
"typescript/no-unnecessary-parameter-property-assignment": "error",
|
|
161
|
+
"typescript/no-unnecessary-qualifier": "error",
|
|
162
|
+
"typescript/no-unnecessary-template-expression": "error",
|
|
163
|
+
"typescript/no-unnecessary-type-arguments": "error",
|
|
164
|
+
"typescript/no-unnecessary-type-assertion": "error",
|
|
165
|
+
"typescript/no-unnecessary-type-constraint": "error",
|
|
166
|
+
"typescript/no-unnecessary-type-parameters": "error",
|
|
167
|
+
"typescript/no-unsafe-argument": "error",
|
|
168
|
+
"typescript/no-unsafe-assignment": (
|
|
171
169
|
config.astro ? "off" : "error"
|
|
172
170
|
),
|
|
173
|
-
"
|
|
174
|
-
"
|
|
175
|
-
"
|
|
176
|
-
"
|
|
177
|
-
"
|
|
178
|
-
"
|
|
179
|
-
"
|
|
171
|
+
"typescript/no-unsafe-call": "error",
|
|
172
|
+
"typescript/no-unsafe-declaration-merging": "error",
|
|
173
|
+
"typescript/no-unsafe-function-type": "error",
|
|
174
|
+
"typescript/no-unsafe-member-access": "error",
|
|
175
|
+
"typescript/no-unsafe-return": "error",
|
|
176
|
+
"typescript/no-unsafe-unary-minus": "error",
|
|
177
|
+
"typescript/no-unused-expressions": [
|
|
180
178
|
"error",
|
|
181
179
|
{
|
|
182
180
|
allowShortCircuit: true,
|
|
@@ -184,7 +182,7 @@ let typescript = async (config) => {
|
|
|
184
182
|
allowTernary: true
|
|
185
183
|
}
|
|
186
184
|
],
|
|
187
|
-
"
|
|
185
|
+
"typescript/no-unused-vars": [
|
|
188
186
|
"error",
|
|
189
187
|
{
|
|
190
188
|
argsIgnorePattern: "^_",
|
|
@@ -193,7 +191,7 @@ let typescript = async (config) => {
|
|
|
193
191
|
varsIgnorePattern: "^_"
|
|
194
192
|
}
|
|
195
193
|
],
|
|
196
|
-
"
|
|
194
|
+
"typescript/no-use-before-define": [
|
|
197
195
|
"error",
|
|
198
196
|
{
|
|
199
197
|
classes: false,
|
|
@@ -201,29 +199,30 @@ let typescript = async (config) => {
|
|
|
201
199
|
variables: false
|
|
202
200
|
}
|
|
203
201
|
],
|
|
204
|
-
"
|
|
205
|
-
"
|
|
206
|
-
"
|
|
207
|
-
"
|
|
208
|
-
"
|
|
209
|
-
"
|
|
210
|
-
"
|
|
211
|
-
"
|
|
212
|
-
"
|
|
213
|
-
"
|
|
214
|
-
"
|
|
215
|
-
"
|
|
216
|
-
"
|
|
217
|
-
"
|
|
218
|
-
"
|
|
219
|
-
"
|
|
220
|
-
"
|
|
221
|
-
"
|
|
222
|
-
"
|
|
223
|
-
"
|
|
224
|
-
"
|
|
225
|
-
"
|
|
226
|
-
"
|
|
202
|
+
"typescript/no-useless-constructor": "error",
|
|
203
|
+
"typescript/no-useless-empty-export": "error",
|
|
204
|
+
"typescript/no-wrapper-object-types": "error",
|
|
205
|
+
"typescript/non-nullable-type-assertion-style": "error",
|
|
206
|
+
"typescript/only-throw-error": "error",
|
|
207
|
+
"typescript/prefer-as-const": "error",
|
|
208
|
+
"typescript/prefer-destructuring": "error",
|
|
209
|
+
"typescript/prefer-enum-initializers": "error",
|
|
210
|
+
"typescript/prefer-for-of": "error",
|
|
211
|
+
"typescript/prefer-function-type": "error",
|
|
212
|
+
"typescript/prefer-literal-enum-member": "error",
|
|
213
|
+
"typescript/prefer-nullish-coalescing": "error",
|
|
214
|
+
"typescript/prefer-optional-chain": "error",
|
|
215
|
+
"typescript/prefer-promise-reject-errors": "error",
|
|
216
|
+
"typescript/prefer-readonly": "error",
|
|
217
|
+
"typescript/prefer-reduce-type-parameter": "error",
|
|
218
|
+
"typescript/prefer-return-this-type": "error",
|
|
219
|
+
"typescript/related-getter-setter-pairs": "error",
|
|
220
|
+
"typescript/require-array-sort-compare": "error",
|
|
221
|
+
"typescript/require-await": "error",
|
|
222
|
+
"typescript/restrict-plus-operands": "error",
|
|
223
|
+
"typescript/restrict-template-expressions": "error",
|
|
224
|
+
"typescript/triple-slash-reference": config.astro ? "off" : "error",
|
|
225
|
+
"typescript/unified-signatures": "error",
|
|
227
226
|
"class-methods-use-this": "off",
|
|
228
227
|
"consistent-return": "off",
|
|
229
228
|
"default-param-last": "off",
|
|
@@ -18,6 +18,7 @@ let typescript = async (config) => {
|
|
|
18
18
|
files.push("**/*.vue");
|
|
19
19
|
}
|
|
20
20
|
return {
|
|
21
|
+
name: "azat-io/typescript/rules",
|
|
21
22
|
files,
|
|
22
23
|
languageOptions: {
|
|
23
24
|
parser: typescriptParser,
|
|
@@ -32,30 +33,27 @@ let typescript = async (config) => {
|
|
|
32
33
|
}
|
|
33
34
|
},
|
|
34
35
|
plugins: {
|
|
35
|
-
|
|
36
|
+
typescript: typescriptPlugin
|
|
36
37
|
},
|
|
37
38
|
rules: {
|
|
38
|
-
"
|
|
39
|
+
"typescript/array-type": [
|
|
39
40
|
"error",
|
|
40
41
|
{
|
|
41
42
|
default: "array",
|
|
42
43
|
readonly: "array"
|
|
43
44
|
}
|
|
44
45
|
],
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
"
|
|
56
|
-
"@typescript-eslint/default-param-last": "error",
|
|
57
|
-
"@typescript-eslint/dot-notation": "error",
|
|
58
|
-
"@typescript-eslint/explicit-function-return-type": [
|
|
46
|
+
"typescript/await-thenable": "error",
|
|
47
|
+
"typescript/class-literal-property-style": "error",
|
|
48
|
+
"typescript/class-methods-use-this": "error",
|
|
49
|
+
"typescript/consistent-generic-constructors": ["error", "constructor"],
|
|
50
|
+
"typescript/consistent-indexed-object-style": ["error", "record"],
|
|
51
|
+
"typescript/consistent-type-definitions": "error",
|
|
52
|
+
"typescript/consistent-type-exports": "error",
|
|
53
|
+
"typescript/consistent-type-imports": "error",
|
|
54
|
+
"typescript/default-param-last": "error",
|
|
55
|
+
"typescript/dot-notation": "error",
|
|
56
|
+
"typescript/explicit-function-return-type": [
|
|
59
57
|
"error",
|
|
60
58
|
{
|
|
61
59
|
allowedNames: config.astro ? ["getStaticPaths"] : [],
|
|
@@ -64,21 +62,21 @@ let typescript = async (config) => {
|
|
|
64
62
|
allowIIFEs: true
|
|
65
63
|
}
|
|
66
64
|
],
|
|
67
|
-
"
|
|
68
|
-
"
|
|
65
|
+
"typescript/explicit-member-accessibility": "error",
|
|
66
|
+
"typescript/explicit-module-boundary-types": [
|
|
69
67
|
"error",
|
|
70
68
|
{
|
|
71
69
|
allowedNames: config.astro ? ["getStaticPaths"] : []
|
|
72
70
|
}
|
|
73
71
|
],
|
|
74
|
-
"
|
|
72
|
+
"typescript/max-params": [
|
|
75
73
|
"error",
|
|
76
74
|
{
|
|
77
75
|
max: 3
|
|
78
76
|
}
|
|
79
77
|
],
|
|
80
|
-
"
|
|
81
|
-
"
|
|
78
|
+
"typescript/method-signature-style": ["error", "method"],
|
|
79
|
+
"typescript/naming-convention": [
|
|
82
80
|
"error",
|
|
83
81
|
{
|
|
84
82
|
format: ["camelCase", "PascalCase", "UPPER_CASE"],
|
|
@@ -94,15 +92,15 @@ let typescript = async (config) => {
|
|
|
94
92
|
selector: "typeLike"
|
|
95
93
|
}
|
|
96
94
|
],
|
|
97
|
-
"
|
|
98
|
-
"
|
|
99
|
-
"
|
|
100
|
-
"
|
|
101
|
-
"
|
|
102
|
-
"
|
|
103
|
-
"
|
|
104
|
-
"
|
|
105
|
-
"
|
|
95
|
+
"typescript/no-array-constructor": "error",
|
|
96
|
+
"typescript/no-array-delete": "error",
|
|
97
|
+
"typescript/no-base-to-string": "error",
|
|
98
|
+
"typescript/no-duplicate-enum-values": "error",
|
|
99
|
+
"typescript/no-duplicate-type-constituents": "error",
|
|
100
|
+
"typescript/no-empty-object-type": "error",
|
|
101
|
+
"typescript/no-explicit-any": "error",
|
|
102
|
+
"typescript/no-extra-non-null-assertion": "error",
|
|
103
|
+
"typescript/no-floating-promises": [
|
|
106
104
|
"error",
|
|
107
105
|
{
|
|
108
106
|
allowForKnownSafeCalls: [
|
|
@@ -117,46 +115,46 @@ let typescript = async (config) => {
|
|
|
117
115
|
ignoreVoid: true
|
|
118
116
|
}
|
|
119
117
|
],
|
|
120
|
-
"
|
|
121
|
-
"
|
|
122
|
-
"
|
|
123
|
-
"
|
|
124
|
-
"
|
|
125
|
-
"
|
|
126
|
-
"
|
|
127
|
-
"
|
|
118
|
+
"typescript/no-for-in-array": "error",
|
|
119
|
+
"typescript/no-implied-eval": "error",
|
|
120
|
+
"typescript/no-import-type-side-effects": "error",
|
|
121
|
+
"typescript/no-invalid-void-type": "error",
|
|
122
|
+
"typescript/no-loop-func": "error",
|
|
123
|
+
"typescript/no-meaningless-void-operator": "error",
|
|
124
|
+
"typescript/no-misused-new": "error",
|
|
125
|
+
"typescript/no-misused-promises": [
|
|
128
126
|
"error",
|
|
129
127
|
{
|
|
130
128
|
checksVoidReturn: false
|
|
131
129
|
}
|
|
132
130
|
],
|
|
133
|
-
"
|
|
134
|
-
"
|
|
135
|
-
"
|
|
136
|
-
"
|
|
137
|
-
"
|
|
138
|
-
"
|
|
139
|
-
"
|
|
140
|
-
"
|
|
141
|
-
"
|
|
142
|
-
"
|
|
143
|
-
"
|
|
144
|
-
"
|
|
145
|
-
"
|
|
146
|
-
"
|
|
147
|
-
"
|
|
148
|
-
"
|
|
149
|
-
"
|
|
150
|
-
"
|
|
131
|
+
"typescript/no-mixed-enums": "error",
|
|
132
|
+
"typescript/no-namespace": "error",
|
|
133
|
+
"typescript/no-non-null-asserted-nullish-coalescing": "error",
|
|
134
|
+
"typescript/no-non-null-asserted-optional-chain": "error",
|
|
135
|
+
"typescript/no-require-imports": "error",
|
|
136
|
+
"typescript/no-shadow": "error",
|
|
137
|
+
"typescript/no-this-alias": "error",
|
|
138
|
+
"typescript/no-unnecessary-boolean-literal-compare": "error",
|
|
139
|
+
"typescript/no-unnecessary-condition": "error",
|
|
140
|
+
"typescript/no-unnecessary-parameter-property-assignment": "error",
|
|
141
|
+
"typescript/no-unnecessary-qualifier": "error",
|
|
142
|
+
"typescript/no-unnecessary-template-expression": "error",
|
|
143
|
+
"typescript/no-unnecessary-type-arguments": "error",
|
|
144
|
+
"typescript/no-unnecessary-type-assertion": "error",
|
|
145
|
+
"typescript/no-unnecessary-type-constraint": "error",
|
|
146
|
+
"typescript/no-unnecessary-type-parameters": "error",
|
|
147
|
+
"typescript/no-unsafe-argument": "error",
|
|
148
|
+
"typescript/no-unsafe-assignment": (
|
|
151
149
|
config.astro ? "off" : "error"
|
|
152
150
|
),
|
|
153
|
-
"
|
|
154
|
-
"
|
|
155
|
-
"
|
|
156
|
-
"
|
|
157
|
-
"
|
|
158
|
-
"
|
|
159
|
-
"
|
|
151
|
+
"typescript/no-unsafe-call": "error",
|
|
152
|
+
"typescript/no-unsafe-declaration-merging": "error",
|
|
153
|
+
"typescript/no-unsafe-function-type": "error",
|
|
154
|
+
"typescript/no-unsafe-member-access": "error",
|
|
155
|
+
"typescript/no-unsafe-return": "error",
|
|
156
|
+
"typescript/no-unsafe-unary-minus": "error",
|
|
157
|
+
"typescript/no-unused-expressions": [
|
|
160
158
|
"error",
|
|
161
159
|
{
|
|
162
160
|
allowShortCircuit: true,
|
|
@@ -164,7 +162,7 @@ let typescript = async (config) => {
|
|
|
164
162
|
allowTernary: true
|
|
165
163
|
}
|
|
166
164
|
],
|
|
167
|
-
"
|
|
165
|
+
"typescript/no-unused-vars": [
|
|
168
166
|
"error",
|
|
169
167
|
{
|
|
170
168
|
argsIgnorePattern: "^_",
|
|
@@ -173,7 +171,7 @@ let typescript = async (config) => {
|
|
|
173
171
|
varsIgnorePattern: "^_"
|
|
174
172
|
}
|
|
175
173
|
],
|
|
176
|
-
"
|
|
174
|
+
"typescript/no-use-before-define": [
|
|
177
175
|
"error",
|
|
178
176
|
{
|
|
179
177
|
classes: false,
|
|
@@ -181,29 +179,30 @@ let typescript = async (config) => {
|
|
|
181
179
|
variables: false
|
|
182
180
|
}
|
|
183
181
|
],
|
|
184
|
-
"
|
|
185
|
-
"
|
|
186
|
-
"
|
|
187
|
-
"
|
|
188
|
-
"
|
|
189
|
-
"
|
|
190
|
-
"
|
|
191
|
-
"
|
|
192
|
-
"
|
|
193
|
-
"
|
|
194
|
-
"
|
|
195
|
-
"
|
|
196
|
-
"
|
|
197
|
-
"
|
|
198
|
-
"
|
|
199
|
-
"
|
|
200
|
-
"
|
|
201
|
-
"
|
|
202
|
-
"
|
|
203
|
-
"
|
|
204
|
-
"
|
|
205
|
-
"
|
|
206
|
-
"
|
|
182
|
+
"typescript/no-useless-constructor": "error",
|
|
183
|
+
"typescript/no-useless-empty-export": "error",
|
|
184
|
+
"typescript/no-wrapper-object-types": "error",
|
|
185
|
+
"typescript/non-nullable-type-assertion-style": "error",
|
|
186
|
+
"typescript/only-throw-error": "error",
|
|
187
|
+
"typescript/prefer-as-const": "error",
|
|
188
|
+
"typescript/prefer-destructuring": "error",
|
|
189
|
+
"typescript/prefer-enum-initializers": "error",
|
|
190
|
+
"typescript/prefer-for-of": "error",
|
|
191
|
+
"typescript/prefer-function-type": "error",
|
|
192
|
+
"typescript/prefer-literal-enum-member": "error",
|
|
193
|
+
"typescript/prefer-nullish-coalescing": "error",
|
|
194
|
+
"typescript/prefer-optional-chain": "error",
|
|
195
|
+
"typescript/prefer-promise-reject-errors": "error",
|
|
196
|
+
"typescript/prefer-readonly": "error",
|
|
197
|
+
"typescript/prefer-reduce-type-parameter": "error",
|
|
198
|
+
"typescript/prefer-return-this-type": "error",
|
|
199
|
+
"typescript/related-getter-setter-pairs": "error",
|
|
200
|
+
"typescript/require-array-sort-compare": "error",
|
|
201
|
+
"typescript/require-await": "error",
|
|
202
|
+
"typescript/restrict-plus-operands": "error",
|
|
203
|
+
"typescript/restrict-template-expressions": "error",
|
|
204
|
+
"typescript/triple-slash-reference": config.astro ? "off" : "error",
|
|
205
|
+
"typescript/unified-signatures": "error",
|
|
207
206
|
"class-methods-use-this": "off",
|
|
208
207
|
"consistent-return": "off",
|
|
209
208
|
"default-param-last": "off",
|
package/dist/vitest/index.cjs
CHANGED
package/dist/vitest/index.mjs
CHANGED
package/dist/vue/index.cjs
CHANGED
package/dist/vue/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@azat-io/eslint-config",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.11.0",
|
|
4
4
|
"description": "ESLint shareable config",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint",
|
|
@@ -28,22 +28,22 @@
|
|
|
28
28
|
],
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@eslint-community/eslint-plugin-eslint-comments": "^4.4.1",
|
|
31
|
-
"@vitest/eslint-plugin": "^1.1.
|
|
31
|
+
"@vitest/eslint-plugin": "^1.1.25",
|
|
32
32
|
"astro-eslint-parser": "^1.1.0",
|
|
33
33
|
"eslint-import-resolver-typescript": "^3.7.0",
|
|
34
34
|
"eslint-plugin-astro": "^1.3.1",
|
|
35
35
|
"eslint-plugin-import-x": "^4.6.1",
|
|
36
|
-
"eslint-plugin-jsdoc": "^50.6.
|
|
36
|
+
"eslint-plugin-jsdoc": "^50.6.2",
|
|
37
37
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
38
38
|
"eslint-plugin-n": "^17.15.1",
|
|
39
|
-
"eslint-plugin-package-json": "^0.
|
|
39
|
+
"eslint-plugin-package-json": "^0.20.1",
|
|
40
40
|
"eslint-plugin-perfectionist": "^4.6.0",
|
|
41
41
|
"eslint-plugin-prefer-arrow": "^1.2.3",
|
|
42
42
|
"eslint-plugin-prefer-let": "^4.0.0",
|
|
43
43
|
"eslint-plugin-promise": "^7.2.1",
|
|
44
44
|
"eslint-plugin-qwik": "^1.12.0",
|
|
45
|
-
"eslint-plugin-react": "^7.37.
|
|
46
|
-
"eslint-plugin-react-compiler": "19.0.0-beta-
|
|
45
|
+
"eslint-plugin-react": "^7.37.4",
|
|
46
|
+
"eslint-plugin-react-compiler": "19.0.0-beta-e552027-20250112",
|
|
47
47
|
"eslint-plugin-react-hooks": "^5.1.0",
|
|
48
48
|
"eslint-plugin-react-perf": "^3.3.3",
|
|
49
49
|
"eslint-plugin-regexp": "^2.7.0",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"globals": "^15.14.0",
|
|
55
55
|
"jsonc-eslint-parser": "^2.4.0",
|
|
56
56
|
"svelte-eslint-parser": "^0.43.0",
|
|
57
|
-
"typescript-eslint": "^8.
|
|
57
|
+
"typescript-eslint": "^8.21.0",
|
|
58
58
|
"vue-eslint-parser": "^9.4.3"
|
|
59
59
|
},
|
|
60
60
|
"peerDependencies": {
|