ultracite 3.9.6 → 3.9.7
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/eslint.config.d.mts +40 -200
- package/dist/eslint.config.mjs +1 -1
- package/package.json +2 -1
package/dist/eslint.config.d.mts
CHANGED
|
@@ -1,182 +1,42 @@
|
|
|
1
|
-
import plugin from 'eslint-plugin-react';
|
|
1
|
+
import plugin$1 from 'eslint-plugin-react';
|
|
2
2
|
import reactHooks, { rules as rules$d } from 'eslint-plugin-react-hooks';
|
|
3
3
|
import typescript from '@typescript-eslint/eslint-plugin';
|
|
4
|
-
import plugin$
|
|
4
|
+
import plugin$2 from 'eslint-plugin-jsx-a11y';
|
|
5
5
|
import * as importPlugin from 'eslint-plugin-import';
|
|
6
6
|
import { rules as rules$e } from 'eslint-plugin-import';
|
|
7
|
-
import plugin$
|
|
8
|
-
import plugin$
|
|
9
|
-
import plugin$
|
|
10
|
-
import plugin$
|
|
7
|
+
import plugin$3 from 'eslint-plugin-jest';
|
|
8
|
+
import plugin$4 from 'eslint-plugin-promise';
|
|
9
|
+
import plugin$5 from 'eslint-plugin-n';
|
|
10
|
+
import plugin$6 from '@next/eslint-plugin-next';
|
|
11
11
|
import globals from 'globals';
|
|
12
12
|
import prettier from 'eslint-plugin-prettier';
|
|
13
|
-
import plugin$
|
|
14
|
-
import plugin$
|
|
15
|
-
import plugin$
|
|
13
|
+
import plugin$7 from 'eslint-plugin-cypress';
|
|
14
|
+
import plugin$8 from 'eslint-plugin-storybook';
|
|
15
|
+
import plugin$9 from 'eslint-plugin-unused-imports';
|
|
16
16
|
import * as importTypescriptResolver from 'eslint-import-resolver-typescript';
|
|
17
17
|
import html from 'eslint-plugin-html';
|
|
18
18
|
import compat from 'eslint-plugin-compat';
|
|
19
19
|
import eslintPrettier from 'eslint-config-prettier';
|
|
20
20
|
import * as typescriptParser from '@typescript-eslint/parser';
|
|
21
|
-
import plugin$
|
|
22
|
-
import plugin$
|
|
23
|
-
import plugin$
|
|
21
|
+
import plugin$a from 'eslint-plugin-sonarjs';
|
|
22
|
+
import plugin$b from 'eslint-plugin-unicorn';
|
|
23
|
+
import plugin$c from 'eslint-plugin-github';
|
|
24
24
|
import * as query from '@tanstack/eslint-plugin-query';
|
|
25
25
|
import { rules as rules$f } from '@tanstack/eslint-plugin-query';
|
|
26
|
+
import plugin from '@eslint/js';
|
|
26
27
|
|
|
27
|
-
const
|
|
28
|
-
// ESLint Possible Problems: These rules relate to possible logic errors in code
|
|
29
|
-
'array-callback-return': 'error',
|
|
30
|
-
'constructor-super': 'error',
|
|
31
|
-
'for-direction': 'error',
|
|
32
|
-
'getter-return': 'error',
|
|
33
|
-
'no-async-promise-executor': 'error',
|
|
34
|
-
'no-await-in-loop': 'error',
|
|
35
|
-
'no-class-assign': 'error',
|
|
36
|
-
'no-compare-neg-zero': 'error',
|
|
37
|
-
'no-cond-assign': 'error',
|
|
38
|
-
'no-const-assign': 'error',
|
|
39
|
-
'no-constant-condition': 'error',
|
|
40
|
-
'no-constructor-return': 'error',
|
|
41
|
-
'no-control-regex': 'error',
|
|
42
|
-
'no-debugger': 'error',
|
|
43
|
-
'no-dupe-args': 'error',
|
|
44
|
-
'no-dupe-else-if': 'error',
|
|
45
|
-
'no-dupe-keys': 'error',
|
|
46
|
-
'no-duplicate-case': 'error',
|
|
47
|
-
'no-empty-character-class': 'error',
|
|
48
|
-
'no-empty-pattern': 'error',
|
|
49
|
-
'no-ex-assign': 'error',
|
|
50
|
-
'no-fallthrough': 'error',
|
|
51
|
-
'no-func-assign': 'error',
|
|
52
|
-
'no-import-assign': 'error',
|
|
53
|
-
'no-inner-declarations': 'error',
|
|
54
|
-
'no-invalid-regexp': 'error',
|
|
55
|
-
'no-irregular-whitespace': 'error',
|
|
56
|
-
'no-misleading-character-class': 'error',
|
|
57
|
-
'no-new-symbol': 'error',
|
|
58
|
-
'no-obj-calls': 'error',
|
|
59
|
-
'no-promise-executor-return': 'error',
|
|
60
|
-
'no-prototype-builtins': 'error',
|
|
61
|
-
'no-self-assign': 'error',
|
|
62
|
-
'no-self-compare': 'error',
|
|
63
|
-
'no-setter-return': 'error',
|
|
64
|
-
'no-sparse-arrays': 'error',
|
|
65
|
-
'no-template-curly-in-string': 'error',
|
|
66
|
-
'no-this-before-super': 'error',
|
|
67
|
-
'no-undef': 'error',
|
|
68
|
-
'no-unmodified-loop-condition': 'error',
|
|
69
|
-
'no-unreachable': 'error',
|
|
70
|
-
'no-unreachable-loop': 'error',
|
|
71
|
-
'no-unsafe-finally': 'error',
|
|
72
|
-
'no-unsafe-negation': 'error',
|
|
73
|
-
'no-unsafe-optional-chaining': 'error',
|
|
28
|
+
const overrideRules$g = {
|
|
74
29
|
'no-unused-private-class-members': 'off',
|
|
75
|
-
'no-useless-backreference': 'error',
|
|
76
|
-
'require-atomic-updates': 'error',
|
|
77
|
-
'use-isnan': 'error',
|
|
78
|
-
'valid-typeof': 'error',
|
|
79
|
-
|
|
80
|
-
// ESLint Suggestions: These rules suggest alternate ways of doing things
|
|
81
|
-
'accessor-pairs': 'error',
|
|
82
|
-
'arrow-body-style': 'error',
|
|
83
|
-
'block-scoped-var': 'error',
|
|
84
30
|
'capitalized-comments': 'off',
|
|
85
|
-
'class-methods-use-this': 'error',
|
|
86
31
|
complexity: 'off',
|
|
87
|
-
'consistent-return': 'error',
|
|
88
|
-
'consistent-this': 'error',
|
|
89
|
-
curly: 'error',
|
|
90
|
-
'default-case': 'error',
|
|
91
|
-
'default-case-last': 'error',
|
|
92
|
-
eqeqeq: 'error',
|
|
93
|
-
'func-name-matching': 'error',
|
|
94
|
-
'func-names': 'error',
|
|
95
|
-
'func-style': 'error',
|
|
96
|
-
'grouped-accessor-pairs': 'error',
|
|
97
|
-
'guard-for-in': 'error',
|
|
98
|
-
'id-denylist': 'error',
|
|
99
32
|
'id-length': ['error', { exceptions: ['x', 'y', 'z'] }],
|
|
100
|
-
'id-match': 'error',
|
|
101
|
-
'max-classes-per-file': 'error',
|
|
102
|
-
'max-depth': 'error',
|
|
103
33
|
'max-lines': 'off',
|
|
104
34
|
'max-lines-per-function': 'off',
|
|
105
|
-
'max-nested-callbacks': 'error',
|
|
106
35
|
'max-params': 'off',
|
|
107
36
|
'max-statements': 'off',
|
|
108
|
-
'multiline-comment-style': 'error',
|
|
109
|
-
'new-cap': 'error',
|
|
110
|
-
'no-alert': 'error',
|
|
111
|
-
'no-bitwise': 'error',
|
|
112
|
-
'no-caller': 'error',
|
|
113
|
-
'no-case-declarations': 'error',
|
|
114
|
-
'no-console': 'error',
|
|
115
|
-
'no-continue': 'error',
|
|
116
|
-
'no-delete-var': 'error',
|
|
117
|
-
'no-div-regex': 'error',
|
|
118
|
-
'no-else-return': 'error',
|
|
119
|
-
'no-empty': 'error',
|
|
120
|
-
'no-eq-null': 'error',
|
|
121
|
-
'no-eval': 'error',
|
|
122
|
-
'no-extend-native': 'error',
|
|
123
|
-
'no-extra-bind': 'error',
|
|
124
|
-
'no-extra-boolean-cast': 'error',
|
|
125
|
-
'no-extra-label': 'error',
|
|
126
|
-
'no-global-assign': 'error',
|
|
127
|
-
'no-implicit-coercion': 'error',
|
|
128
|
-
'no-implicit-globals': 'error',
|
|
129
|
-
'no-inline-comments': 'error',
|
|
130
|
-
'no-iterator': 'error',
|
|
131
|
-
'no-label-var': 'error',
|
|
132
|
-
'no-labels': 'error',
|
|
133
|
-
'no-lone-blocks': 'error',
|
|
134
|
-
'no-lonely-if': 'error',
|
|
135
|
-
'no-multi-assign': 'error',
|
|
136
|
-
'no-multi-str': 'error',
|
|
137
|
-
'no-negated-condition': 'error',
|
|
138
|
-
'no-nested-ternary': 'error',
|
|
139
|
-
'no-new': 'error',
|
|
140
|
-
'no-new-func': 'error',
|
|
141
|
-
'no-new-object': 'error',
|
|
142
|
-
'no-new-wrappers': 'error',
|
|
143
|
-
'no-nonoctal-decimal-escape': 'error',
|
|
144
|
-
'no-octal': 'error',
|
|
145
|
-
'no-octal-escape': 'error',
|
|
146
|
-
'no-param-reassign': 'error',
|
|
147
|
-
'no-plusplus': 'error',
|
|
148
|
-
'no-proto': 'error',
|
|
149
|
-
'no-regex-spaces': 'error',
|
|
150
|
-
'no-restricted-exports': 'error',
|
|
151
|
-
'no-restricted-globals': 'error',
|
|
152
|
-
'no-restricted-properties': 'error',
|
|
153
|
-
'no-restricted-syntax': 'error',
|
|
154
|
-
'no-return-assign': 'error',
|
|
155
|
-
'no-script-url': 'error',
|
|
156
|
-
'no-sequences': 'error',
|
|
157
|
-
'no-shadow-restricted-names': 'error',
|
|
158
37
|
'no-ternary': 'off',
|
|
159
|
-
'no-undef-init': 'error',
|
|
160
38
|
'no-undefined': 'off',
|
|
161
|
-
'no-underscore-dangle': 'error',
|
|
162
|
-
'no-unneeded-ternary': 'error',
|
|
163
|
-
'no-unused-labels': 'error',
|
|
164
|
-
'no-useless-call': 'error',
|
|
165
|
-
'no-useless-catch': 'error',
|
|
166
|
-
'no-useless-computed-key': 'error',
|
|
167
|
-
'no-useless-concat': 'error',
|
|
168
|
-
'no-useless-escape': 'error',
|
|
169
|
-
'no-useless-rename': 'error',
|
|
170
|
-
'no-useless-return': 'error',
|
|
171
|
-
'no-var': 'error',
|
|
172
|
-
'no-void': 'error',
|
|
173
|
-
'no-warning-comments': 'error',
|
|
174
|
-
'no-with': 'error',
|
|
175
|
-
'object-shorthand': 'error',
|
|
176
39
|
'one-var': 'off',
|
|
177
|
-
'operator-assignment': 'error',
|
|
178
|
-
'prefer-arrow-callback': 'error',
|
|
179
|
-
'prefer-const': 'error',
|
|
180
40
|
'prefer-destructuring': [
|
|
181
41
|
'error',
|
|
182
42
|
{
|
|
@@ -184,35 +44,15 @@ const config$k = {
|
|
|
184
44
|
object: true,
|
|
185
45
|
},
|
|
186
46
|
],
|
|
187
|
-
'prefer-exponentiation-operator': 'error',
|
|
188
|
-
'prefer-named-capture-group': 'error',
|
|
189
|
-
'prefer-numeric-literals': 'error',
|
|
190
|
-
'prefer-object-spread': 'error',
|
|
191
|
-
'prefer-promise-reject-errors': 'error',
|
|
192
|
-
'prefer-regex-literals': 'error',
|
|
193
|
-
'prefer-rest-params': 'error',
|
|
194
|
-
'prefer-spread': 'error',
|
|
195
|
-
'prefer-template': 'error',
|
|
196
|
-
radix: 'error',
|
|
197
|
-
'require-unicode-regexp': 'error',
|
|
198
|
-
'require-yield': 'error',
|
|
199
|
-
|
|
200
47
|
// https://github.com/eslint/eslint/issues/11542
|
|
201
48
|
'sort-imports': 'off',
|
|
202
|
-
|
|
203
49
|
'sort-keys': 'off',
|
|
204
50
|
'sort-vars': 'off',
|
|
205
|
-
'spaced-comment': 'error',
|
|
206
|
-
strict: 'error',
|
|
207
|
-
'symbol-description': 'error',
|
|
208
|
-
'vars-on-top': 'error',
|
|
209
|
-
yoda: 'error',
|
|
210
|
-
|
|
211
|
-
// ESLint Layout & Formatting: These rules care about how the code looks rather than how it executes
|
|
212
|
-
'line-comment-position': 'error',
|
|
213
51
|
};
|
|
214
52
|
|
|
215
|
-
const
|
|
53
|
+
const config$k = Object.assign(plugin.configs.all.rules, overrideRules$g);
|
|
54
|
+
|
|
55
|
+
const { rules: rules$c } = plugin$1;
|
|
216
56
|
|
|
217
57
|
const availableKeys$f = Object.keys(rules$c).filter(
|
|
218
58
|
(key) => !rules$c[key].meta.deprecated
|
|
@@ -334,7 +174,7 @@ const overrideRules$d = {
|
|
|
334
174
|
|
|
335
175
|
const config$h = Object.assign(baseRules$d, overrideRules$d);
|
|
336
176
|
|
|
337
|
-
const { rules: rules$a } = plugin$
|
|
177
|
+
const { rules: rules$a } = plugin$2;
|
|
338
178
|
|
|
339
179
|
const availableKeys$c = Object.keys(rules$a).filter(
|
|
340
180
|
(key) => !rules$a[key].meta.deprecated
|
|
@@ -399,7 +239,7 @@ const overrideRules$b = {
|
|
|
399
239
|
|
|
400
240
|
const config$f = Object.assign(baseRules$b, overrideRules$b);
|
|
401
241
|
|
|
402
|
-
const { rules: rules$9 } = plugin$
|
|
242
|
+
const { rules: rules$9 } = plugin$3;
|
|
403
243
|
|
|
404
244
|
const availableKeys$a = Object.keys(rules$9).filter(
|
|
405
245
|
(key) => !rules$9[key].meta.deprecated
|
|
@@ -413,7 +253,7 @@ const overrideRules$a = {};
|
|
|
413
253
|
|
|
414
254
|
const config$e = Object.assign(baseRules$a, overrideRules$a);
|
|
415
255
|
|
|
416
|
-
const { rules: rules$8 } = plugin$
|
|
256
|
+
const { rules: rules$8 } = plugin$4;
|
|
417
257
|
|
|
418
258
|
const availableKeys$9 = Object.keys(rules$8).filter(
|
|
419
259
|
(key) => !rules$8[key].meta.deprecated
|
|
@@ -430,7 +270,7 @@ const overrideRules$9 = {
|
|
|
430
270
|
|
|
431
271
|
const config$d = Object.assign(baseRules$9, overrideRules$9);
|
|
432
272
|
|
|
433
|
-
const { rules: rules$7 } = plugin$
|
|
273
|
+
const { rules: rules$7 } = plugin$5;
|
|
434
274
|
|
|
435
275
|
const availableKeys$8 = Object.keys(rules$7).filter(
|
|
436
276
|
(key) => !rules$7[key].meta.deprecated
|
|
@@ -451,7 +291,7 @@ const overrideRules$8 = {
|
|
|
451
291
|
|
|
452
292
|
const config$c = Object.assign(baseRules$8, overrideRules$8);
|
|
453
293
|
|
|
454
|
-
const { rules: rules$6 } = plugin$
|
|
294
|
+
const { rules: rules$6 } = plugin$6;
|
|
455
295
|
|
|
456
296
|
const availableKeys$7 = Object.keys(rules$6).filter(
|
|
457
297
|
(key) => !rules$6[key].meta.deprecated
|
|
@@ -511,7 +351,7 @@ const config$9 = {
|
|
|
511
351
|
'space-infix-ops': 'off',
|
|
512
352
|
};
|
|
513
353
|
|
|
514
|
-
const { rules: rules$5 } = plugin$
|
|
354
|
+
const { rules: rules$5 } = plugin$7;
|
|
515
355
|
|
|
516
356
|
const availableKeys$6 = Object.keys(rules$5).filter(
|
|
517
357
|
(key) => !rules$5[key].meta.deprecated
|
|
@@ -525,7 +365,7 @@ const overrideRules$6 = {};
|
|
|
525
365
|
|
|
526
366
|
const config$8 = Object.assign(baseRules$6, overrideRules$6);
|
|
527
367
|
|
|
528
|
-
const { rules: rules$4 } = plugin$
|
|
368
|
+
const { rules: rules$4 } = plugin$8;
|
|
529
369
|
|
|
530
370
|
const availableKeys$5 = Object.keys(rules$4).filter(
|
|
531
371
|
(key) => !rules$4[key].meta.deprecated
|
|
@@ -539,7 +379,7 @@ const overrideRules$5 = {};
|
|
|
539
379
|
|
|
540
380
|
const config$7 = Object.assign(baseRules$5, overrideRules$5);
|
|
541
381
|
|
|
542
|
-
const { rules: rules$3 } = plugin$
|
|
382
|
+
const { rules: rules$3 } = plugin$9;
|
|
543
383
|
|
|
544
384
|
const availableKeys$4 = Object.keys(rules$3).filter(
|
|
545
385
|
(key) => !rules$3[key].meta.deprecated
|
|
@@ -553,7 +393,7 @@ const overrideRules$4 = {};
|
|
|
553
393
|
|
|
554
394
|
const config$6 = Object.assign(baseRules$4, overrideRules$4);
|
|
555
395
|
|
|
556
|
-
const { rules: rules$2 } = plugin$
|
|
396
|
+
const { rules: rules$2 } = plugin$a;
|
|
557
397
|
|
|
558
398
|
const availableKeys$3 = Object.keys(rules$2).filter(
|
|
559
399
|
(key) => !rules$2[key].meta.deprecated
|
|
@@ -573,7 +413,7 @@ const config$4 = {
|
|
|
573
413
|
'compat/compat': 'warn',
|
|
574
414
|
};
|
|
575
415
|
|
|
576
|
-
const { rules: rules$1 } = plugin$
|
|
416
|
+
const { rules: rules$1 } = plugin$b;
|
|
577
417
|
|
|
578
418
|
const availableKeys$2 = Object.keys(rules$1).filter(
|
|
579
419
|
(key) => !rules$1[key].meta.deprecated
|
|
@@ -603,7 +443,7 @@ const overrideRules$2 = {
|
|
|
603
443
|
|
|
604
444
|
const config$3 = Object.assign(baseRules$2, overrideRules$2);
|
|
605
445
|
|
|
606
|
-
const { rules } = plugin$
|
|
446
|
+
const { rules } = plugin$c;
|
|
607
447
|
|
|
608
448
|
const availableKeys$1 = Object.keys(rules).filter(
|
|
609
449
|
(key) => !rules[key].meta.deprecated
|
|
@@ -661,19 +501,19 @@ const config = [
|
|
|
661
501
|
],
|
|
662
502
|
plugins: {
|
|
663
503
|
prettier,
|
|
664
|
-
react: plugin,
|
|
504
|
+
react: plugin$1,
|
|
665
505
|
'react-hooks': reactHooks,
|
|
666
|
-
'jsx-a11y': plugin$
|
|
506
|
+
'jsx-a11y': plugin$2,
|
|
667
507
|
import: importPlugin,
|
|
668
|
-
promise: plugin$
|
|
669
|
-
n: plugin$
|
|
670
|
-
'@next/next': plugin$
|
|
671
|
-
'unused-imports': plugin$
|
|
508
|
+
promise: plugin$4,
|
|
509
|
+
n: plugin$5,
|
|
510
|
+
'@next/next': plugin$6,
|
|
511
|
+
'unused-imports': plugin$9,
|
|
672
512
|
// tailwindcss,
|
|
673
|
-
sonarjs: plugin$
|
|
513
|
+
sonarjs: plugin$a,
|
|
674
514
|
compat,
|
|
675
|
-
unicorn: plugin$
|
|
676
|
-
github: plugin$
|
|
515
|
+
unicorn: plugin$b,
|
|
516
|
+
github: plugin$c,
|
|
677
517
|
'@tanstack/eslint-plugin-query': query,
|
|
678
518
|
},
|
|
679
519
|
rules: {
|
|
@@ -736,7 +576,7 @@ const config = [
|
|
|
736
576
|
},
|
|
737
577
|
},
|
|
738
578
|
plugins: {
|
|
739
|
-
jest: plugin$
|
|
579
|
+
jest: plugin$3,
|
|
740
580
|
},
|
|
741
581
|
rules: {
|
|
742
582
|
...config$e,
|
|
@@ -750,7 +590,7 @@ const config = [
|
|
|
750
590
|
},
|
|
751
591
|
},
|
|
752
592
|
plugins: {
|
|
753
|
-
cypress: plugin$
|
|
593
|
+
cypress: plugin$7,
|
|
754
594
|
},
|
|
755
595
|
rules: {
|
|
756
596
|
...config$8,
|
|
@@ -764,7 +604,7 @@ const config = [
|
|
|
764
604
|
'**/*.stories.tsx',
|
|
765
605
|
],
|
|
766
606
|
plugins: {
|
|
767
|
-
storybook: plugin$
|
|
607
|
+
storybook: plugin$8,
|
|
768
608
|
},
|
|
769
609
|
rules: {
|
|
770
610
|
...config$7,
|
package/dist/eslint.config.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import me from"eslint-plugin-react";import ue from"eslint-plugin-react-hooks";import de from"@typescript-eslint/eslint-plugin";import be from"eslint-plugin-jsx-a11y";import*as o from"eslint-plugin-import";import ye from"eslint-plugin-jest";import ge from"eslint-plugin-promise";import xe from"eslint-plugin-n";import je from"@next/eslint-plugin-next";import e from"globals";import ve from"eslint-plugin-prettier";import Oe from"eslint-plugin-cypress";import Re from"eslint-plugin-storybook";import ke from"eslint-plugin-unused-imports";import*as he from"eslint-import-resolver-typescript";import we from"eslint-plugin-html";import qe from"eslint-plugin-compat";import Ee from"eslint-config-prettier";import*as Ke from"@typescript-eslint/parser";import $e from"eslint-plugin-sonarjs";import Pe from"eslint-plugin-unicorn";import Se from"eslint-plugin-github";import*as Ce from"@tanstack/eslint-plugin-query";var F={"array-callback-return":"error","constructor-super":"error","for-direction":"error","getter-return":"error","no-async-promise-executor":"error","no-await-in-loop":"error","no-class-assign":"error","no-compare-neg-zero":"error","no-cond-assign":"error","no-const-assign":"error","no-constant-condition":"error","no-constructor-return":"error","no-control-regex":"error","no-debugger":"error","no-dupe-args":"error","no-dupe-else-if":"error","no-dupe-keys":"error","no-duplicate-case":"error","no-empty-character-class":"error","no-empty-pattern":"error","no-ex-assign":"error","no-fallthrough":"error","no-func-assign":"error","no-import-assign":"error","no-inner-declarations":"error","no-invalid-regexp":"error","no-irregular-whitespace":"error","no-misleading-character-class":"error","no-new-symbol":"error","no-obj-calls":"error","no-promise-executor-return":"error","no-prototype-builtins":"error","no-self-assign":"error","no-self-compare":"error","no-setter-return":"error","no-sparse-arrays":"error","no-template-curly-in-string":"error","no-this-before-super":"error","no-undef":"error","no-unmodified-loop-condition":"error","no-unreachable":"error","no-unreachable-loop":"error","no-unsafe-finally":"error","no-unsafe-negation":"error","no-unsafe-optional-chaining":"error","no-unused-private-class-members":"off","no-useless-backreference":"error","require-atomic-updates":"error","use-isnan":"error","valid-typeof":"error","accessor-pairs":"error","arrow-body-style":"error","block-scoped-var":"error","capitalized-comments":"off","class-methods-use-this":"error",complexity:"off","consistent-return":"error","consistent-this":"error",curly:"error","default-case":"error","default-case-last":"error",eqeqeq:"error","func-name-matching":"error","func-names":"error","func-style":"error","grouped-accessor-pairs":"error","guard-for-in":"error","id-denylist":"error","id-length":["error",{exceptions:["x","y","z"]}],"id-match":"error","max-classes-per-file":"error","max-depth":"error","max-lines":"off","max-lines-per-function":"off","max-nested-callbacks":"error","max-params":"off","max-statements":"off","multiline-comment-style":"error","new-cap":"error","no-alert":"error","no-bitwise":"error","no-caller":"error","no-case-declarations":"error","no-console":"error","no-continue":"error","no-delete-var":"error","no-div-regex":"error","no-else-return":"error","no-empty":"error","no-eq-null":"error","no-eval":"error","no-extend-native":"error","no-extra-bind":"error","no-extra-boolean-cast":"error","no-extra-label":"error","no-global-assign":"error","no-implicit-coercion":"error","no-implicit-globals":"error","no-inline-comments":"error","no-iterator":"error","no-label-var":"error","no-labels":"error","no-lone-blocks":"error","no-lonely-if":"error","no-multi-assign":"error","no-multi-str":"error","no-negated-condition":"error","no-nested-ternary":"error","no-new":"error","no-new-func":"error","no-new-object":"error","no-new-wrappers":"error","no-nonoctal-decimal-escape":"error","no-octal":"error","no-octal-escape":"error","no-param-reassign":"error","no-plusplus":"error","no-proto":"error","no-regex-spaces":"error","no-restricted-exports":"error","no-restricted-globals":"error","no-restricted-properties":"error","no-restricted-syntax":"error","no-return-assign":"error","no-script-url":"error","no-sequences":"error","no-shadow-restricted-names":"error","no-ternary":"off","no-undef-init":"error","no-undefined":"off","no-underscore-dangle":"error","no-unneeded-ternary":"error","no-unused-labels":"error","no-useless-call":"error","no-useless-catch":"error","no-useless-computed-key":"error","no-useless-concat":"error","no-useless-escape":"error","no-useless-rename":"error","no-useless-return":"error","no-var":"error","no-void":"error","no-warning-comments":"error","no-with":"error","object-shorthand":"error","one-var":"off","operator-assignment":"error","prefer-arrow-callback":"error","prefer-const":"error","prefer-destructuring":["error",{array:!1,object:!0}],"prefer-exponentiation-operator":"error","prefer-named-capture-group":"error","prefer-numeric-literals":"error","prefer-object-spread":"error","prefer-promise-reject-errors":"error","prefer-regex-literals":"error","prefer-rest-params":"error","prefer-spread":"error","prefer-template":"error",radix:"error","require-unicode-regexp":"error","require-yield":"error","sort-imports":"off","sort-keys":"off","sort-vars":"off","spaced-comment":"error",strict:"error","symbol-description":"error","vars-on-top":"error",yoda:"error","line-comment-position":"error"},t=F;import Q from"eslint-plugin-react";var{rules:s}=Q,V=Object.keys(s).filter(r=>!s[r].meta.deprecated),_=Object.fromEntries(V.map(r=>[`react/${r}`,"error"])),B={"react/forbid-component-props":"off","react/function-component-definition":["error",{namedComponents:"arrow-function"}],"react/no-array-index-key":"off","react/no-arrow-function-lifecycle":"off","react/no-invalid-html-attribute":"off","react/no-multi-comp":"off","react/no-unused-class-component-methods":"off","react/react-in-jsx-scope":"off","react/require-default-props":"off","react/jsx-filename-extension":["error",{extensions:[".tsx"]}],"react/jsx-max-depth":"off","react/jsx-max-props-per-line":"off","react/jsx-newline":"off","react/jsx-no-bind":"off","react/jsx-no-literals":"off","react/jsx-one-expression-per-line":"off","react/jsx-props-no-spreading":"off","react/jsx-sort-props":"off"},D=Object.assign(_,B),n=D;import{rules as i}from"eslint-plugin-react-hooks";var G=Object.keys(i).filter(r=>!i[r].meta.deprecated),J=Object.fromEntries(G.map(r=>[`react-hooks/${r}`,"error"])),M={"react-hooks/exhaustive-deps":["error",{additionalHooks:"(useAsync)"}]},N=Object.assign(J,M),a=N;import U from"@typescript-eslint/eslint-plugin";var{rules:c}=U,W=Object.keys(c).filter(r=>!c[r].meta.deprecated),X=Object.fromEntries(W.map(r=>[`@typescript-eslint/${r}`,"error"])),Y={"@typescript-eslint/consistent-type-definitions":["error","type"],"@typescript-eslint/explicit-function-return-type":"off","@typescript-eslint/naming-convention":["error",{selector:"default",format:["camelCase","PascalCase","snake_case"]},{selector:"objectLiteralProperty",format:null,modifiers:["requiresQuotes"]}],"@typescript-eslint/no-confusing-void-expression":"off","@typescript-eslint/no-misused-promises":"off","@typescript-eslint/no-type-alias":"off","@typescript-eslint/prefer-readonly":"off","@typescript-eslint/prefer-readonly-parameter-types":"off","@typescript-eslint/sort-type-union-intersection-members":"off","@typescript-eslint/strict-boolean-expressions":"off","@typescript-eslint/no-magic-numbers":"off","@typescript-eslint/block-spacing":"off","@typescript-eslint/brace-style":"off","@typescript-eslint/comma-dangle":"off","@typescript-eslint/comma-spacing":"off","@typescript-eslint/func-call-spacing":"off","@typescript-eslint/indent":"off","@typescript-eslint/key-spacing":"off","@typescript-eslint/keyword-spacing":"off","@typescript-eslint/lines-around-comment":"off","@typescript-eslint/lines-between-class-members":"off","@typescript-eslint/member-delimiter-style":"off","@typescript-eslint/no-extra-parens":"off","@typescript-eslint/object-curly-spacing":"off","@typescript-eslint/padding-line-between-statements":"off","@typescript-eslint/quotes":"off","@typescript-eslint/semi":"off","@typescript-eslint/space-before-blocks":"off","@typescript-eslint/space-before-function-paren":"off","@typescript-eslint/space-infix-ops":"off","@typescript-eslint/type-annotation-spacing":"off"},Z=Object.assign(X,Y),f=Z;import rr from"eslint-plugin-jsx-a11y";var{rules:p}=rr,er=Object.keys(p).filter(r=>!p[r].meta.deprecated),or=Object.fromEntries(er.map(r=>[`jsx-a11y/${r}`,"error"])),tr={"jsx-a11y/no-autofocus":"off","jsx-a11y/label-has-associated-control":["error",{labelComponents:["Label"],controlComponents:["Input","Select","Textarea","Checkbox","Radio"],depth:3}]},sr=Object.assign(or,tr),l=sr;import{rules as m}from"eslint-plugin-import";var nr=Object.keys(m).filter(r=>!m[r].meta.deprecated),ir=Object.fromEntries(nr.map(r=>[`import/${r}`,"error"])),ar={"import/no-unresolved":"off","import/no-internal-modules":"off","import/no-relative-parent-imports":"off","import/no-named-as-default":"off","import/exports-last":"off","import/no-namespace":"off","import/extensions":"off","import/order":["error",{groups:["builtin","external","internal","parent","sibling","index","object","type"]}],"import/prefer-default-export":"off","import/max-dependencies":"off","import/no-unassigned-import":"off","import/no-default-export":"off","import/no-named-export":"off","import/group-exports":"off"},cr=Object.assign(ir,ar),u=cr;import fr from"eslint-plugin-jest";var{rules:d}=fr,pr=Object.keys(d).filter(r=>!d[r].meta.deprecated),lr=Object.fromEntries(pr.map(r=>[`jest/${r}`,"error"])),mr={},ur=Object.assign(lr,mr),b=ur;import dr from"eslint-plugin-promise";var{rules:y}=dr,br=Object.keys(y).filter(r=>!y[r].meta.deprecated),yr=Object.fromEntries(br.map(r=>[`promise/${r}`,"error"])),gr={"promise/catch-or-return":["error",{allowFinally:!0}],"promise/no-native":"off"},xr=Object.assign(yr,gr),g=xr;import jr from"eslint-plugin-n";var{rules:x}=jr,vr=Object.keys(x).filter(r=>!x[r].meta.deprecated),Or=Object.fromEntries(vr.map(r=>[`n/${r}`,"error"])),Rr={"n/no-missing-import":"off","n/no-unsupported-features/es-builtins":"off","n/no-unsupported-features/es-syntax":"off","n/no-unsupported-features/node-builtins":"off","n/file-extension-in-import":"off","n/no-process-env":"off"},kr=Object.assign(Or,Rr),j=kr;import hr from"@next/eslint-plugin-next";var{rules:v}=hr,wr=Object.keys(v).filter(r=>!v[r].meta.deprecated),qr=Object.fromEntries(wr.map(r=>[`@next/next/${r}`,"error"])),Er={},Kr=Object.assign(qr,Er),O=Kr;var $r={"prettier/prettier":"error"},R=$r;var Pr={"brace-style":"off",camelcase:"off","comma-dangle":"off","comma-spacing":"off","default-param-last":"off","dot-notation":"off","func-call-spacing":"off",indent:"off","init-declarations":"off","keyword-spacing":"off","lines-between-class-members":"off","no-array-constructor":"off","no-dupe-class-members":"off","no-duplicate-imports":"off","no-empty-function":"off","no-extra-parens":"off","no-extra-semi":"off","no-implied-eval":"off","no-invalid-this":"off","no-loop-func":"off","no-loss-of-precision":"off","no-magic-numbers":"off","no-redeclare":"off","no-restricted-imports":"off","no-shadow":"off","no-throw-literal":"off","no-unused-expressions":"off","no-unused-vars":"off","no-use-before-define":"off","no-useless-constructor":"off","object-curly-spacing":"off","padding-line-between-statements":"off",quotes:"off","require-await":"off","no-return-await":"off",semi:"off","space-before-function-paren":"off","space-infix-ops":"off"},k=Pr;import Sr from"eslint-plugin-cypress";var{rules:h}=Sr,Cr=Object.keys(h).filter(r=>!h[r].meta.deprecated),Tr=Object.fromEntries(Cr.map(r=>[`cypress/${r}`,"error"])),Ir={},zr=Object.assign(Tr,Ir),w=zr;import Ar from"eslint-plugin-storybook";var{rules:q}=Ar,Hr=Object.keys(q).filter(r=>!q[r].meta.deprecated),Lr=Object.fromEntries(Hr.map(r=>[`storybook/${r}`,"error"])),Fr={},Qr=Object.assign(Lr,Fr),E=Qr;import Vr from"eslint-plugin-unused-imports";var{rules:K}=Vr,_r=Object.keys(K).filter(r=>!K[r].meta.deprecated),Br=Object.fromEntries(_r.map(r=>[`unused-imports/${r}`,"error"])),Dr={},Gr=Object.assign(Br,Dr),$=Gr;import Jr from"eslint-plugin-sonarjs";var{rules:P}=Jr,Mr=Object.keys(P).filter(r=>!P[r].meta.deprecated),Nr=Object.fromEntries(Mr.map(r=>[`sonarjs/${r}`,"error"])),Ur={"sonarjs/elseif-without-else":"off"},Wr=Object.assign(Nr,Ur),S=Wr;var Xr={"compat/compat":"warn"},C=Xr;import Yr from"eslint-plugin-unicorn";var{rules:T}=Yr,Zr=Object.keys(T).filter(r=>!T[r].meta.deprecated),re=Object.fromEntries(Zr.map(r=>[`unicorn/${r}`,"error"])),ee={"unicorn/no-keyword-prefix":"off","unicorn/no-null":"off","unicorn/no-array-callback-reference":"off","unicorn/prevent-abbreviations":["error",{allowList:{getInitialProps:!0,getServerSideProps:!0,getStaticPaths:!0,getStaticProps:!0,generateStaticParams:!0}}]},oe=Object.assign(re,ee),I=oe;import te from"eslint-plugin-github";var{rules:z}=te,se=Object.keys(z).filter(r=>!z[r].meta.deprecated),ne=Object.fromEntries(se.map(r=>[`github/${r}`,"error"])),ie={},ae=Object.assign(ne,ie),A=ae;import{rules as H}from"@tanstack/eslint-plugin-query";var ce=Object.keys(H).filter(r=>!H[r].meta.deprecated),fe=Object.fromEntries(ce.map(r=>[`@tanstack/eslint-plugin-query/${r}`,"error"])),pe={},le=Object.assign(fe,pe),L=le;var Te=[o.configs.typescript,{languageOptions:{sourceType:"module",globals:{...e.browser,...e.node},parserOptions:{ecmaVersion:"latest",sourceType:"module",ecmaFeatures:{jsx:!0}}},files:["**/*.js","**/*.jsx","**/*.ts","**/*.tsx","**/*.json","**/*.mjs","**/*.cjs","**/*.html"],plugins:{prettier:ve,react:me,"react-hooks":ue,"jsx-a11y":be,import:o,promise:ge,n:xe,"@next/next":je,"unused-imports":ke,sonarjs:$e,compat:qe,unicorn:Pe,github:Se,"@tanstack/eslint-plugin-query":Ce},rules:{...t,...n,...a,...l,...u,...g,...j,...O,...R,...Ee.rules,...$,...S,...C,...I,...A,...L},settings:{react:{version:"detect"},"import/parsers":{espree:[".js",".cjs",".mjs",".jsx",".ts",".tsx"]},"import/resolver":{typescript:!0,node:!0}}},{files:["**/*.ts","**/*.tsx"],languageOptions:{parser:Ke,parserOptions:{project:"./tsconfig.json"}},plugins:{"@typescript-eslint":de,"import/typescript":he},rules:{...k,...f}},{files:["**/*.test.js","**/*.test.jsx","tests/**/*.js","tests/**/*.jsx"],languageOptions:{globals:{...e.jest}},plugins:{jest:ye},rules:{...b}},{files:["**/*.cy.js","**/*.cy.jsx"],languageOptions:{globals:{...e.cypress}},plugins:{cypress:Oe},rules:{...w}},{files:["**/*.stories.js","**/*.stories.jsx","**/*.stories.ts","**/*.stories.tsx"],plugins:{storybook:Re},rules:{...E}},{files:["**/*.html"],plugins:{html:we},settings:{"html/javascript-tag-names":["script","Script"]}}],ot=Te;export{ot as default};
|
|
1
|
+
import dt from"eslint-plugin-react";import bt from"eslint-plugin-react-hooks";import yt from"@typescript-eslint/eslint-plugin";import gt from"eslint-plugin-jsx-a11y";import*as o from"eslint-plugin-import";import jt from"eslint-plugin-jest";import xt from"eslint-plugin-promise";import Ot from"eslint-plugin-n";import Rt from"@next/eslint-plugin-next";import t from"globals";import vt from"eslint-plugin-prettier";import kt from"eslint-plugin-cypress";import ht from"eslint-plugin-storybook";import wt from"eslint-plugin-unused-imports";import*as Et from"eslint-import-resolver-typescript";import Kt from"eslint-plugin-html";import $t from"eslint-plugin-compat";import Pt from"eslint-config-prettier";import*as qt from"@typescript-eslint/parser";import St from"eslint-plugin-sonarjs";import Ct from"eslint-plugin-unicorn";import Tt from"eslint-plugin-github";import*as It from"@tanstack/eslint-plugin-query";import F from"@eslint/js";var Q={"no-unused-private-class-members":"off","capitalized-comments":"off",complexity:"off","id-length":["error",{exceptions:["x","y","z"]}],"max-lines":"off","max-lines-per-function":"off","max-params":"off","max-statements":"off","no-ternary":"off","no-undefined":"off","one-var":"off","prefer-destructuring":["error",{array:!1,object:!0}],"sort-imports":"off","sort-keys":"off","sort-vars":"off"},V=Object.assign(F.configs.all.rules,Q),r=V;import _ from"eslint-plugin-react";var{rules:s}=_,B=Object.keys(s).filter(e=>!s[e].meta.deprecated),D=Object.fromEntries(B.map(e=>[`react/${e}`,"error"])),G={"react/forbid-component-props":"off","react/function-component-definition":["error",{namedComponents:"arrow-function"}],"react/no-array-index-key":"off","react/no-arrow-function-lifecycle":"off","react/no-invalid-html-attribute":"off","react/no-multi-comp":"off","react/no-unused-class-component-methods":"off","react/react-in-jsx-scope":"off","react/require-default-props":"off","react/jsx-filename-extension":["error",{extensions:[".tsx"]}],"react/jsx-max-depth":"off","react/jsx-max-props-per-line":"off","react/jsx-newline":"off","react/jsx-no-bind":"off","react/jsx-no-literals":"off","react/jsx-one-expression-per-line":"off","react/jsx-props-no-spreading":"off","react/jsx-sort-props":"off"},J=Object.assign(D,G),n=J;import{rules as i}from"eslint-plugin-react-hooks";var M=Object.keys(i).filter(e=>!i[e].meta.deprecated),N=Object.fromEntries(M.map(e=>[`react-hooks/${e}`,"error"])),U={"react-hooks/exhaustive-deps":["error",{additionalHooks:"(useAsync)"}]},W=Object.assign(N,U),f=W;import X from"@typescript-eslint/eslint-plugin";var{rules:a}=X,Y=Object.keys(a).filter(e=>!a[e].meta.deprecated),Z=Object.fromEntries(Y.map(e=>[`@typescript-eslint/${e}`,"error"])),ee={"@typescript-eslint/consistent-type-definitions":["error","type"],"@typescript-eslint/explicit-function-return-type":"off","@typescript-eslint/naming-convention":["error",{selector:"default",format:["camelCase","PascalCase","snake_case"]},{selector:"objectLiteralProperty",format:null,modifiers:["requiresQuotes"]}],"@typescript-eslint/no-confusing-void-expression":"off","@typescript-eslint/no-misused-promises":"off","@typescript-eslint/no-type-alias":"off","@typescript-eslint/prefer-readonly":"off","@typescript-eslint/prefer-readonly-parameter-types":"off","@typescript-eslint/sort-type-union-intersection-members":"off","@typescript-eslint/strict-boolean-expressions":"off","@typescript-eslint/no-magic-numbers":"off","@typescript-eslint/block-spacing":"off","@typescript-eslint/brace-style":"off","@typescript-eslint/comma-dangle":"off","@typescript-eslint/comma-spacing":"off","@typescript-eslint/func-call-spacing":"off","@typescript-eslint/indent":"off","@typescript-eslint/key-spacing":"off","@typescript-eslint/keyword-spacing":"off","@typescript-eslint/lines-around-comment":"off","@typescript-eslint/lines-between-class-members":"off","@typescript-eslint/member-delimiter-style":"off","@typescript-eslint/no-extra-parens":"off","@typescript-eslint/object-curly-spacing":"off","@typescript-eslint/padding-line-between-statements":"off","@typescript-eslint/quotes":"off","@typescript-eslint/semi":"off","@typescript-eslint/space-before-blocks":"off","@typescript-eslint/space-before-function-paren":"off","@typescript-eslint/space-infix-ops":"off","@typescript-eslint/type-annotation-spacing":"off"},te=Object.assign(Z,ee),p=te;import oe from"eslint-plugin-jsx-a11y";var{rules:c}=oe,re=Object.keys(c).filter(e=>!c[e].meta.deprecated),se=Object.fromEntries(re.map(e=>[`jsx-a11y/${e}`,"error"])),ne={"jsx-a11y/no-autofocus":"off","jsx-a11y/label-has-associated-control":["error",{labelComponents:["Label"],controlComponents:["Input","Select","Textarea","Checkbox","Radio"],depth:3}]},ie=Object.assign(se,ne),l=ie;import{rules as m}from"eslint-plugin-import";var fe=Object.keys(m).filter(e=>!m[e].meta.deprecated),ae=Object.fromEntries(fe.map(e=>[`import/${e}`,"error"])),pe={"import/no-unresolved":"off","import/no-internal-modules":"off","import/no-relative-parent-imports":"off","import/no-named-as-default":"off","import/exports-last":"off","import/no-namespace":"off","import/extensions":"off","import/order":["error",{groups:["builtin","external","internal","parent","sibling","index","object","type"]}],"import/prefer-default-export":"off","import/max-dependencies":"off","import/no-unassigned-import":"off","import/no-default-export":"off","import/no-named-export":"off","import/group-exports":"off"},ce=Object.assign(ae,pe),u=ce;import le from"eslint-plugin-jest";var{rules:d}=le,me=Object.keys(d).filter(e=>!d[e].meta.deprecated),ue=Object.fromEntries(me.map(e=>[`jest/${e}`,"error"])),de={},be=Object.assign(ue,de),b=be;import ye from"eslint-plugin-promise";var{rules:y}=ye,ge=Object.keys(y).filter(e=>!y[e].meta.deprecated),je=Object.fromEntries(ge.map(e=>[`promise/${e}`,"error"])),xe={"promise/catch-or-return":["error",{allowFinally:!0}],"promise/no-native":"off"},Oe=Object.assign(je,xe),g=Oe;import Re from"eslint-plugin-n";var{rules:j}=Re,ve=Object.keys(j).filter(e=>!j[e].meta.deprecated),ke=Object.fromEntries(ve.map(e=>[`n/${e}`,"error"])),he={"n/no-missing-import":"off","n/no-unsupported-features/es-builtins":"off","n/no-unsupported-features/es-syntax":"off","n/no-unsupported-features/node-builtins":"off","n/file-extension-in-import":"off","n/no-process-env":"off"},we=Object.assign(ke,he),x=we;import Ee from"@next/eslint-plugin-next";var{rules:O}=Ee,Ke=Object.keys(O).filter(e=>!O[e].meta.deprecated),$e=Object.fromEntries(Ke.map(e=>[`@next/next/${e}`,"error"])),Pe={},qe=Object.assign($e,Pe),R=qe;var Se={"prettier/prettier":"error"},v=Se;var Ce={"brace-style":"off",camelcase:"off","comma-dangle":"off","comma-spacing":"off","default-param-last":"off","dot-notation":"off","func-call-spacing":"off",indent:"off","init-declarations":"off","keyword-spacing":"off","lines-between-class-members":"off","no-array-constructor":"off","no-dupe-class-members":"off","no-duplicate-imports":"off","no-empty-function":"off","no-extra-parens":"off","no-extra-semi":"off","no-implied-eval":"off","no-invalid-this":"off","no-loop-func":"off","no-loss-of-precision":"off","no-magic-numbers":"off","no-redeclare":"off","no-restricted-imports":"off","no-shadow":"off","no-throw-literal":"off","no-unused-expressions":"off","no-unused-vars":"off","no-use-before-define":"off","no-useless-constructor":"off","object-curly-spacing":"off","padding-line-between-statements":"off",quotes:"off","require-await":"off","no-return-await":"off",semi:"off","space-before-function-paren":"off","space-infix-ops":"off"},k=Ce;import Te from"eslint-plugin-cypress";var{rules:h}=Te,Ie=Object.keys(h).filter(e=>!h[e].meta.deprecated),Ae=Object.fromEntries(Ie.map(e=>[`cypress/${e}`,"error"])),He={},Le=Object.assign(Ae,He),w=Le;import ze from"eslint-plugin-storybook";var{rules:E}=ze,Fe=Object.keys(E).filter(e=>!E[e].meta.deprecated),Qe=Object.fromEntries(Fe.map(e=>[`storybook/${e}`,"error"])),Ve={},_e=Object.assign(Qe,Ve),K=_e;import Be from"eslint-plugin-unused-imports";var{rules:$}=Be,De=Object.keys($).filter(e=>!$[e].meta.deprecated),Ge=Object.fromEntries(De.map(e=>[`unused-imports/${e}`,"error"])),Je={},Me=Object.assign(Ge,Je),P=Me;import Ne from"eslint-plugin-sonarjs";var{rules:q}=Ne,Ue=Object.keys(q).filter(e=>!q[e].meta.deprecated),We=Object.fromEntries(Ue.map(e=>[`sonarjs/${e}`,"error"])),Xe={"sonarjs/elseif-without-else":"off"},Ye=Object.assign(We,Xe),S=Ye;var Ze={"compat/compat":"warn"},C=Ze;import et from"eslint-plugin-unicorn";var{rules:T}=et,tt=Object.keys(T).filter(e=>!T[e].meta.deprecated),ot=Object.fromEntries(tt.map(e=>[`unicorn/${e}`,"error"])),rt={"unicorn/no-keyword-prefix":"off","unicorn/no-null":"off","unicorn/no-array-callback-reference":"off","unicorn/prevent-abbreviations":["error",{allowList:{getInitialProps:!0,getServerSideProps:!0,getStaticPaths:!0,getStaticProps:!0,generateStaticParams:!0}}]},st=Object.assign(ot,rt),I=st;import nt from"eslint-plugin-github";var{rules:A}=nt,it=Object.keys(A).filter(e=>!A[e].meta.deprecated),ft=Object.fromEntries(it.map(e=>[`github/${e}`,"error"])),at={},pt=Object.assign(ft,at),H=pt;import{rules as L}from"@tanstack/eslint-plugin-query";var ct=Object.keys(L).filter(e=>!L[e].meta.deprecated),lt=Object.fromEntries(ct.map(e=>[`@tanstack/eslint-plugin-query/${e}`,"error"])),mt={},ut=Object.assign(lt,mt),z=ut;var At=[o.configs.typescript,{languageOptions:{sourceType:"module",globals:{...t.browser,...t.node},parserOptions:{ecmaVersion:"latest",sourceType:"module",ecmaFeatures:{jsx:!0}}},files:["**/*.js","**/*.jsx","**/*.ts","**/*.tsx","**/*.json","**/*.mjs","**/*.cjs","**/*.html"],plugins:{prettier:vt,react:dt,"react-hooks":bt,"jsx-a11y":gt,import:o,promise:xt,n:Ot,"@next/next":Rt,"unused-imports":wt,sonarjs:St,compat:$t,unicorn:Ct,github:Tt,"@tanstack/eslint-plugin-query":It},rules:{...r,...n,...f,...l,...u,...g,...x,...R,...v,...Pt.rules,...P,...S,...C,...I,...H,...z},settings:{react:{version:"detect"},"import/parsers":{espree:[".js",".cjs",".mjs",".jsx",".ts",".tsx"]},"import/resolver":{typescript:!0,node:!0}}},{files:["**/*.ts","**/*.tsx"],languageOptions:{parser:qt,parserOptions:{project:"./tsconfig.json"}},plugins:{"@typescript-eslint":yt,"import/typescript":Et},rules:{...k,...p}},{files:["**/*.test.js","**/*.test.jsx","tests/**/*.js","tests/**/*.jsx"],languageOptions:{globals:{...t.jest}},plugins:{jest:jt},rules:{...b}},{files:["**/*.cy.js","**/*.cy.jsx"],languageOptions:{globals:{...t.cypress}},plugins:{cypress:kt},rules:{...w}},{files:["**/*.stories.js","**/*.stories.jsx","**/*.stories.ts","**/*.stories.tsx"],plugins:{storybook:ht},rules:{...K}},{files:["**/*.html"],plugins:{html:Kt},settings:{"html/javascript-tag-names":["script","Script"]}}],nr=At;export{nr as default};
|
package/package.json
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
"defaults"
|
|
4
4
|
],
|
|
5
5
|
"dependencies": {
|
|
6
|
+
"@eslint/js": "^8.56.0",
|
|
6
7
|
"@next/eslint-plugin-next": "^14.2.3",
|
|
7
8
|
"@tanstack/eslint-plugin-query": "^5.35.6",
|
|
8
9
|
"@typescript-eslint/eslint-plugin": "^7.11.0",
|
|
@@ -53,7 +54,7 @@
|
|
|
53
54
|
},
|
|
54
55
|
"name": "ultracite",
|
|
55
56
|
"description": "Strict, opinionated ESLint config for modern TypeScript apps.",
|
|
56
|
-
"version": "3.9.
|
|
57
|
+
"version": "3.9.7",
|
|
57
58
|
"publishConfig": {
|
|
58
59
|
"access": "public",
|
|
59
60
|
"registry": "https://registry.npmjs.org/"
|