@4mbl/lint 0.0.0-alpha.e34f9fe → 0.0.0-alpha.e676d07

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/node.d.ts CHANGED
@@ -2,7 +2,7 @@ import { defineConfig, type OxlintConfig } from 'oxlint';
2
2
  type NodeOptions = {};
3
3
  declare function nodeConfig(options?: Partial<NodeOptions>): {
4
4
  extends: {
5
- plugins: ("unicorn" | "typescript" | "import")[];
5
+ plugins: ("import" | "typescript" | "unicorn")[];
6
6
  jsPlugins: never[];
7
7
  categories: {
8
8
  correctness: "error";
@@ -18,6 +18,7 @@ declare function nodeConfig(options?: Partial<NodeOptions>): {
18
18
  };
19
19
  options: {
20
20
  typeAware: true;
21
+ typeCheck: true;
21
22
  };
22
23
  rules: {
23
24
  'eslint/no-var': "warn";
@@ -92,7 +93,7 @@ declare function nodeConfig(options?: Partial<NodeOptions>): {
92
93
  'typescript/prefer-as-const': "error";
93
94
  'typescript/triple-slash-reference': "error";
94
95
  'typescript/explicit-member-accessibility': ["warn", {
95
- accessibility: string;
96
+ accessibility: "no-public";
96
97
  }];
97
98
  'eslint/id-length': "off";
98
99
  'eslint/sort-keys': "off";
@@ -102,7 +103,7 @@ declare function nodeConfig(options?: Partial<NodeOptions>): {
102
103
  'eslint/max-params': "off";
103
104
  'eslint/no-ternary': "off";
104
105
  'eslint/curly': "warn";
105
- 'typescript/consistent-type-definitions': ["warn", string];
106
+ 'typescript/consistent-type-definitions': ["warn", "type"];
106
107
  'eslint/max-statements': "off";
107
108
  'typescript/consistent-return': "off";
108
109
  'unicorn/switch-case-braces': "warn";
@@ -134,12 +135,16 @@ declare function nodeConfig(options?: Partial<NodeOptions>): {
134
135
  'import/no-namespace': "off";
135
136
  'import/exports-last': "off";
136
137
  'import/no-unassigned-import': "off";
138
+ 'import/group-exports': "off";
139
+ 'import/consistent-type-specifier-style': "off";
137
140
  'unicorn/no-new-array': "off";
138
141
  'eslint/no-array-constructor': "warn";
139
142
  'typescript/explicit-function-return-type': "off";
140
143
  'typescript/explicit-module-boundary-types': "off";
141
144
  'unicorn/no-anonymous-default-export': "off";
142
145
  'eslint/sort-imports': "off";
146
+ 'import/no-relative-parent-imports': "off";
147
+ 'unicorn/max-nested-calls': "off";
143
148
  'eslint/no-magic-numbers': "off";
144
149
  'unicorn/prefer-modern-math-apis': "off";
145
150
  'eslint/no-use-before-define': "off";
@@ -159,7 +164,7 @@ declare function nodeConfig(options?: Partial<NodeOptions>): {
159
164
  'oxc/no-async-await': "off";
160
165
  };
161
166
  }[];
162
- plugins: ("unicorn" | "typescript" | "import")[];
167
+ plugins: ("import" | "typescript" | "unicorn")[];
163
168
  env: {
164
169
  node: true;
165
170
  };
@@ -167,12 +172,13 @@ declare function nodeConfig(options?: Partial<NodeOptions>): {
167
172
  'eslint/no-underscore-dangle': ["warn", {
168
173
  allow: string[];
169
174
  }];
175
+ 'no-nodejs-modules': "off";
170
176
  };
171
177
  };
172
178
  export { type OxlintConfig, defineConfig, nodeConfig };
173
179
  declare const _default: {
174
180
  extends: {
175
- plugins: ("unicorn" | "typescript" | "import")[];
181
+ plugins: ("import" | "typescript" | "unicorn")[];
176
182
  jsPlugins: never[];
177
183
  categories: {
178
184
  correctness: "error";
@@ -188,6 +194,7 @@ declare const _default: {
188
194
  };
189
195
  options: {
190
196
  typeAware: true;
197
+ typeCheck: true;
191
198
  };
192
199
  rules: {
193
200
  'eslint/no-var': "warn";
@@ -262,7 +269,7 @@ declare const _default: {
262
269
  'typescript/prefer-as-const': "error";
263
270
  'typescript/triple-slash-reference': "error";
264
271
  'typescript/explicit-member-accessibility': ["warn", {
265
- accessibility: string;
272
+ accessibility: "no-public";
266
273
  }];
267
274
  'eslint/id-length': "off";
268
275
  'eslint/sort-keys': "off";
@@ -272,7 +279,7 @@ declare const _default: {
272
279
  'eslint/max-params': "off";
273
280
  'eslint/no-ternary': "off";
274
281
  'eslint/curly': "warn";
275
- 'typescript/consistent-type-definitions': ["warn", string];
282
+ 'typescript/consistent-type-definitions': ["warn", "type"];
276
283
  'eslint/max-statements': "off";
277
284
  'typescript/consistent-return': "off";
278
285
  'unicorn/switch-case-braces': "warn";
@@ -304,12 +311,16 @@ declare const _default: {
304
311
  'import/no-namespace': "off";
305
312
  'import/exports-last': "off";
306
313
  'import/no-unassigned-import': "off";
314
+ 'import/group-exports': "off";
315
+ 'import/consistent-type-specifier-style': "off";
307
316
  'unicorn/no-new-array': "off";
308
317
  'eslint/no-array-constructor': "warn";
309
318
  'typescript/explicit-function-return-type': "off";
310
319
  'typescript/explicit-module-boundary-types': "off";
311
320
  'unicorn/no-anonymous-default-export': "off";
312
321
  'eslint/sort-imports': "off";
322
+ 'import/no-relative-parent-imports': "off";
323
+ 'unicorn/max-nested-calls': "off";
313
324
  'eslint/no-magic-numbers': "off";
314
325
  'unicorn/prefer-modern-math-apis': "off";
315
326
  'eslint/no-use-before-define': "off";
@@ -329,7 +340,7 @@ declare const _default: {
329
340
  'oxc/no-async-await': "off";
330
341
  };
331
342
  }[];
332
- plugins: ("unicorn" | "typescript" | "import")[];
343
+ plugins: ("import" | "typescript" | "unicorn")[];
333
344
  env: {
334
345
  node: true;
335
346
  };
@@ -337,6 +348,7 @@ declare const _default: {
337
348
  'eslint/no-underscore-dangle': ["warn", {
338
349
  allow: string[];
339
350
  }];
351
+ 'no-nodejs-modules': "off";
340
352
  };
341
353
  };
342
354
  export default _default;
@@ -1 +1 @@
1
- {"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../src/node.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,KAAK,YAAY,EAAE,MAAM,QAAQ,CAAC;AAGzD,KAAK,WAAW,GAAG,EAAE,CAAC;AAItB,iBAAS,UAAU,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC,WAAW,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoBjD;AAED,OAAO,EAAE,KAAK,YAAY,EAAE,YAAY,EAAE,UAAU,EAAE,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEvD,wBAA4B"}
1
+ {"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../src/node.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,KAAK,YAAY,EAAE,MAAM,QAAQ,CAAC;AAGzD,KAAK,WAAW,GAAG,EAAE,CAAC;AAItB,iBAAS,UAAU,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC,WAAW,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqBjD;AAED,OAAO,EAAE,KAAK,YAAY,EAAE,YAAY,EAAE,UAAU,EAAE,CAAC"}
package/dist/node.js CHANGED
@@ -16,6 +16,7 @@ function nodeConfig(options) {
16
16
  'warn',
17
17
  { allow: ['__dirname', '__filename'] },
18
18
  ],
19
+ 'no-nodejs-modules': 'off',
19
20
  },
20
21
  });
21
22
  }
package/dist/node.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"node.js","sourceRoot":"","sources":["../src/node.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAqB,MAAM,QAAQ,CAAC;AACzD,OAAO,E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"}
package/dist/react.d.ts CHANGED
@@ -2,7 +2,7 @@ import { defineConfig, type OxlintConfig } from 'oxlint';
2
2
  export type ReactOptions = {};
3
3
  declare function reactConfig(options?: Partial<ReactOptions>): {
4
4
  extends: {
5
- plugins: ("unicorn" | "typescript" | "import")[];
5
+ plugins: ("import" | "typescript" | "unicorn")[];
6
6
  jsPlugins: never[];
7
7
  categories: {
8
8
  correctness: "error";
@@ -18,6 +18,7 @@ declare function reactConfig(options?: Partial<ReactOptions>): {
18
18
  };
19
19
  options: {
20
20
  typeAware: true;
21
+ typeCheck: true;
21
22
  };
22
23
  rules: {
23
24
  'eslint/no-var': "warn";
@@ -92,7 +93,7 @@ declare function reactConfig(options?: Partial<ReactOptions>): {
92
93
  'typescript/prefer-as-const': "error";
93
94
  'typescript/triple-slash-reference': "error";
94
95
  'typescript/explicit-member-accessibility': ["warn", {
95
- accessibility: string;
96
+ accessibility: "no-public";
96
97
  }];
97
98
  'eslint/id-length': "off";
98
99
  'eslint/sort-keys': "off";
@@ -102,7 +103,7 @@ declare function reactConfig(options?: Partial<ReactOptions>): {
102
103
  'eslint/max-params': "off";
103
104
  'eslint/no-ternary': "off";
104
105
  'eslint/curly': "warn";
105
- 'typescript/consistent-type-definitions': ["warn", string];
106
+ 'typescript/consistent-type-definitions': ["warn", "type"];
106
107
  'eslint/max-statements': "off";
107
108
  'typescript/consistent-return': "off";
108
109
  'unicorn/switch-case-braces': "warn";
@@ -134,12 +135,16 @@ declare function reactConfig(options?: Partial<ReactOptions>): {
134
135
  'import/no-namespace': "off";
135
136
  'import/exports-last': "off";
136
137
  'import/no-unassigned-import': "off";
138
+ 'import/group-exports': "off";
139
+ 'import/consistent-type-specifier-style': "off";
137
140
  'unicorn/no-new-array': "off";
138
141
  'eslint/no-array-constructor': "warn";
139
142
  'typescript/explicit-function-return-type': "off";
140
143
  'typescript/explicit-module-boundary-types': "off";
141
144
  'unicorn/no-anonymous-default-export': "off";
142
145
  'eslint/sort-imports': "off";
146
+ 'import/no-relative-parent-imports': "off";
147
+ 'unicorn/max-nested-calls': "off";
143
148
  'eslint/no-magic-numbers': "off";
144
149
  'unicorn/prefer-modern-math-apis': "off";
145
150
  'eslint/no-use-before-define': "off";
@@ -159,21 +164,36 @@ declare function reactConfig(options?: Partial<ReactOptions>): {
159
164
  'oxc/no-async-await': "off";
160
165
  };
161
166
  }[];
162
- plugins: ("react" | "unicorn" | "typescript" | "import")[];
167
+ plugins: ("import" | "jsx-a11y" | "react" | "typescript" | "unicorn")[];
163
168
  jsPlugins: {
164
169
  name: string;
165
170
  specifier: string;
166
171
  }[];
172
+ env: {
173
+ browser: true;
174
+ node: true;
175
+ };
176
+ globals: {
177
+ AudioWorkletGlobalScope: "readonly";
178
+ AudioWorkletProcessor: "readonly";
179
+ currentFrame: "readonly";
180
+ currentTime: "readonly";
181
+ registerProcessor: "readonly";
182
+ sampleRate: "readonly";
183
+ WorkletGlobalScope: "readonly";
184
+ };
167
185
  rules: {
168
186
  'react/rules-of-hooks': "error";
169
187
  'react/exhaustive-deps': "warn";
170
188
  'react-hooks-js/set-state-in-effect': "warn";
171
189
  'react/only-export-components': "error";
172
190
  'react-compiler-js/react-compiler': "error";
191
+ 'import/no-anonymous-default-export': "warn";
173
192
  'react/jsx-filename-extension': "off";
174
193
  'react/jsx-max-depth': "off";
175
194
  'react/no-multi-comp': "off";
176
195
  'react/jsx-props-no-spreading': "off";
196
+ 'react/jsx-no-literals': "off";
177
197
  'react/forbid-component-props': "off";
178
198
  'react/forbid-dom-props': "off";
179
199
  };
@@ -198,9 +218,8 @@ declare function reactConfig(options?: Partial<ReactOptions>): {
198
218
  'react/no-unsafe': "off";
199
219
  'react/react-in-jsx-scope': "off";
200
220
  'react/require-render-return': "error";
201
- 'import/no-anonymous-default-export': "warn";
202
221
  'jsx-a11y/alt-text': ["warn", {
203
- elements: string[];
222
+ elements: "img"[];
204
223
  img: string[];
205
224
  }];
206
225
  'jsx-a11y/aria-props': "warn";
@@ -209,26 +228,12 @@ declare function reactConfig(options?: Partial<ReactOptions>): {
209
228
  'jsx-a11y/role-has-required-aria-props': "warn";
210
229
  'jsx-a11y/role-supports-aria-props': "warn";
211
230
  };
212
- globals: {
213
- AudioWorkletGlobalScope: "readonly";
214
- AudioWorkletProcessor: "readonly";
215
- currentFrame: "readonly";
216
- currentTime: "readonly";
217
- registerProcessor: "readonly";
218
- sampleRate: "readonly";
219
- WorkletGlobalScope: "readonly";
220
- };
221
- plugins: ("import" | "jsx-a11y")[];
222
- env: {
223
- browser: true;
224
- node: true;
225
- };
226
231
  }[];
227
232
  };
228
233
  export { type OxlintConfig, defineConfig, reactConfig };
229
234
  declare const _default: {
230
235
  extends: {
231
- plugins: ("unicorn" | "typescript" | "import")[];
236
+ plugins: ("import" | "typescript" | "unicorn")[];
232
237
  jsPlugins: never[];
233
238
  categories: {
234
239
  correctness: "error";
@@ -244,6 +249,7 @@ declare const _default: {
244
249
  };
245
250
  options: {
246
251
  typeAware: true;
252
+ typeCheck: true;
247
253
  };
248
254
  rules: {
249
255
  'eslint/no-var': "warn";
@@ -318,7 +324,7 @@ declare const _default: {
318
324
  'typescript/prefer-as-const': "error";
319
325
  'typescript/triple-slash-reference': "error";
320
326
  'typescript/explicit-member-accessibility': ["warn", {
321
- accessibility: string;
327
+ accessibility: "no-public";
322
328
  }];
323
329
  'eslint/id-length': "off";
324
330
  'eslint/sort-keys': "off";
@@ -328,7 +334,7 @@ declare const _default: {
328
334
  'eslint/max-params': "off";
329
335
  'eslint/no-ternary': "off";
330
336
  'eslint/curly': "warn";
331
- 'typescript/consistent-type-definitions': ["warn", string];
337
+ 'typescript/consistent-type-definitions': ["warn", "type"];
332
338
  'eslint/max-statements': "off";
333
339
  'typescript/consistent-return': "off";
334
340
  'unicorn/switch-case-braces': "warn";
@@ -360,12 +366,16 @@ declare const _default: {
360
366
  'import/no-namespace': "off";
361
367
  'import/exports-last': "off";
362
368
  'import/no-unassigned-import': "off";
369
+ 'import/group-exports': "off";
370
+ 'import/consistent-type-specifier-style': "off";
363
371
  'unicorn/no-new-array': "off";
364
372
  'eslint/no-array-constructor': "warn";
365
373
  'typescript/explicit-function-return-type': "off";
366
374
  'typescript/explicit-module-boundary-types': "off";
367
375
  'unicorn/no-anonymous-default-export': "off";
368
376
  'eslint/sort-imports': "off";
377
+ 'import/no-relative-parent-imports': "off";
378
+ 'unicorn/max-nested-calls': "off";
369
379
  'eslint/no-magic-numbers': "off";
370
380
  'unicorn/prefer-modern-math-apis': "off";
371
381
  'eslint/no-use-before-define': "off";
@@ -385,21 +395,36 @@ declare const _default: {
385
395
  'oxc/no-async-await': "off";
386
396
  };
387
397
  }[];
388
- plugins: ("react" | "unicorn" | "typescript" | "import")[];
398
+ plugins: ("import" | "jsx-a11y" | "react" | "typescript" | "unicorn")[];
389
399
  jsPlugins: {
390
400
  name: string;
391
401
  specifier: string;
392
402
  }[];
403
+ env: {
404
+ browser: true;
405
+ node: true;
406
+ };
407
+ globals: {
408
+ AudioWorkletGlobalScope: "readonly";
409
+ AudioWorkletProcessor: "readonly";
410
+ currentFrame: "readonly";
411
+ currentTime: "readonly";
412
+ registerProcessor: "readonly";
413
+ sampleRate: "readonly";
414
+ WorkletGlobalScope: "readonly";
415
+ };
393
416
  rules: {
394
417
  'react/rules-of-hooks': "error";
395
418
  'react/exhaustive-deps': "warn";
396
419
  'react-hooks-js/set-state-in-effect': "warn";
397
420
  'react/only-export-components': "error";
398
421
  'react-compiler-js/react-compiler': "error";
422
+ 'import/no-anonymous-default-export': "warn";
399
423
  'react/jsx-filename-extension': "off";
400
424
  'react/jsx-max-depth': "off";
401
425
  'react/no-multi-comp': "off";
402
426
  'react/jsx-props-no-spreading': "off";
427
+ 'react/jsx-no-literals': "off";
403
428
  'react/forbid-component-props': "off";
404
429
  'react/forbid-dom-props': "off";
405
430
  };
@@ -424,9 +449,8 @@ declare const _default: {
424
449
  'react/no-unsafe': "off";
425
450
  'react/react-in-jsx-scope': "off";
426
451
  'react/require-render-return': "error";
427
- 'import/no-anonymous-default-export': "warn";
428
452
  'jsx-a11y/alt-text': ["warn", {
429
- elements: string[];
453
+ elements: "img"[];
430
454
  img: string[];
431
455
  }];
432
456
  'jsx-a11y/aria-props': "warn";
@@ -435,20 +459,6 @@ declare const _default: {
435
459
  'jsx-a11y/role-has-required-aria-props': "warn";
436
460
  'jsx-a11y/role-supports-aria-props': "warn";
437
461
  };
438
- globals: {
439
- AudioWorkletGlobalScope: "readonly";
440
- AudioWorkletProcessor: "readonly";
441
- currentFrame: "readonly";
442
- currentTime: "readonly";
443
- registerProcessor: "readonly";
444
- sampleRate: "readonly";
445
- WorkletGlobalScope: "readonly";
446
- };
447
- plugins: ("import" | "jsx-a11y")[];
448
- env: {
449
- browser: true;
450
- node: true;
451
- };
452
462
  }[];
453
463
  };
454
464
  export default _default;
@@ -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,OAAO,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkFnD;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiFnD;AAED,OAAO,EAAE,KAAK,YAAY,EAAE,YAAY,EAAE,WAAW,EAAE,CAAC"}
package/dist/react.js CHANGED
@@ -6,7 +6,7 @@ function reactConfig(options) {
6
6
  const base = baseConfig(options);
7
7
  return defineConfig({
8
8
  extends: [base],
9
- plugins: [...base.plugins, 'react'],
9
+ plugins: [...base.plugins, 'react', 'jsx-a11y'],
10
10
  jsPlugins: [
11
11
  // react compiler is not yet supported by oxc
12
12
  // https://github.com/oxc-project/oxc/issues/10048
@@ -17,23 +17,38 @@ function reactConfig(options) {
17
17
  { name: 'react-hooks-js', specifier: 'eslint-plugin-react-hooks' },
18
18
  { name: 'react-compiler-js', specifier: 'eslint-plugin-react-compiler' },
19
19
  ],
20
+ env: {
21
+ browser: true,
22
+ node: true,
23
+ },
24
+ globals: {
25
+ AudioWorkletGlobalScope: 'readonly',
26
+ AudioWorkletProcessor: 'readonly',
27
+ currentFrame: 'readonly',
28
+ currentTime: 'readonly',
29
+ registerProcessor: 'readonly',
30
+ sampleRate: 'readonly',
31
+ WorkletGlobalScope: 'readonly',
32
+ },
20
33
  rules: {
21
34
  'react/rules-of-hooks': 'error',
22
35
  'react/exhaustive-deps': 'warn',
23
36
  'react-hooks-js/set-state-in-effect': 'warn',
24
37
  'react/only-export-components': 'error',
25
38
  'react-compiler-js/react-compiler': 'error',
39
+ 'import/no-anonymous-default-export': 'warn',
26
40
  'react/jsx-filename-extension': 'off',
27
41
  'react/jsx-max-depth': 'off',
28
42
  'react/no-multi-comp': 'off',
29
43
  'react/jsx-props-no-spreading': 'off',
44
+ 'react/jsx-no-literals': 'off',
30
45
  // conflicts with tailwind
31
46
  'react/forbid-component-props': 'off',
32
47
  'react/forbid-dom-props': 'off',
33
48
  },
34
49
  overrides: [
35
50
  {
36
- files: ['**/*.{js,jsx,mjs,ts,tsx,mts,cts}'],
51
+ files: ['**/*.{jsx,tsx}'],
37
52
  rules: {
38
53
  'react/display-name': 'error',
39
54
  'react/jsx-key': 'error',
@@ -43,7 +58,6 @@ function reactConfig(options) {
43
58
  'react/jsx-no-undef': 'error',
44
59
  'react/no-children-prop': 'error',
45
60
  'react/no-danger-with-children': 'error',
46
- // "react/no-deprecated": "error", // not implemented yet in oxlint
47
61
  'react/no-direct-mutation-state': 'error',
48
62
  'react/no-find-dom-node': 'error',
49
63
  'react/no-is-mounted': 'error',
@@ -54,7 +68,6 @@ function reactConfig(options) {
54
68
  'react/no-unsafe': 'off',
55
69
  'react/react-in-jsx-scope': 'off',
56
70
  'react/require-render-return': 'error',
57
- 'import/no-anonymous-default-export': 'warn',
58
71
  'jsx-a11y/alt-text': ['warn', { elements: ['img'], img: ['Image'] }],
59
72
  'jsx-a11y/aria-props': 'warn',
60
73
  'jsx-a11y/aria-proptypes': 'warn',
@@ -62,20 +75,6 @@ function reactConfig(options) {
62
75
  'jsx-a11y/role-has-required-aria-props': 'warn',
63
76
  'jsx-a11y/role-supports-aria-props': 'warn',
64
77
  },
65
- globals: {
66
- AudioWorkletGlobalScope: 'readonly',
67
- AudioWorkletProcessor: 'readonly',
68
- currentFrame: 'readonly',
69
- currentTime: 'readonly',
70
- registerProcessor: 'readonly',
71
- sampleRate: 'readonly',
72
- WorkletGlobalScope: 'readonly',
73
- },
74
- plugins: ['import', 'jsx-a11y'],
75
- env: {
76
- browser: true,
77
- node: true,
78
- },
79
78
  },
80
79
  ],
81
80
  });
package/dist/react.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"react.js","sourceRoot":"","sources":["../src/react.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAqB,MAAM,QAAQ,CAAC;AACzD,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAIvC,4CAA4C;AAE5C,SAAS,WAAW,CAAC,OAA+B;IAClD,mDAAmD;IAEnD,MAAM,IAAI,GAAG,UAAU,CAAC,OAAO,CAAC,CAAC;IAEjC,OAAO,YAAY,CAAC;QAClB,OAAO,EAAE,CAAC,IAAI,CAAC;QACf,OAAO,EAAE,CAAC,GAAG,IAAI,CAAC,OAAO,EAAE,OAAO,CAAC;QACnC,SAAS,EAAE;YACT,6CAA6C;YAC7C,kDAAkD;YAClD,0DAA0D;YAC1D,iDAAiD;YACjD,gEAAgE;YAChE,+CAA+C;YAC/C,EAAE,IAAI,EAAE,gBAAgB,EAAE,SAAS,EAAE,2BAA2B,EAAE;YAClE,EAAE,IAAI,EAAE,mBAAmB,EAAE,SAAS,EAAE,8BAA8B,EAAE;SACzE;QACD,KAAK,EAAE;YACL,sBAAsB,EAAE,OAAO;YAC/B,uBAAuB,EAAE,MAAM;YAC/B,oCAAoC,EAAE,MAAM;YAC5C,8BAA8B,EAAE,OAAO;YACvC,kCAAkC,EAAE,OAAO;YAE3C,8BAA8B,EAAE,KAAK;YACrC,qBAAqB,EAAE,KAAK;YAC5B,qBAAqB,EAAE,KAAK;YAC5B,8BAA8B,EAAE,KAAK;YA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Ae,WAAW,EAAE,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@4mbl/lint",
3
- "version": "0.0.0-alpha.e34f9fe",
3
+ "version": "0.0.0-alpha.e676d07",
4
4
  "description": "Linting configuration for various environments.",
5
5
  "type": "module",
6
6
  "author": "4mbl",
@@ -33,12 +33,12 @@
33
33
  "dependencies": {
34
34
  "eslint-plugin-react-compiler": "19.1.0-rc.2",
35
35
  "eslint-plugin-react-hooks": "7.1.1",
36
- "oxlint": "1.62.x",
37
- "oxlint-tsgolint": "0.22.x"
36
+ "oxlint": "1.79.x",
37
+ "oxlint-tsgolint": "7.0.x"
38
38
  },
39
39
  "devDependencies": {
40
- "@types/node": "^24.12.2",
41
- "@4mbl/tsconfig": "0.0.0-alpha.e34f9fe"
40
+ "@types/node": "^24.13.3",
41
+ "@4mbl/tsconfig": "0.0.0-alpha.e676d07"
42
42
  },
43
43
  "scripts": {
44
44
  "build": "tsc"