@4mbl/lint 0.0.0-alpha.a78f42b → 0.0.0-alpha.a82a736

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,423 +1,7 @@
1
1
  import { defineConfig, type OxlintConfig } from 'oxlint';
2
2
  export type ReactOptions = {};
3
- declare function reactConfig(_options?: Partial<ReactOptions>): {
4
- extends: {
5
- plugins: ("unicorn" | "typescript")[];
6
- jsPlugins: never[];
7
- categories: {
8
- correctness: "error";
9
- suspicious: "warn";
10
- pedantic: "off";
11
- perf: "warn";
12
- style: "warn";
13
- restriction: "warn";
14
- nursery: "off";
15
- };
16
- env: {
17
- builtin: true;
18
- };
19
- options: {
20
- typeAware: true;
21
- };
22
- rules: {
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': "warn";
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
- 'eslint/no-duplicate-imports': ["warn", {
125
- allowSeparateTypeImports: boolean;
126
- }];
127
- 'unicorn/no-new-array': "off";
128
- 'eslint/no-array-constructor': "warn";
129
- 'typescript/explicit-function-return-type': "off";
130
- 'typescript/explicit-module-boundary-types': "off";
131
- 'unicorn/no-anonymous-default-export': "off";
132
- 'eslint/sort-imports': "off";
133
- 'eslint/no-magic-numbers': "off";
134
- 'unicorn/prefer-modern-math-apis': "off";
135
- 'eslint/no-use-before-define': "off";
136
- 'eslint/constructor-super': "off";
137
- 'eslint/getter-return': "off";
138
- 'eslint/no-dupe-class-members': "off";
139
- 'eslint/no-dupe-keys': "off";
140
- 'eslint/no-new-native-nonconstructor': "off";
141
- 'eslint/no-setter-return': "off";
142
- 'eslint/no-this-before-super': "off";
143
- 'eslint/no-undef': "off";
144
- 'eslint/no-unreachable': "off";
145
- 'eslint/no-with': "off";
146
- 'unicorn/no-nested-ternary': "off";
147
- 'oxc/no-optional-chaining': "off";
148
- 'oxc/no-rest-spread-properties': "off";
149
- 'oxc/no-async-await': "off";
150
- };
151
- }[];
152
- plugins: "react"[];
153
- jsPlugins: {
154
- name: string;
155
- specifier: string;
156
- }[];
157
- rules: {
158
- 'react-hooks-js/rules-of-hooks': "error";
159
- 'react-hooks-js/exhaustive-deps': "warn";
160
- 'react-hooks-js/set-state-in-effect': "warn";
161
- 'react-refresh-js/only-export-components': "error";
162
- 'react-compiler-js/react-compiler': "error";
163
- };
164
- overrides: {
165
- files: string[];
166
- rules: {
167
- 'react/display-name': "error";
168
- 'react/jsx-key': "error";
169
- 'react/jsx-no-comment-textnodes': "error";
170
- 'react/jsx-no-duplicate-props': "error";
171
- 'react/jsx-no-target-blank': "off";
172
- 'react/jsx-no-undef': "error";
173
- 'react/no-children-prop': "error";
174
- 'react/no-danger-with-children': "error";
175
- 'react/no-direct-mutation-state': "error";
176
- 'react/no-find-dom-node': "error";
177
- 'react/no-is-mounted': "error";
178
- 'react/no-render-return-value': "error";
179
- 'react/no-string-refs': "error";
180
- 'react/no-unescaped-entities': "error";
181
- 'react/no-unknown-property': "off";
182
- 'react/no-unsafe': "off";
183
- 'react/react-in-jsx-scope': "off";
184
- 'react/require-render-return': "error";
185
- 'import/no-anonymous-default-export': "warn";
186
- 'jsx-a11y/alt-text': ["warn", {
187
- elements: string[];
188
- img: string[];
189
- }];
190
- 'jsx-a11y/aria-props': "warn";
191
- 'jsx-a11y/aria-proptypes': "warn";
192
- 'jsx-a11y/aria-unsupported-elements': "warn";
193
- 'jsx-a11y/role-has-required-aria-props': "warn";
194
- 'jsx-a11y/role-supports-aria-props': "warn";
195
- };
196
- globals: {
197
- AudioWorkletGlobalScope: "readonly";
198
- AudioWorkletProcessor: "readonly";
199
- currentFrame: "readonly";
200
- currentTime: "readonly";
201
- registerProcessor: "readonly";
202
- sampleRate: "readonly";
203
- WorkletGlobalScope: "readonly";
204
- };
205
- plugins: ("import" | "jsx-a11y")[];
206
- env: {
207
- browser: true;
208
- node: true;
209
- };
210
- }[];
211
- };
3
+ declare function reactConfig(options?: Partial<ReactOptions>): OxlintConfig;
212
4
  export { type OxlintConfig, defineConfig, reactConfig };
213
- declare const _default: {
214
- extends: {
215
- plugins: ("unicorn" | "typescript")[];
216
- jsPlugins: never[];
217
- categories: {
218
- correctness: "error";
219
- suspicious: "warn";
220
- pedantic: "off";
221
- perf: "warn";
222
- style: "warn";
223
- restriction: "warn";
224
- nursery: "off";
225
- };
226
- env: {
227
- builtin: true;
228
- };
229
- options: {
230
- typeAware: true;
231
- };
232
- rules: {
233
- 'eslint/no-var': "warn";
234
- 'eslint/prefer-const': "error";
235
- 'eslint/prefer-rest-params': "error";
236
- 'eslint/prefer-spread': "error";
237
- 'eslint/no-async-promise-executor': "error";
238
- 'eslint/no-case-declarations': "error";
239
- 'eslint/no-class-assign': "error";
240
- 'eslint/no-compare-neg-zero': "error";
241
- 'eslint/no-cond-assign': "error";
242
- 'eslint/no-const-assign': "error";
243
- 'eslint/no-constant-binary-expression': "error";
244
- 'eslint/no-constant-condition': "error";
245
- 'eslint/no-control-regex': "error";
246
- 'eslint/no-debugger': "error";
247
- 'eslint/no-delete-var': "error";
248
- 'eslint/no-dupe-else-if': "error";
249
- 'eslint/no-duplicate-case': "error";
250
- 'eslint/no-empty': "error";
251
- 'eslint/no-empty-character-class': "error";
252
- 'eslint/no-empty-pattern': "error";
253
- 'eslint/no-empty-static-block': "error";
254
- 'eslint/no-ex-assign': "error";
255
- 'eslint/no-extra-boolean-cast': "error";
256
- 'eslint/no-fallthrough': ["error", {
257
- allowEmptyCase: boolean;
258
- }];
259
- 'eslint/no-func-assign': "error";
260
- 'eslint/no-global-assign': "error";
261
- 'eslint/no-import-assign': "error";
262
- 'eslint/no-invalid-regexp': "error";
263
- 'eslint/no-irregular-whitespace': "error";
264
- 'eslint/no-loss-of-precision': "error";
265
- 'eslint/no-misleading-character-class': "error";
266
- 'eslint/no-nonoctal-decimal-escape': "error";
267
- 'eslint/no-obj-calls': "error";
268
- 'eslint/no-prototype-builtins': "error";
269
- 'eslint/no-redeclare': "error";
270
- 'eslint/no-regex-spaces': "error";
271
- 'eslint/no-self-assign': "error";
272
- 'eslint/no-shadow-restricted-names': "error";
273
- 'eslint/no-sparse-arrays': "error";
274
- 'eslint/no-unexpected-multiline': "error";
275
- 'eslint/no-unsafe-finally': "error";
276
- 'eslint/no-unsafe-negation': "error";
277
- 'eslint/no-unsafe-optional-chaining': "error";
278
- 'eslint/no-unused-labels': "error";
279
- 'eslint/no-unused-private-class-members': "error";
280
- 'eslint/no-unused-vars': "warn";
281
- 'eslint/no-useless-backreference': "error";
282
- 'eslint/no-useless-catch': "error";
283
- 'eslint/no-useless-escape': "error";
284
- 'eslint/require-yield': "error";
285
- 'eslint/use-isnan': "error";
286
- 'eslint/valid-typeof': "error";
287
- 'eslint/no-unused-expressions': "warn";
288
- 'typescript/ban-ts-comment': "error";
289
- 'typescript/no-duplicate-enum-values': "off";
290
- 'typescript/no-empty-object-type': "error";
291
- 'typescript/no-explicit-any': "error";
292
- 'typescript/no-extra-non-null-assertion': "error";
293
- 'typescript/no-misused-new': "error";
294
- 'typescript/no-namespace': "error";
295
- 'typescript/no-non-null-asserted-optional-chain': "error";
296
- 'typescript/no-require-imports': "error";
297
- 'typescript/no-this-alias': "error";
298
- 'typescript/no-unnecessary-type-constraint': "error";
299
- 'typescript/no-unsafe-declaration-merging': "error";
300
- 'typescript/no-unsafe-function-type': "error";
301
- 'typescript/no-wrapper-object-types': "error";
302
- 'typescript/prefer-as-const': "error";
303
- 'typescript/triple-slash-reference': "error";
304
- 'typescript/explicit-member-accessibility': ["warn", {
305
- accessibility: string;
306
- }];
307
- 'eslint/id-length': "off";
308
- 'eslint/sort-keys': "off";
309
- 'eslint/capitalized-comments': "off";
310
- 'eslint/func-style': "off";
311
- 'eslint/complexity': "off";
312
- 'eslint/max-params': "off";
313
- 'eslint/no-ternary': "off";
314
- 'eslint/curly': "warn";
315
- 'typescript/consistent-type-definitions': ["warn", string];
316
- 'eslint/max-statements': "off";
317
- 'typescript/consistent-return': "off";
318
- 'unicorn/switch-case-braces': "warn";
319
- 'typescript/prefer-regexp-exec': "warn";
320
- 'eslint/init-declarations': "off";
321
- 'unicorn/no-null': "warn";
322
- 'eslint/no-undefined': "off";
323
- 'eslint/no-console': "off";
324
- 'eslint/no-continue': "off";
325
- 'eslint/no-implicit-coercion': ["warn", {
326
- allow: string[];
327
- }];
328
- 'eslint/no-plusplus': "off";
329
- 'eslint/no-void': "off";
330
- 'eslint/no-nested-ternary': "off";
331
- 'eslint/no-empty-function': ["warn", {
332
- allow: string[];
333
- }];
334
- 'eslint/no-duplicate-imports': ["warn", {
335
- allowSeparateTypeImports: boolean;
336
- }];
337
- 'unicorn/no-new-array': "off";
338
- 'eslint/no-array-constructor': "warn";
339
- 'typescript/explicit-function-return-type': "off";
340
- 'typescript/explicit-module-boundary-types': "off";
341
- 'unicorn/no-anonymous-default-export': "off";
342
- 'eslint/sort-imports': "off";
343
- 'eslint/no-magic-numbers': "off";
344
- 'unicorn/prefer-modern-math-apis': "off";
345
- 'eslint/no-use-before-define': "off";
346
- 'eslint/constructor-super': "off";
347
- 'eslint/getter-return': "off";
348
- 'eslint/no-dupe-class-members': "off";
349
- 'eslint/no-dupe-keys': "off";
350
- 'eslint/no-new-native-nonconstructor': "off";
351
- 'eslint/no-setter-return': "off";
352
- 'eslint/no-this-before-super': "off";
353
- 'eslint/no-undef': "off";
354
- 'eslint/no-unreachable': "off";
355
- 'eslint/no-with': "off";
356
- 'unicorn/no-nested-ternary': "off";
357
- 'oxc/no-optional-chaining': "off";
358
- 'oxc/no-rest-spread-properties': "off";
359
- 'oxc/no-async-await': "off";
360
- };
361
- }[];
362
- plugins: "react"[];
363
- jsPlugins: {
364
- name: string;
365
- specifier: string;
366
- }[];
367
- rules: {
368
- 'react-hooks-js/rules-of-hooks': "error";
369
- 'react-hooks-js/exhaustive-deps': "warn";
370
- 'react-hooks-js/set-state-in-effect': "warn";
371
- 'react-refresh-js/only-export-components': "error";
372
- 'react-compiler-js/react-compiler': "error";
373
- };
374
- overrides: {
375
- files: string[];
376
- rules: {
377
- 'react/display-name': "error";
378
- 'react/jsx-key': "error";
379
- 'react/jsx-no-comment-textnodes': "error";
380
- 'react/jsx-no-duplicate-props': "error";
381
- 'react/jsx-no-target-blank': "off";
382
- 'react/jsx-no-undef': "error";
383
- 'react/no-children-prop': "error";
384
- 'react/no-danger-with-children': "error";
385
- 'react/no-direct-mutation-state': "error";
386
- 'react/no-find-dom-node': "error";
387
- 'react/no-is-mounted': "error";
388
- 'react/no-render-return-value': "error";
389
- 'react/no-string-refs': "error";
390
- 'react/no-unescaped-entities': "error";
391
- 'react/no-unknown-property': "off";
392
- 'react/no-unsafe': "off";
393
- 'react/react-in-jsx-scope': "off";
394
- 'react/require-render-return': "error";
395
- 'import/no-anonymous-default-export': "warn";
396
- 'jsx-a11y/alt-text': ["warn", {
397
- elements: string[];
398
- img: string[];
399
- }];
400
- 'jsx-a11y/aria-props': "warn";
401
- 'jsx-a11y/aria-proptypes': "warn";
402
- 'jsx-a11y/aria-unsupported-elements': "warn";
403
- 'jsx-a11y/role-has-required-aria-props': "warn";
404
- 'jsx-a11y/role-supports-aria-props': "warn";
405
- };
406
- globals: {
407
- AudioWorkletGlobalScope: "readonly";
408
- AudioWorkletProcessor: "readonly";
409
- currentFrame: "readonly";
410
- currentTime: "readonly";
411
- registerProcessor: "readonly";
412
- sampleRate: "readonly";
413
- WorkletGlobalScope: "readonly";
414
- };
415
- plugins: ("import" | "jsx-a11y")[];
416
- env: {
417
- browser: true;
418
- node: true;
419
- };
420
- }[];
421
- };
5
+ declare const _default: OxlintConfig;
422
6
  export default _default;
423
7
  //# sourceMappingURL=react.d.ts.map
@@ -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;AAIzD,MAAM,MAAM,YAAY,GAAG,EAAE,CAAC;AAI9B,iBAAS,WAAW,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC,gBA6FnD;AAED,OAAO,EAAE,KAAK,YAAY,EAAE,YAAY,EAAE,WAAW,EAAE,CAAC"}
package/dist/react.js CHANGED
@@ -1,26 +1,66 @@
1
1
  import { defineConfig } from 'oxlint';
2
2
  import { baseConfig } from './base.js';
3
+ import { extendConfig } from './config.js';
3
4
  // const DEFAULT_OPTIONS: ReactOptions = {};
4
- function reactConfig(_options) {
5
+ function reactConfig(options) {
5
6
  // const opts = { ...DEFAULT_OPTIONS, ...options };
6
- return defineConfig({
7
- extends: [baseConfig()],
8
- plugins: ['react'],
9
- jsPlugins: [
10
- { name: 'react-hooks-js', specifier: 'eslint-plugin-react-hooks' },
11
- { name: 'react-refresh-js', specifier: 'eslint-plugin-react-refresh' },
12
- { name: 'react-compiler-js', specifier: 'eslint-plugin-react-compiler' },
13
- ],
7
+ const base = baseConfig(options);
8
+ return extendConfig(base, {
9
+ plugins: ['react', 'jsx-a11y'],
10
+ jsPlugins: [],
11
+ env: {
12
+ browser: true,
13
+ node: true,
14
+ },
15
+ globals: {
16
+ AudioWorkletGlobalScope: 'readonly',
17
+ AudioWorkletProcessor: 'readonly',
18
+ currentFrame: 'readonly',
19
+ currentTime: 'readonly',
20
+ registerProcessor: 'readonly',
21
+ sampleRate: 'readonly',
22
+ WorkletGlobalScope: 'readonly',
23
+ },
14
24
  rules: {
15
- 'react-hooks-js/rules-of-hooks': 'error',
16
- 'react-hooks-js/exhaustive-deps': 'warn',
17
- 'react-hooks-js/set-state-in-effect': 'warn',
18
- 'react-refresh-js/only-export-components': 'error',
19
- 'react-compiler-js/react-compiler': 'error',
25
+ 'react/rules-of-hooks': 'error',
26
+ 'react/exhaustive-deps': 'warn',
27
+ // react compiler rules
28
+ 'react/error-boundaries': 'error',
29
+ 'react/globals': 'error',
30
+ 'react/immutability': 'error',
31
+ 'react/incompatible-library': 'error',
32
+ 'react/preserve-manual-memoization': 'error',
33
+ 'react/purity': 'error',
34
+ 'react/refs': 'error',
35
+ 'react/set-state-in-effect': 'error',
36
+ 'react/set-state-in-render': 'error',
37
+ 'react/static-components': 'error',
38
+ 'react/use-memo': 'error',
39
+ 'react/void-use-memo': 'error',
40
+ 'react/capitalized-calls': 'error',
41
+ 'react/exhaustive-effect-dependencies': 'error',
42
+ 'react/hooks': 'error',
43
+ 'react/memo-dependencies': 'error',
44
+ 'react/no-deriving-state-in-effects': 'error',
45
+ 'react/invariant': 'error',
46
+ 'react/rule-suppression': 'error',
47
+ 'react/syntax': 'error',
48
+ 'react/todo': 'error',
49
+ 'react/unsupported-syntax': 'error',
50
+ 'react/only-export-components': 'error',
51
+ 'import/no-anonymous-default-export': 'warn',
52
+ 'react/jsx-filename-extension': 'off',
53
+ 'react/jsx-max-depth': 'off',
54
+ 'react/no-multi-comp': 'off',
55
+ 'react/jsx-props-no-spreading': 'off',
56
+ 'react/jsx-no-literals': 'off',
57
+ // conflicts with tailwind
58
+ 'react/forbid-component-props': 'off',
59
+ 'react/forbid-dom-props': 'off',
20
60
  },
21
61
  overrides: [
22
62
  {
23
- files: ['**/*.{js,jsx,mjs,ts,tsx,mts,cts}'],
63
+ files: ['**/*.{jsx,tsx}'],
24
64
  rules: {
25
65
  'react/display-name': 'error',
26
66
  'react/jsx-key': 'error',
@@ -30,7 +70,6 @@ function reactConfig(_options) {
30
70
  'react/jsx-no-undef': 'error',
31
71
  'react/no-children-prop': 'error',
32
72
  'react/no-danger-with-children': 'error',
33
- // "react/no-deprecated": "error", // not implemented yet in oxlint
34
73
  'react/no-direct-mutation-state': 'error',
35
74
  'react/no-find-dom-node': 'error',
36
75
  'react/no-is-mounted': 'error',
@@ -41,7 +80,6 @@ function reactConfig(_options) {
41
80
  'react/no-unsafe': 'off',
42
81
  'react/react-in-jsx-scope': 'off',
43
82
  'react/require-render-return': 'error',
44
- 'import/no-anonymous-default-export': 'warn',
45
83
  'jsx-a11y/alt-text': ['warn', { elements: ['img'], img: ['Image'] }],
46
84
  'jsx-a11y/aria-props': 'warn',
47
85
  'jsx-a11y/aria-proptypes': 'warn',
@@ -49,20 +87,6 @@ function reactConfig(_options) {
49
87
  'jsx-a11y/role-has-required-aria-props': 'warn',
50
88
  'jsx-a11y/role-supports-aria-props': 'warn',
51
89
  },
52
- globals: {
53
- AudioWorkletGlobalScope: 'readonly',
54
- AudioWorkletProcessor: 'readonly',
55
- currentFrame: 'readonly',
56
- currentTime: 'readonly',
57
- registerProcessor: 'readonly',
58
- sampleRate: 'readonly',
59
- WorkletGlobalScope: 'readonly',
60
- },
61
- plugins: ['import', 'jsx-a11y'],
62
- env: {
63
- browser: true,
64
- node: true,
65
- },
66
90
  },
67
91
  ],
68
92
  });
package/dist/react.js.map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KAAK;SAChC;QACD,SAAS,EAAE;YACT;gBACE,KAAK,EAAE,CAAC,gBAAgB,CAAC;gBACzB,KAAK,EAAE;oBACL,oBAAoB,EAAE,OAAO;oBAC7B,eAAe,EAAE,OAAO;oBACxB,gCAAgC,EAAE,OAAO;oBACzC,8BAA8B,EAAE,OAAO;oBACvC,2BAA2B,EAAE,KAAK;oBAClC,oBAAoB,EAAE,OAAO;oBAC7B,wBAAwB,EAAE,OAAO;oBACjC,+BAA+B,EAAE,OAAO;oBACxC,gCAAgC,EAAE,OAAO;oBACzC,wBAAwB,EAAE,OAAO;oBACjC,qBAAqB,EAAE,OAAO;oBAC9B,8BAA8B,EAAE,OAAO;oBACvC,sBAAsB,EAAE,OAAO;oBAC/B,6BAA6B,EAAE,OAAO;oBACtC,2BAA2B,EAAE,KAAK;oBAClC,iBAAiB,EAAE,KAAK;oBACxB,0BAA0B,EAAE,KAAK;oBACjC,6BAA6B,EAAE,OAAO;oBACtC,mBAAmB,EAAE,CAAC,MAAM,EAAE,EAAE,QAAQ,EAAE,CAAC,KAAK,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;oBACpE,qBAAqB,EAAE,MAAM;oBAC7B,yBAAyB,EAAE,MAAM;oBACjC,oCAAoC,EAAE,MAAM;oBAC5C,uCAAuC,EAAE,MAAM;oBAC/C,mCAAmC,EAAE,MAAM;iBAC5C;aACF;SACF;KACF,CAAC,CAAC;AACL,CAAC;AAED,OAAO,EAAqB,YAAY,EAAE,WAAW,EAAE,CAAC;AAExD,eAAe,WAAW,EAAE,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@4mbl/lint",
3
- "version": "0.0.0-alpha.a78f42b",
3
+ "version": "0.0.0-alpha.a82a736",
4
4
  "description": "Linting configuration for various environments.",
5
5
  "type": "module",
6
6
  "author": "4mbl",
@@ -31,17 +31,12 @@
31
31
  "lint"
32
32
  ],
33
33
  "dependencies": {
34
- "eslint-plugin-react-compiler": "19.1.0-rc.2",
35
- "eslint-plugin-react-hooks": "^7.1.1",
36
- "eslint-plugin-react-refresh": "^0.5.2",
37
- "globals": "^17.5.0",
38
- "jiti": "^2.6.1",
39
- "oxlint": "^1.60.0",
40
- "oxlint-tsgolint": "^0.21.1"
34
+ "oxlint": "1.86.x",
35
+ "oxlint-tsgolint": "7.0.x"
41
36
  },
42
37
  "devDependencies": {
43
- "@types/node": "^24.12.2",
44
- "@4mbl/tsconfig": "0.0.0-alpha.a78f42b"
38
+ "@4mbl/tsconfig": "0.0.0-alpha.a82a736",
39
+ "@types/node": "^24.19.0"
45
40
  },
46
41
  "scripts": {
47
42
  "build": "tsc"