@4mbl/lint 0.0.0-alpha.c07b435 → 0.0.0-alpha.d04860c

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/react.d.ts CHANGED
@@ -1,11 +1,17 @@
1
1
  import { defineConfig, type OxlintConfig } from 'oxlint';
2
2
  export type ReactOptions = {};
3
- declare function reactConfig(_options?: Partial<ReactOptions>): {
3
+ declare function reactConfig(options?: Partial<ReactOptions>): {
4
4
  extends: {
5
- plugins: ("unicorn" | "typescript")[];
5
+ plugins: ("unicorn" | "typescript" | "import")[];
6
6
  jsPlugins: never[];
7
7
  categories: {
8
- correctness: "off";
8
+ correctness: "error";
9
+ suspicious: "warn";
10
+ pedantic: "off";
11
+ perf: "warn";
12
+ style: "warn";
13
+ restriction: "warn";
14
+ nursery: "off";
9
15
  };
10
16
  env: {
11
17
  builtin: true;
@@ -14,123 +20,165 @@ declare function reactConfig(_options?: Partial<ReactOptions>): {
14
20
  typeAware: true;
15
21
  };
16
22
  rules: {
17
- 'constructor-super': "error";
18
- 'for-direction': "error";
19
- 'getter-return': "error";
20
- 'no-async-promise-executor': "error";
21
- 'no-case-declarations': "error";
22
- 'no-class-assign': "error";
23
- 'no-compare-neg-zero': "error";
24
- 'no-cond-assign': "error";
25
- 'no-const-assign': "error";
26
- 'no-constant-binary-expression': "error";
27
- 'no-constant-condition': "error";
28
- 'no-control-regex': "error";
29
- 'no-debugger': "error";
30
- 'no-delete-var': "error";
31
- 'no-dupe-class-members': "error";
32
- 'no-dupe-else-if': "error";
33
- 'no-dupe-keys': "error";
34
- 'no-duplicate-case': "error";
35
- 'no-empty': "error";
36
- 'no-empty-character-class': "error";
37
- 'no-empty-pattern': "error";
38
- 'no-empty-static-block': "error";
39
- 'no-ex-assign': "error";
40
- 'no-extra-boolean-cast': "error";
41
- 'no-fallthrough': "error";
42
- 'no-func-assign': "error";
43
- 'no-global-assign': "error";
44
- 'no-import-assign': "error";
45
- 'no-invalid-regexp': "error";
46
- 'no-irregular-whitespace': "error";
47
- 'no-loss-of-precision': "error";
48
- 'no-misleading-character-class': "error";
49
- 'no-new-native-nonconstructor': "error";
50
- 'no-nonoctal-decimal-escape': "error";
51
- 'no-obj-calls': "error";
52
- 'no-prototype-builtins': "error";
53
- 'no-redeclare': "error";
54
- 'no-regex-spaces': "error";
55
- 'no-self-assign': "error";
56
- 'no-setter-return': "error";
57
- 'no-shadow-restricted-names': "error";
58
- 'no-sparse-arrays': "error";
59
- 'no-this-before-super': "error";
60
- 'no-undef': "error";
61
- 'no-unexpected-multiline': "error";
62
- 'no-unreachable': "error";
63
- 'no-unsafe-finally': "error";
64
- 'no-unsafe-negation': "error";
65
- 'no-unsafe-optional-chaining': "error";
66
- 'no-unused-labels': "error";
67
- 'no-unused-private-class-members': "error";
68
- 'no-unused-vars': "warn";
69
- 'no-useless-backreference': "error";
70
- 'no-useless-catch': "error";
71
- 'no-useless-escape': "error";
72
- 'no-with': "error";
73
- 'require-yield': "error";
74
- 'use-isnan': "error";
75
- 'valid-typeof': "error";
76
- '@typescript-eslint/ban-ts-comment': "error";
77
- 'no-array-constructor': "error";
78
- '@typescript-eslint/no-duplicate-enum-values': "error";
79
- '@typescript-eslint/no-empty-object-type': "error";
80
- '@typescript-eslint/no-explicit-any': "error";
81
- '@typescript-eslint/no-extra-non-null-assertion': "error";
82
- '@typescript-eslint/no-misused-new': "error";
83
- '@typescript-eslint/no-namespace': "error";
84
- '@typescript-eslint/no-non-null-asserted-optional-chain': "error";
85
- '@typescript-eslint/no-require-imports': "error";
86
- '@typescript-eslint/no-this-alias': "error";
87
- '@typescript-eslint/no-unnecessary-type-constraint': "error";
88
- '@typescript-eslint/no-unsafe-declaration-merging': "error";
89
- '@typescript-eslint/no-unsafe-function-type': "error";
90
- 'no-unused-expressions': "warn";
91
- '@typescript-eslint/no-wrapper-object-types': "error";
92
- '@typescript-eslint/prefer-as-const': "error";
93
- '@typescript-eslint/prefer-namespace-keyword': "error";
94
- '@typescript-eslint/triple-slash-reference': "error";
23
+ 'eslint/no-var': "warn";
24
+ 'eslint/prefer-const': "error";
25
+ 'eslint/prefer-rest-params': "error";
26
+ 'eslint/prefer-spread': "error";
27
+ 'eslint/no-async-promise-executor': "error";
28
+ 'eslint/no-case-declarations': "error";
29
+ 'eslint/no-class-assign': "error";
30
+ 'eslint/no-compare-neg-zero': "error";
31
+ 'eslint/no-cond-assign': "error";
32
+ 'eslint/no-const-assign': "error";
33
+ 'eslint/no-constant-binary-expression': "error";
34
+ 'eslint/no-constant-condition': "error";
35
+ 'eslint/no-control-regex': "error";
36
+ 'eslint/no-debugger': "error";
37
+ 'eslint/no-delete-var': "error";
38
+ 'eslint/no-dupe-else-if': "error";
39
+ 'eslint/no-duplicate-case': "error";
40
+ 'eslint/no-empty': "error";
41
+ 'eslint/no-empty-character-class': "error";
42
+ 'eslint/no-empty-pattern': "error";
43
+ 'eslint/no-empty-static-block': "error";
44
+ 'eslint/no-ex-assign': "error";
45
+ 'eslint/no-extra-boolean-cast': "error";
46
+ 'eslint/no-fallthrough': ["error", {
47
+ allowEmptyCase: boolean;
48
+ }];
49
+ 'eslint/no-func-assign': "error";
50
+ 'eslint/no-global-assign': "error";
51
+ 'eslint/no-import-assign': "error";
52
+ 'eslint/no-invalid-regexp': "error";
53
+ 'eslint/no-irregular-whitespace': "error";
54
+ 'eslint/no-loss-of-precision': "error";
55
+ 'eslint/no-misleading-character-class': "error";
56
+ 'eslint/no-nonoctal-decimal-escape': "error";
57
+ 'eslint/no-obj-calls': "error";
58
+ 'eslint/no-prototype-builtins': "error";
59
+ 'eslint/no-redeclare': "error";
60
+ 'eslint/no-regex-spaces': "error";
61
+ 'eslint/no-self-assign': "error";
62
+ 'eslint/no-shadow-restricted-names': "error";
63
+ 'eslint/no-sparse-arrays': "error";
64
+ 'eslint/no-unexpected-multiline': "error";
65
+ 'eslint/no-unsafe-finally': "error";
66
+ 'eslint/no-unsafe-negation': "error";
67
+ 'eslint/no-unsafe-optional-chaining': "error";
68
+ 'eslint/no-unused-labels': "error";
69
+ 'eslint/no-unused-private-class-members': "error";
70
+ 'eslint/no-unused-vars': "warn";
71
+ 'eslint/no-useless-backreference': "error";
72
+ 'eslint/no-useless-catch': "error";
73
+ 'eslint/no-useless-escape': "error";
74
+ 'eslint/require-yield': "error";
75
+ 'eslint/use-isnan': "error";
76
+ 'eslint/valid-typeof': "error";
77
+ 'eslint/no-unused-expressions': "warn";
78
+ 'typescript/ban-ts-comment': "error";
79
+ 'typescript/no-duplicate-enum-values': "off";
80
+ 'typescript/no-empty-object-type': "error";
81
+ 'typescript/no-explicit-any': "error";
82
+ 'typescript/no-extra-non-null-assertion': "error";
83
+ 'typescript/no-misused-new': "error";
84
+ 'typescript/no-namespace': "error";
85
+ 'typescript/no-non-null-asserted-optional-chain': "error";
86
+ 'typescript/no-require-imports': "error";
87
+ 'typescript/no-this-alias': "error";
88
+ 'typescript/no-unnecessary-type-constraint': "error";
89
+ 'typescript/no-unsafe-declaration-merging': "error";
90
+ 'typescript/no-unsafe-function-type': "error";
91
+ 'typescript/no-wrapper-object-types': "error";
92
+ 'typescript/prefer-as-const': "error";
93
+ 'typescript/triple-slash-reference': "error";
94
+ 'typescript/explicit-member-accessibility': ["warn", {
95
+ accessibility: string;
96
+ }];
97
+ 'eslint/id-length': "off";
98
+ 'eslint/sort-keys': "off";
99
+ 'eslint/capitalized-comments': "off";
100
+ 'eslint/func-style': "off";
101
+ 'eslint/complexity': "off";
102
+ 'eslint/max-params': "off";
103
+ 'eslint/no-ternary': "off";
104
+ 'eslint/curly': "warn";
105
+ 'typescript/consistent-type-definitions': ["warn", string];
106
+ 'eslint/max-statements': "off";
107
+ 'typescript/consistent-return': "off";
108
+ 'unicorn/switch-case-braces': "warn";
109
+ 'typescript/prefer-regexp-exec': "warn";
110
+ 'eslint/init-declarations': "off";
111
+ 'unicorn/no-null': "off";
112
+ 'eslint/no-undefined': "off";
113
+ 'eslint/no-console': "off";
114
+ 'eslint/no-continue': "off";
115
+ 'eslint/no-implicit-coercion': ["warn", {
116
+ allow: string[];
117
+ }];
118
+ 'eslint/no-plusplus': "off";
119
+ 'eslint/no-void': "off";
120
+ 'eslint/no-nested-ternary': "off";
121
+ 'eslint/no-empty-function': ["warn", {
122
+ allow: string[];
123
+ }];
124
+ 'unicorn/no-instanceof-builtins': "off";
125
+ 'unicorn/prefer-spread': "off";
126
+ 'eslint/new-cap': "off";
127
+ 'unicorn/no-await-expression-member': "off";
128
+ 'eslint/no-duplicate-imports': ["warn", {
129
+ allowSeparateTypeImports: boolean;
130
+ }];
131
+ 'import/no-named-export': "off";
132
+ 'import/no-default-export': "off";
133
+ 'import/prefer-default-export': "off";
134
+ 'import/no-namespace': "off";
135
+ 'import/exports-last': "off";
136
+ 'import/no-unassigned-import': "off";
137
+ 'import/group-exports': "off";
138
+ 'import/consistent-type-specifier-style': "off";
139
+ 'unicorn/no-new-array': "off";
140
+ 'eslint/no-array-constructor': "warn";
141
+ 'typescript/explicit-function-return-type': "off";
142
+ 'typescript/explicit-module-boundary-types': "off";
143
+ 'unicorn/no-anonymous-default-export': "off";
144
+ 'eslint/sort-imports': "off";
145
+ 'import/no-relative-parent-imports': "off";
146
+ 'eslint/no-magic-numbers': "off";
147
+ 'unicorn/prefer-modern-math-apis': "off";
148
+ 'eslint/no-use-before-define': "off";
149
+ 'eslint/constructor-super': "off";
150
+ 'eslint/getter-return': "off";
151
+ 'eslint/no-dupe-class-members': "off";
152
+ 'eslint/no-dupe-keys': "off";
153
+ 'eslint/no-new-native-nonconstructor': "off";
154
+ 'eslint/no-setter-return': "off";
155
+ 'eslint/no-this-before-super': "off";
156
+ 'eslint/no-undef': "off";
157
+ 'eslint/no-unreachable': "off";
158
+ 'eslint/no-with': "off";
159
+ 'unicorn/no-nested-ternary': "off";
160
+ 'oxc/no-optional-chaining': "off";
161
+ 'oxc/no-rest-spread-properties': "off";
162
+ 'oxc/no-async-await': "off";
95
163
  };
96
- overrides: {
97
- files: string[];
98
- rules: {
99
- 'constructor-super': "off";
100
- 'getter-return': "off";
101
- 'no-class-assign': "off";
102
- 'no-const-assign': "off";
103
- 'no-dupe-class-members': "off";
104
- 'no-dupe-keys': "off";
105
- 'no-func-assign': "off";
106
- 'no-import-assign': "off";
107
- 'no-new-native-nonconstructor': "off";
108
- 'no-obj-calls': "off";
109
- 'no-redeclare': "off";
110
- 'no-setter-return': "off";
111
- 'no-this-before-super': "off";
112
- 'no-undef': "off";
113
- 'no-unreachable': "off";
114
- 'no-unsafe-negation': "off";
115
- 'no-var': "error";
116
- 'no-with': "off";
117
- 'prefer-const': "error";
118
- 'prefer-rest-params': "error";
119
- 'prefer-spread': "error";
120
- };
121
- }[];
122
164
  }[];
123
- plugins: "react"[];
165
+ plugins: ("react" | "unicorn" | "typescript" | "import")[];
124
166
  jsPlugins: {
125
167
  name: string;
126
168
  specifier: string;
127
169
  }[];
128
170
  rules: {
129
- 'react-hooks-js/rules-of-hooks': "error";
130
- 'react-hooks-js/exhaustive-deps': "warn";
171
+ 'react/rules-of-hooks': "error";
172
+ 'react/exhaustive-deps': "warn";
131
173
  'react-hooks-js/set-state-in-effect': "warn";
132
- 'react-refresh-js/only-export-components': "error";
174
+ 'react/only-export-components': "error";
133
175
  'react-compiler-js/react-compiler': "error";
176
+ 'react/jsx-filename-extension': "off";
177
+ 'react/jsx-max-depth': "off";
178
+ 'react/no-multi-comp': "off";
179
+ 'react/jsx-props-no-spreading': "off";
180
+ 'react/forbid-component-props': "off";
181
+ 'react/forbid-dom-props': "off";
134
182
  };
135
183
  overrides: {
136
184
  files: string[];
@@ -154,10 +202,10 @@ declare function reactConfig(_options?: Partial<ReactOptions>): {
154
202
  'react/react-in-jsx-scope': "off";
155
203
  'react/require-render-return': "error";
156
204
  'import/no-anonymous-default-export': "warn";
157
- 'jsx-a11y/alt-text': (string | {
205
+ 'jsx-a11y/alt-text': ["warn", {
158
206
  elements: string[];
159
207
  img: string[];
160
- })[];
208
+ }];
161
209
  'jsx-a11y/aria-props': "warn";
162
210
  'jsx-a11y/aria-proptypes': "warn";
163
211
  'jsx-a11y/aria-unsupported-elements': "warn";
@@ -183,10 +231,16 @@ declare function reactConfig(_options?: Partial<ReactOptions>): {
183
231
  export { type OxlintConfig, defineConfig, reactConfig };
184
232
  declare const _default: {
185
233
  extends: {
186
- plugins: ("unicorn" | "typescript")[];
234
+ plugins: ("unicorn" | "typescript" | "import")[];
187
235
  jsPlugins: never[];
188
236
  categories: {
189
- correctness: "off";
237
+ correctness: "error";
238
+ suspicious: "warn";
239
+ pedantic: "off";
240
+ perf: "warn";
241
+ style: "warn";
242
+ restriction: "warn";
243
+ nursery: "off";
190
244
  };
191
245
  env: {
192
246
  builtin: true;
@@ -195,123 +249,165 @@ declare const _default: {
195
249
  typeAware: true;
196
250
  };
197
251
  rules: {
198
- 'constructor-super': "error";
199
- 'for-direction': "error";
200
- 'getter-return': "error";
201
- 'no-async-promise-executor': "error";
202
- 'no-case-declarations': "error";
203
- 'no-class-assign': "error";
204
- 'no-compare-neg-zero': "error";
205
- 'no-cond-assign': "error";
206
- 'no-const-assign': "error";
207
- 'no-constant-binary-expression': "error";
208
- 'no-constant-condition': "error";
209
- 'no-control-regex': "error";
210
- 'no-debugger': "error";
211
- 'no-delete-var': "error";
212
- 'no-dupe-class-members': "error";
213
- 'no-dupe-else-if': "error";
214
- 'no-dupe-keys': "error";
215
- 'no-duplicate-case': "error";
216
- 'no-empty': "error";
217
- 'no-empty-character-class': "error";
218
- 'no-empty-pattern': "error";
219
- 'no-empty-static-block': "error";
220
- 'no-ex-assign': "error";
221
- 'no-extra-boolean-cast': "error";
222
- 'no-fallthrough': "error";
223
- 'no-func-assign': "error";
224
- 'no-global-assign': "error";
225
- 'no-import-assign': "error";
226
- 'no-invalid-regexp': "error";
227
- 'no-irregular-whitespace': "error";
228
- 'no-loss-of-precision': "error";
229
- 'no-misleading-character-class': "error";
230
- 'no-new-native-nonconstructor': "error";
231
- 'no-nonoctal-decimal-escape': "error";
232
- 'no-obj-calls': "error";
233
- 'no-prototype-builtins': "error";
234
- 'no-redeclare': "error";
235
- 'no-regex-spaces': "error";
236
- 'no-self-assign': "error";
237
- 'no-setter-return': "error";
238
- 'no-shadow-restricted-names': "error";
239
- 'no-sparse-arrays': "error";
240
- 'no-this-before-super': "error";
241
- 'no-undef': "error";
242
- 'no-unexpected-multiline': "error";
243
- 'no-unreachable': "error";
244
- 'no-unsafe-finally': "error";
245
- 'no-unsafe-negation': "error";
246
- 'no-unsafe-optional-chaining': "error";
247
- 'no-unused-labels': "error";
248
- 'no-unused-private-class-members': "error";
249
- 'no-unused-vars': "warn";
250
- 'no-useless-backreference': "error";
251
- 'no-useless-catch': "error";
252
- 'no-useless-escape': "error";
253
- 'no-with': "error";
254
- 'require-yield': "error";
255
- 'use-isnan': "error";
256
- 'valid-typeof': "error";
257
- '@typescript-eslint/ban-ts-comment': "error";
258
- 'no-array-constructor': "error";
259
- '@typescript-eslint/no-duplicate-enum-values': "error";
260
- '@typescript-eslint/no-empty-object-type': "error";
261
- '@typescript-eslint/no-explicit-any': "error";
262
- '@typescript-eslint/no-extra-non-null-assertion': "error";
263
- '@typescript-eslint/no-misused-new': "error";
264
- '@typescript-eslint/no-namespace': "error";
265
- '@typescript-eslint/no-non-null-asserted-optional-chain': "error";
266
- '@typescript-eslint/no-require-imports': "error";
267
- '@typescript-eslint/no-this-alias': "error";
268
- '@typescript-eslint/no-unnecessary-type-constraint': "error";
269
- '@typescript-eslint/no-unsafe-declaration-merging': "error";
270
- '@typescript-eslint/no-unsafe-function-type': "error";
271
- 'no-unused-expressions': "warn";
272
- '@typescript-eslint/no-wrapper-object-types': "error";
273
- '@typescript-eslint/prefer-as-const': "error";
274
- '@typescript-eslint/prefer-namespace-keyword': "error";
275
- '@typescript-eslint/triple-slash-reference': "error";
252
+ 'eslint/no-var': "warn";
253
+ 'eslint/prefer-const': "error";
254
+ 'eslint/prefer-rest-params': "error";
255
+ 'eslint/prefer-spread': "error";
256
+ 'eslint/no-async-promise-executor': "error";
257
+ 'eslint/no-case-declarations': "error";
258
+ 'eslint/no-class-assign': "error";
259
+ 'eslint/no-compare-neg-zero': "error";
260
+ 'eslint/no-cond-assign': "error";
261
+ 'eslint/no-const-assign': "error";
262
+ 'eslint/no-constant-binary-expression': "error";
263
+ 'eslint/no-constant-condition': "error";
264
+ 'eslint/no-control-regex': "error";
265
+ 'eslint/no-debugger': "error";
266
+ 'eslint/no-delete-var': "error";
267
+ 'eslint/no-dupe-else-if': "error";
268
+ 'eslint/no-duplicate-case': "error";
269
+ 'eslint/no-empty': "error";
270
+ 'eslint/no-empty-character-class': "error";
271
+ 'eslint/no-empty-pattern': "error";
272
+ 'eslint/no-empty-static-block': "error";
273
+ 'eslint/no-ex-assign': "error";
274
+ 'eslint/no-extra-boolean-cast': "error";
275
+ 'eslint/no-fallthrough': ["error", {
276
+ allowEmptyCase: boolean;
277
+ }];
278
+ 'eslint/no-func-assign': "error";
279
+ 'eslint/no-global-assign': "error";
280
+ 'eslint/no-import-assign': "error";
281
+ 'eslint/no-invalid-regexp': "error";
282
+ 'eslint/no-irregular-whitespace': "error";
283
+ 'eslint/no-loss-of-precision': "error";
284
+ 'eslint/no-misleading-character-class': "error";
285
+ 'eslint/no-nonoctal-decimal-escape': "error";
286
+ 'eslint/no-obj-calls': "error";
287
+ 'eslint/no-prototype-builtins': "error";
288
+ 'eslint/no-redeclare': "error";
289
+ 'eslint/no-regex-spaces': "error";
290
+ 'eslint/no-self-assign': "error";
291
+ 'eslint/no-shadow-restricted-names': "error";
292
+ 'eslint/no-sparse-arrays': "error";
293
+ 'eslint/no-unexpected-multiline': "error";
294
+ 'eslint/no-unsafe-finally': "error";
295
+ 'eslint/no-unsafe-negation': "error";
296
+ 'eslint/no-unsafe-optional-chaining': "error";
297
+ 'eslint/no-unused-labels': "error";
298
+ 'eslint/no-unused-private-class-members': "error";
299
+ 'eslint/no-unused-vars': "warn";
300
+ 'eslint/no-useless-backreference': "error";
301
+ 'eslint/no-useless-catch': "error";
302
+ 'eslint/no-useless-escape': "error";
303
+ 'eslint/require-yield': "error";
304
+ 'eslint/use-isnan': "error";
305
+ 'eslint/valid-typeof': "error";
306
+ 'eslint/no-unused-expressions': "warn";
307
+ 'typescript/ban-ts-comment': "error";
308
+ 'typescript/no-duplicate-enum-values': "off";
309
+ 'typescript/no-empty-object-type': "error";
310
+ 'typescript/no-explicit-any': "error";
311
+ 'typescript/no-extra-non-null-assertion': "error";
312
+ 'typescript/no-misused-new': "error";
313
+ 'typescript/no-namespace': "error";
314
+ 'typescript/no-non-null-asserted-optional-chain': "error";
315
+ 'typescript/no-require-imports': "error";
316
+ 'typescript/no-this-alias': "error";
317
+ 'typescript/no-unnecessary-type-constraint': "error";
318
+ 'typescript/no-unsafe-declaration-merging': "error";
319
+ 'typescript/no-unsafe-function-type': "error";
320
+ 'typescript/no-wrapper-object-types': "error";
321
+ 'typescript/prefer-as-const': "error";
322
+ 'typescript/triple-slash-reference': "error";
323
+ 'typescript/explicit-member-accessibility': ["warn", {
324
+ accessibility: string;
325
+ }];
326
+ 'eslint/id-length': "off";
327
+ 'eslint/sort-keys': "off";
328
+ 'eslint/capitalized-comments': "off";
329
+ 'eslint/func-style': "off";
330
+ 'eslint/complexity': "off";
331
+ 'eslint/max-params': "off";
332
+ 'eslint/no-ternary': "off";
333
+ 'eslint/curly': "warn";
334
+ 'typescript/consistent-type-definitions': ["warn", string];
335
+ 'eslint/max-statements': "off";
336
+ 'typescript/consistent-return': "off";
337
+ 'unicorn/switch-case-braces': "warn";
338
+ 'typescript/prefer-regexp-exec': "warn";
339
+ 'eslint/init-declarations': "off";
340
+ 'unicorn/no-null': "off";
341
+ 'eslint/no-undefined': "off";
342
+ 'eslint/no-console': "off";
343
+ 'eslint/no-continue': "off";
344
+ 'eslint/no-implicit-coercion': ["warn", {
345
+ allow: string[];
346
+ }];
347
+ 'eslint/no-plusplus': "off";
348
+ 'eslint/no-void': "off";
349
+ 'eslint/no-nested-ternary': "off";
350
+ 'eslint/no-empty-function': ["warn", {
351
+ allow: string[];
352
+ }];
353
+ 'unicorn/no-instanceof-builtins': "off";
354
+ 'unicorn/prefer-spread': "off";
355
+ 'eslint/new-cap': "off";
356
+ 'unicorn/no-await-expression-member': "off";
357
+ 'eslint/no-duplicate-imports': ["warn", {
358
+ allowSeparateTypeImports: boolean;
359
+ }];
360
+ 'import/no-named-export': "off";
361
+ 'import/no-default-export': "off";
362
+ 'import/prefer-default-export': "off";
363
+ 'import/no-namespace': "off";
364
+ 'import/exports-last': "off";
365
+ 'import/no-unassigned-import': "off";
366
+ 'import/group-exports': "off";
367
+ 'import/consistent-type-specifier-style': "off";
368
+ 'unicorn/no-new-array': "off";
369
+ 'eslint/no-array-constructor': "warn";
370
+ 'typescript/explicit-function-return-type': "off";
371
+ 'typescript/explicit-module-boundary-types': "off";
372
+ 'unicorn/no-anonymous-default-export': "off";
373
+ 'eslint/sort-imports': "off";
374
+ 'import/no-relative-parent-imports': "off";
375
+ 'eslint/no-magic-numbers': "off";
376
+ 'unicorn/prefer-modern-math-apis': "off";
377
+ 'eslint/no-use-before-define': "off";
378
+ 'eslint/constructor-super': "off";
379
+ 'eslint/getter-return': "off";
380
+ 'eslint/no-dupe-class-members': "off";
381
+ 'eslint/no-dupe-keys': "off";
382
+ 'eslint/no-new-native-nonconstructor': "off";
383
+ 'eslint/no-setter-return': "off";
384
+ 'eslint/no-this-before-super': "off";
385
+ 'eslint/no-undef': "off";
386
+ 'eslint/no-unreachable': "off";
387
+ 'eslint/no-with': "off";
388
+ 'unicorn/no-nested-ternary': "off";
389
+ 'oxc/no-optional-chaining': "off";
390
+ 'oxc/no-rest-spread-properties': "off";
391
+ 'oxc/no-async-await': "off";
276
392
  };
277
- overrides: {
278
- files: string[];
279
- rules: {
280
- 'constructor-super': "off";
281
- 'getter-return': "off";
282
- 'no-class-assign': "off";
283
- 'no-const-assign': "off";
284
- 'no-dupe-class-members': "off";
285
- 'no-dupe-keys': "off";
286
- 'no-func-assign': "off";
287
- 'no-import-assign': "off";
288
- 'no-new-native-nonconstructor': "off";
289
- 'no-obj-calls': "off";
290
- 'no-redeclare': "off";
291
- 'no-setter-return': "off";
292
- 'no-this-before-super': "off";
293
- 'no-undef': "off";
294
- 'no-unreachable': "off";
295
- 'no-unsafe-negation': "off";
296
- 'no-var': "error";
297
- 'no-with': "off";
298
- 'prefer-const': "error";
299
- 'prefer-rest-params': "error";
300
- 'prefer-spread': "error";
301
- };
302
- }[];
303
393
  }[];
304
- plugins: "react"[];
394
+ plugins: ("react" | "unicorn" | "typescript" | "import")[];
305
395
  jsPlugins: {
306
396
  name: string;
307
397
  specifier: string;
308
398
  }[];
309
399
  rules: {
310
- 'react-hooks-js/rules-of-hooks': "error";
311
- 'react-hooks-js/exhaustive-deps': "warn";
400
+ 'react/rules-of-hooks': "error";
401
+ 'react/exhaustive-deps': "warn";
312
402
  'react-hooks-js/set-state-in-effect': "warn";
313
- 'react-refresh-js/only-export-components': "error";
403
+ 'react/only-export-components': "error";
314
404
  'react-compiler-js/react-compiler': "error";
405
+ 'react/jsx-filename-extension': "off";
406
+ 'react/jsx-max-depth': "off";
407
+ 'react/no-multi-comp': "off";
408
+ 'react/jsx-props-no-spreading': "off";
409
+ 'react/forbid-component-props': "off";
410
+ 'react/forbid-dom-props': "off";
315
411
  };
316
412
  overrides: {
317
413
  files: string[];
@@ -335,10 +431,10 @@ declare const _default: {
335
431
  'react/react-in-jsx-scope': "off";
336
432
  'react/require-render-return': "error";
337
433
  'import/no-anonymous-default-export': "warn";
338
- 'jsx-a11y/alt-text': (string | {
434
+ 'jsx-a11y/alt-text': ["warn", {
339
435
  elements: string[];
340
436
  img: string[];
341
- })[];
437
+ }];
342
438
  'jsx-a11y/aria-props': "warn";
343
439
  'jsx-a11y/aria-proptypes': "warn";
344
440
  'jsx-a11y/aria-unsupported-elements': "warn";
@@ -1 +1 @@
1
- {"version":3,"file":"react.d.ts","sourceRoot":"","sources":["../src/react.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,KAAK,YAAY,EAAE,MAAM,QAAQ,CAAC;AAGzD,MAAM,MAAM,YAAY,GAAG,EAAE,CAAC;AAI9B,iBAAS,WAAW,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkEpD;AAED,OAAO,EAAE,KAAK,YAAY,EAAE,YAAY,EAAE,WAAW,EAAE,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAExD,wBAA6B"}
1
+ {"version":3,"file":"react.d.ts","sourceRoot":"","sources":["../src/react.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,KAAK,YAAY,EAAE,MAAM,QAAQ,CAAC;AAGzD,MAAM,MAAM,YAAY,GAAG,EAAE,CAAC;AAI9B,iBAAS,WAAW,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkFnD;AAED,OAAO,EAAE,KAAK,YAAY,EAAE,YAAY,EAAE,WAAW,EAAE,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAExD,wBAA6B"}