@4mbl/lint 0.0.0-alpha.8a357b9 → 0.0.0-alpha.906ec4c
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/CHANGELOG.md +66 -0
- package/dist/base.d.ts +6 -2
- package/dist/base.d.ts.map +1 -1
- package/dist/base.js +2 -0
- package/dist/base.js.map +1 -1
- package/dist/next.d.ts +44 -40
- package/dist/next.d.ts.map +1 -1
- package/dist/node.d.ts +8 -4
- package/dist/node.d.ts.map +1 -1
- package/dist/react.d.ts +40 -36
- package/dist/react.d.ts.map +1 -1
- package/dist/react.js +17 -18
- package/dist/react.js.map +1 -1
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,71 @@
|
|
|
1
1
|
# @4mbl/lint
|
|
2
2
|
|
|
3
|
+
## 1.0.0-beta.27
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 10abc93: Upgrade dependencies
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- dcfb4b0: [react] Preserve inherited plugins.
|
|
12
|
+
- f48a223: [react] Scope JSX rules in React preset
|
|
13
|
+
|
|
14
|
+
## 1.0.0-beta.26
|
|
15
|
+
|
|
16
|
+
### Minor Changes
|
|
17
|
+
|
|
18
|
+
- 10abc93: Upgrade dependencies
|
|
19
|
+
|
|
20
|
+
## 1.0.0-beta.25
|
|
21
|
+
|
|
22
|
+
### Minor Changes
|
|
23
|
+
|
|
24
|
+
- b812b8d: Upgrade dependencies
|
|
25
|
+
|
|
26
|
+
## 1.0.0-beta.24
|
|
27
|
+
|
|
28
|
+
### Minor Changes
|
|
29
|
+
|
|
30
|
+
- c713974: [base] Enable type-check within oxlint
|
|
31
|
+
- 87a9f36: Upgrade dependencies
|
|
32
|
+
|
|
33
|
+
## 1.0.0-beta.23
|
|
34
|
+
|
|
35
|
+
### Minor Changes
|
|
36
|
+
|
|
37
|
+
- 09239e5: Upgrade dependencies
|
|
38
|
+
|
|
39
|
+
## 1.0.0-beta.22
|
|
40
|
+
|
|
41
|
+
### Minor Changes
|
|
42
|
+
|
|
43
|
+
- 75f5fe2: Upgrade dependencies
|
|
44
|
+
|
|
45
|
+
## 1.0.0-beta.21
|
|
46
|
+
|
|
47
|
+
### Minor Changes
|
|
48
|
+
|
|
49
|
+
- ae2bb06: [base] Disable unicorn/max-nested-calls rule
|
|
50
|
+
|
|
51
|
+
## 1.0.0-beta.20
|
|
52
|
+
|
|
53
|
+
### Minor Changes
|
|
54
|
+
|
|
55
|
+
- 0a0c233: Upgrade dependencies
|
|
56
|
+
|
|
57
|
+
## 1.0.0-beta.19
|
|
58
|
+
|
|
59
|
+
### Minor Changes
|
|
60
|
+
|
|
61
|
+
- 4d35fb5: [react] Disable react/jsx-no-literals rule
|
|
62
|
+
|
|
63
|
+
## 1.0.0-beta.18
|
|
64
|
+
|
|
65
|
+
### Minor Changes
|
|
66
|
+
|
|
67
|
+
- a50c3f4: Upgrade dependencies
|
|
68
|
+
|
|
3
69
|
## 1.0.0-beta.17
|
|
4
70
|
|
|
5
71
|
### Minor Changes
|
package/dist/base.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineConfig, type OxlintConfig } from 'oxlint';
|
|
2
2
|
type BaseOptions = {};
|
|
3
3
|
declare function baseConfig(_options?: Partial<BaseOptions>): {
|
|
4
|
-
plugins: ("
|
|
4
|
+
plugins: ("import" | "typescript" | "unicorn")[];
|
|
5
5
|
jsPlugins: never[];
|
|
6
6
|
categories: {
|
|
7
7
|
correctness: "error";
|
|
@@ -17,6 +17,7 @@ declare function baseConfig(_options?: Partial<BaseOptions>): {
|
|
|
17
17
|
};
|
|
18
18
|
options: {
|
|
19
19
|
typeAware: true;
|
|
20
|
+
typeCheck: true;
|
|
20
21
|
};
|
|
21
22
|
rules: {
|
|
22
23
|
'eslint/no-var': "warn";
|
|
@@ -142,6 +143,7 @@ declare function baseConfig(_options?: Partial<BaseOptions>): {
|
|
|
142
143
|
'unicorn/no-anonymous-default-export': "off";
|
|
143
144
|
'eslint/sort-imports': "off";
|
|
144
145
|
'import/no-relative-parent-imports': "off";
|
|
146
|
+
'unicorn/max-nested-calls': "off";
|
|
145
147
|
'eslint/no-magic-numbers': "off";
|
|
146
148
|
'unicorn/prefer-modern-math-apis': "off";
|
|
147
149
|
'eslint/no-use-before-define': "off";
|
|
@@ -163,7 +165,7 @@ declare function baseConfig(_options?: Partial<BaseOptions>): {
|
|
|
163
165
|
};
|
|
164
166
|
export { type OxlintConfig, defineConfig, baseConfig };
|
|
165
167
|
declare const _default: {
|
|
166
|
-
plugins: ("
|
|
168
|
+
plugins: ("import" | "typescript" | "unicorn")[];
|
|
167
169
|
jsPlugins: never[];
|
|
168
170
|
categories: {
|
|
169
171
|
correctness: "error";
|
|
@@ -179,6 +181,7 @@ declare const _default: {
|
|
|
179
181
|
};
|
|
180
182
|
options: {
|
|
181
183
|
typeAware: true;
|
|
184
|
+
typeCheck: true;
|
|
182
185
|
};
|
|
183
186
|
rules: {
|
|
184
187
|
'eslint/no-var': "warn";
|
|
@@ -304,6 +307,7 @@ declare const _default: {
|
|
|
304
307
|
'unicorn/no-anonymous-default-export': "off";
|
|
305
308
|
'eslint/sort-imports': "off";
|
|
306
309
|
'import/no-relative-parent-imports': "off";
|
|
310
|
+
'unicorn/max-nested-calls': "off";
|
|
307
311
|
'eslint/no-magic-numbers': "off";
|
|
308
312
|
'unicorn/prefer-modern-math-apis': "off";
|
|
309
313
|
'eslint/no-use-before-define': "off";
|
package/dist/base.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../src/base.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,KAAK,YAAY,EAAE,MAAM,QAAQ,CAAC;AAEzD,KAAK,WAAW,GAAG,EAAE,CAAC;AAItB,iBAAS,UAAU,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC,WAAW,CAAC
|
|
1
|
+
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../src/base.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,KAAK,YAAY,EAAE,MAAM,QAAQ,CAAC;AAEzD,KAAK,WAAW,GAAG,EAAE,CAAC;AAItB,iBAAS,UAAU,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC,WAAW,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2LlD;AAED,OAAO,EAAE,KAAK,YAAY,EAAE,YAAY,EAAE,UAAU,EAAE,CAAC"}
|
package/dist/base.js
CHANGED
|
@@ -19,6 +19,7 @@ function baseConfig(_options) {
|
|
|
19
19
|
},
|
|
20
20
|
options: {
|
|
21
21
|
typeAware: true,
|
|
22
|
+
typeCheck: true,
|
|
22
23
|
},
|
|
23
24
|
rules: {
|
|
24
25
|
//* ERRORS - base rules that are always mistakes
|
|
@@ -150,6 +151,7 @@ function baseConfig(_options) {
|
|
|
150
151
|
'unicorn/no-anonymous-default-export': 'off',
|
|
151
152
|
'eslint/sort-imports': 'off', // consider when oxfmt is setup
|
|
152
153
|
'import/no-relative-parent-imports': 'off',
|
|
154
|
+
'unicorn/max-nested-calls': 'off',
|
|
153
155
|
// currently produces too many false positives
|
|
154
156
|
'eslint/no-magic-numbers': 'off',
|
|
155
157
|
'unicorn/prefer-modern-math-apis': 'off',
|
package/dist/base.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base.js","sourceRoot":"","sources":["../src/base.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAqB,MAAM,QAAQ,CAAC;AAIzD,2CAA2C;AAE3C,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C9C,yBAAyB,EAAE,KAAK;YAChC,iCAAiC,EAAE,KAAK;YACxC,6BAA6B,EAAE,KAAK;YAEpC,iCAAiC;YACjC,0BAA0B,EAAE,KAAK;YACjC,sBAAsB,EAAE,KAAK;YAC7B,8BAA8B,EAAE,KAAK;YACrC,qBAAqB,EAAE,KAAK;YAC5B,qCAAqC,EAAE,KAAK;YAC5C,yBAAyB,EAAE,KAAK;YAChC,6BAA6B,EAAE,KAAK;YACpC,iBAAiB,EAAE,KAAK;YACxB,uBAAuB,EAAE,KAAK,EAAE,yEAAyE;YACzG,gBAAgB,EAAE,KAAK;YAEvB,0BAA0B;YAC1B,2BAA2B,EAAE,KAAK;YAElC,oDAAoD;YACpD,0BAA0B,EAAE,KAAK;YACjC,+BAA+B,EAAE,KAAK;YACtC,oBAAoB,EAAE,KAAK;SAC5B;KACF,CAAC,CAAC;AACL,CAAC;AAED,OAAO,EAAqB,YAAY,EAAE,UAAU,EAAE,CAAC;AAEvD,eAAe,UAAU,EAAE,CAAC"}
|
package/dist/next.d.ts
CHANGED
|
@@ -14,7 +14,7 @@ type NextOptions = ReactOptions & {
|
|
|
14
14
|
declare function nextConfig(options?: Partial<NextOptions>): {
|
|
15
15
|
extends: {
|
|
16
16
|
extends: {
|
|
17
|
-
plugins: ("
|
|
17
|
+
plugins: ("import" | "typescript" | "unicorn")[];
|
|
18
18
|
jsPlugins: never[];
|
|
19
19
|
categories: {
|
|
20
20
|
correctness: "error";
|
|
@@ -30,6 +30,7 @@ declare function nextConfig(options?: Partial<NextOptions>): {
|
|
|
30
30
|
};
|
|
31
31
|
options: {
|
|
32
32
|
typeAware: true;
|
|
33
|
+
typeCheck: true;
|
|
33
34
|
};
|
|
34
35
|
rules: {
|
|
35
36
|
'eslint/no-var': "warn";
|
|
@@ -155,6 +156,7 @@ declare function nextConfig(options?: Partial<NextOptions>): {
|
|
|
155
156
|
'unicorn/no-anonymous-default-export': "off";
|
|
156
157
|
'eslint/sort-imports': "off";
|
|
157
158
|
'import/no-relative-parent-imports': "off";
|
|
159
|
+
'unicorn/max-nested-calls': "off";
|
|
158
160
|
'eslint/no-magic-numbers': "off";
|
|
159
161
|
'unicorn/prefer-modern-math-apis': "off";
|
|
160
162
|
'eslint/no-use-before-define': "off";
|
|
@@ -174,21 +176,36 @@ declare function nextConfig(options?: Partial<NextOptions>): {
|
|
|
174
176
|
'oxc/no-async-await': "off";
|
|
175
177
|
};
|
|
176
178
|
}[];
|
|
177
|
-
plugins: ("
|
|
179
|
+
plugins: ("import" | "jsx-a11y" | "react" | "typescript" | "unicorn")[];
|
|
178
180
|
jsPlugins: {
|
|
179
181
|
name: string;
|
|
180
182
|
specifier: string;
|
|
181
183
|
}[];
|
|
184
|
+
env: {
|
|
185
|
+
browser: true;
|
|
186
|
+
node: true;
|
|
187
|
+
};
|
|
188
|
+
globals: {
|
|
189
|
+
AudioWorkletGlobalScope: "readonly";
|
|
190
|
+
AudioWorkletProcessor: "readonly";
|
|
191
|
+
currentFrame: "readonly";
|
|
192
|
+
currentTime: "readonly";
|
|
193
|
+
registerProcessor: "readonly";
|
|
194
|
+
sampleRate: "readonly";
|
|
195
|
+
WorkletGlobalScope: "readonly";
|
|
196
|
+
};
|
|
182
197
|
rules: {
|
|
183
198
|
'react/rules-of-hooks': "error";
|
|
184
199
|
'react/exhaustive-deps': "warn";
|
|
185
200
|
'react-hooks-js/set-state-in-effect': "warn";
|
|
186
201
|
'react/only-export-components': "error";
|
|
187
202
|
'react-compiler-js/react-compiler': "error";
|
|
203
|
+
'import/no-anonymous-default-export': "warn";
|
|
188
204
|
'react/jsx-filename-extension': "off";
|
|
189
205
|
'react/jsx-max-depth': "off";
|
|
190
206
|
'react/no-multi-comp': "off";
|
|
191
207
|
'react/jsx-props-no-spreading': "off";
|
|
208
|
+
'react/jsx-no-literals': "off";
|
|
192
209
|
'react/forbid-component-props': "off";
|
|
193
210
|
'react/forbid-dom-props': "off";
|
|
194
211
|
};
|
|
@@ -213,9 +230,8 @@ declare function nextConfig(options?: Partial<NextOptions>): {
|
|
|
213
230
|
'react/no-unsafe': "off";
|
|
214
231
|
'react/react-in-jsx-scope': "off";
|
|
215
232
|
'react/require-render-return': "error";
|
|
216
|
-
'import/no-anonymous-default-export': "warn";
|
|
217
233
|
'jsx-a11y/alt-text': ["warn", {
|
|
218
|
-
elements:
|
|
234
|
+
elements: "img"[];
|
|
219
235
|
img: string[];
|
|
220
236
|
}];
|
|
221
237
|
'jsx-a11y/aria-props': "warn";
|
|
@@ -224,23 +240,9 @@ declare function nextConfig(options?: Partial<NextOptions>): {
|
|
|
224
240
|
'jsx-a11y/role-has-required-aria-props': "warn";
|
|
225
241
|
'jsx-a11y/role-supports-aria-props': "warn";
|
|
226
242
|
};
|
|
227
|
-
globals: {
|
|
228
|
-
AudioWorkletGlobalScope: "readonly";
|
|
229
|
-
AudioWorkletProcessor: "readonly";
|
|
230
|
-
currentFrame: "readonly";
|
|
231
|
-
currentTime: "readonly";
|
|
232
|
-
registerProcessor: "readonly";
|
|
233
|
-
sampleRate: "readonly";
|
|
234
|
-
WorkletGlobalScope: "readonly";
|
|
235
|
-
};
|
|
236
|
-
plugins: ("import" | "jsx-a11y")[];
|
|
237
|
-
env: {
|
|
238
|
-
browser: true;
|
|
239
|
-
node: true;
|
|
240
|
-
};
|
|
241
243
|
}[];
|
|
242
244
|
}[];
|
|
243
|
-
plugins: ("
|
|
245
|
+
plugins: ("import" | "jsx-a11y" | "nextjs" | "react" | "typescript" | "unicorn")[];
|
|
244
246
|
rules: {
|
|
245
247
|
'nextjs/google-font-display': "warn";
|
|
246
248
|
'nextjs/google-font-preconnect': "warn";
|
|
@@ -270,7 +272,7 @@ declare function nextConfig(options?: Partial<NextOptions>): {
|
|
|
270
272
|
overrides: ({
|
|
271
273
|
files: never[];
|
|
272
274
|
rules: {
|
|
273
|
-
'react/only-export-components'?:
|
|
275
|
+
'react/only-export-components'?: never;
|
|
274
276
|
};
|
|
275
277
|
} | {
|
|
276
278
|
files: string[];
|
|
@@ -283,7 +285,7 @@ export { type OxlintConfig, defineConfig, nextConfig };
|
|
|
283
285
|
declare const _default: {
|
|
284
286
|
extends: {
|
|
285
287
|
extends: {
|
|
286
|
-
plugins: ("
|
|
288
|
+
plugins: ("import" | "typescript" | "unicorn")[];
|
|
287
289
|
jsPlugins: never[];
|
|
288
290
|
categories: {
|
|
289
291
|
correctness: "error";
|
|
@@ -299,6 +301,7 @@ declare const _default: {
|
|
|
299
301
|
};
|
|
300
302
|
options: {
|
|
301
303
|
typeAware: true;
|
|
304
|
+
typeCheck: true;
|
|
302
305
|
};
|
|
303
306
|
rules: {
|
|
304
307
|
'eslint/no-var': "warn";
|
|
@@ -424,6 +427,7 @@ declare const _default: {
|
|
|
424
427
|
'unicorn/no-anonymous-default-export': "off";
|
|
425
428
|
'eslint/sort-imports': "off";
|
|
426
429
|
'import/no-relative-parent-imports': "off";
|
|
430
|
+
'unicorn/max-nested-calls': "off";
|
|
427
431
|
'eslint/no-magic-numbers': "off";
|
|
428
432
|
'unicorn/prefer-modern-math-apis': "off";
|
|
429
433
|
'eslint/no-use-before-define': "off";
|
|
@@ -443,21 +447,36 @@ declare const _default: {
|
|
|
443
447
|
'oxc/no-async-await': "off";
|
|
444
448
|
};
|
|
445
449
|
}[];
|
|
446
|
-
plugins: ("
|
|
450
|
+
plugins: ("import" | "jsx-a11y" | "react" | "typescript" | "unicorn")[];
|
|
447
451
|
jsPlugins: {
|
|
448
452
|
name: string;
|
|
449
453
|
specifier: string;
|
|
450
454
|
}[];
|
|
455
|
+
env: {
|
|
456
|
+
browser: true;
|
|
457
|
+
node: true;
|
|
458
|
+
};
|
|
459
|
+
globals: {
|
|
460
|
+
AudioWorkletGlobalScope: "readonly";
|
|
461
|
+
AudioWorkletProcessor: "readonly";
|
|
462
|
+
currentFrame: "readonly";
|
|
463
|
+
currentTime: "readonly";
|
|
464
|
+
registerProcessor: "readonly";
|
|
465
|
+
sampleRate: "readonly";
|
|
466
|
+
WorkletGlobalScope: "readonly";
|
|
467
|
+
};
|
|
451
468
|
rules: {
|
|
452
469
|
'react/rules-of-hooks': "error";
|
|
453
470
|
'react/exhaustive-deps': "warn";
|
|
454
471
|
'react-hooks-js/set-state-in-effect': "warn";
|
|
455
472
|
'react/only-export-components': "error";
|
|
456
473
|
'react-compiler-js/react-compiler': "error";
|
|
474
|
+
'import/no-anonymous-default-export': "warn";
|
|
457
475
|
'react/jsx-filename-extension': "off";
|
|
458
476
|
'react/jsx-max-depth': "off";
|
|
459
477
|
'react/no-multi-comp': "off";
|
|
460
478
|
'react/jsx-props-no-spreading': "off";
|
|
479
|
+
'react/jsx-no-literals': "off";
|
|
461
480
|
'react/forbid-component-props': "off";
|
|
462
481
|
'react/forbid-dom-props': "off";
|
|
463
482
|
};
|
|
@@ -482,9 +501,8 @@ declare const _default: {
|
|
|
482
501
|
'react/no-unsafe': "off";
|
|
483
502
|
'react/react-in-jsx-scope': "off";
|
|
484
503
|
'react/require-render-return': "error";
|
|
485
|
-
'import/no-anonymous-default-export': "warn";
|
|
486
504
|
'jsx-a11y/alt-text': ["warn", {
|
|
487
|
-
elements:
|
|
505
|
+
elements: "img"[];
|
|
488
506
|
img: string[];
|
|
489
507
|
}];
|
|
490
508
|
'jsx-a11y/aria-props': "warn";
|
|
@@ -493,23 +511,9 @@ declare const _default: {
|
|
|
493
511
|
'jsx-a11y/role-has-required-aria-props': "warn";
|
|
494
512
|
'jsx-a11y/role-supports-aria-props': "warn";
|
|
495
513
|
};
|
|
496
|
-
globals: {
|
|
497
|
-
AudioWorkletGlobalScope: "readonly";
|
|
498
|
-
AudioWorkletProcessor: "readonly";
|
|
499
|
-
currentFrame: "readonly";
|
|
500
|
-
currentTime: "readonly";
|
|
501
|
-
registerProcessor: "readonly";
|
|
502
|
-
sampleRate: "readonly";
|
|
503
|
-
WorkletGlobalScope: "readonly";
|
|
504
|
-
};
|
|
505
|
-
plugins: ("import" | "jsx-a11y")[];
|
|
506
|
-
env: {
|
|
507
|
-
browser: true;
|
|
508
|
-
node: true;
|
|
509
|
-
};
|
|
510
514
|
}[];
|
|
511
515
|
}[];
|
|
512
|
-
plugins: ("
|
|
516
|
+
plugins: ("import" | "jsx-a11y" | "nextjs" | "react" | "typescript" | "unicorn")[];
|
|
513
517
|
rules: {
|
|
514
518
|
'nextjs/google-font-display': "warn";
|
|
515
519
|
'nextjs/google-font-preconnect': "warn";
|
|
@@ -539,7 +543,7 @@ declare const _default: {
|
|
|
539
543
|
overrides: ({
|
|
540
544
|
files: never[];
|
|
541
545
|
rules: {
|
|
542
|
-
'react/only-export-components'?:
|
|
546
|
+
'react/only-export-components'?: never;
|
|
543
547
|
};
|
|
544
548
|
} | {
|
|
545
549
|
files: string[];
|
package/dist/next.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"next.d.ts","sourceRoot":"","sources":["../src/next.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,KAAK,YAAY,EAAE,MAAM,QAAQ,CAAC;AACzD,OAAO,EAAE,KAAK,YAAY,EAAe,MAAM,YAAY,CAAC;AAE5D,KAAK,WAAW,GAAG,YAAY,GAAG;IAChC;;;;;;;OAOG;IACH,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB,CAAC;AAIF,iBAAS,UAAU,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC,WAAW,CAAC
|
|
1
|
+
{"version":3,"file":"next.d.ts","sourceRoot":"","sources":["../src/next.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,KAAK,YAAY,EAAE,MAAM,QAAQ,CAAC;AACzD,OAAO,EAAE,KAAK,YAAY,EAAe,MAAM,YAAY,CAAC;AAE5D,KAAK,WAAW,GAAG,YAAY,GAAG;IAChC;;;;;;;OAOG;IACH,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB,CAAC;AAIF,iBAAS,UAAU,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC,WAAW,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0EjD;AAED,OAAO,EAAE,KAAK,YAAY,EAAE,YAAY,EAAE,UAAU,EAAE,CAAC"}
|
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: ("
|
|
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";
|
|
@@ -143,6 +144,7 @@ declare function nodeConfig(options?: Partial<NodeOptions>): {
|
|
|
143
144
|
'unicorn/no-anonymous-default-export': "off";
|
|
144
145
|
'eslint/sort-imports': "off";
|
|
145
146
|
'import/no-relative-parent-imports': "off";
|
|
147
|
+
'unicorn/max-nested-calls': "off";
|
|
146
148
|
'eslint/no-magic-numbers': "off";
|
|
147
149
|
'unicorn/prefer-modern-math-apis': "off";
|
|
148
150
|
'eslint/no-use-before-define': "off";
|
|
@@ -162,7 +164,7 @@ declare function nodeConfig(options?: Partial<NodeOptions>): {
|
|
|
162
164
|
'oxc/no-async-await': "off";
|
|
163
165
|
};
|
|
164
166
|
}[];
|
|
165
|
-
plugins: ("
|
|
167
|
+
plugins: ("import" | "typescript" | "unicorn")[];
|
|
166
168
|
env: {
|
|
167
169
|
node: true;
|
|
168
170
|
};
|
|
@@ -176,7 +178,7 @@ declare function nodeConfig(options?: Partial<NodeOptions>): {
|
|
|
176
178
|
export { type OxlintConfig, defineConfig, nodeConfig };
|
|
177
179
|
declare const _default: {
|
|
178
180
|
extends: {
|
|
179
|
-
plugins: ("
|
|
181
|
+
plugins: ("import" | "typescript" | "unicorn")[];
|
|
180
182
|
jsPlugins: never[];
|
|
181
183
|
categories: {
|
|
182
184
|
correctness: "error";
|
|
@@ -192,6 +194,7 @@ declare const _default: {
|
|
|
192
194
|
};
|
|
193
195
|
options: {
|
|
194
196
|
typeAware: true;
|
|
197
|
+
typeCheck: true;
|
|
195
198
|
};
|
|
196
199
|
rules: {
|
|
197
200
|
'eslint/no-var': "warn";
|
|
@@ -317,6 +320,7 @@ declare const _default: {
|
|
|
317
320
|
'unicorn/no-anonymous-default-export': "off";
|
|
318
321
|
'eslint/sort-imports': "off";
|
|
319
322
|
'import/no-relative-parent-imports': "off";
|
|
323
|
+
'unicorn/max-nested-calls': "off";
|
|
320
324
|
'eslint/no-magic-numbers': "off";
|
|
321
325
|
'unicorn/prefer-modern-math-apis': "off";
|
|
322
326
|
'eslint/no-use-before-define': "off";
|
|
@@ -336,7 +340,7 @@ declare const _default: {
|
|
|
336
340
|
'oxc/no-async-await': "off";
|
|
337
341
|
};
|
|
338
342
|
}[];
|
|
339
|
-
plugins: ("
|
|
343
|
+
plugins: ("import" | "typescript" | "unicorn")[];
|
|
340
344
|
env: {
|
|
341
345
|
node: true;
|
|
342
346
|
};
|
package/dist/node.d.ts.map
CHANGED
|
@@ -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
|
|
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/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: ("
|
|
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";
|
|
@@ -143,6 +144,7 @@ declare function reactConfig(options?: Partial<ReactOptions>): {
|
|
|
143
144
|
'unicorn/no-anonymous-default-export': "off";
|
|
144
145
|
'eslint/sort-imports': "off";
|
|
145
146
|
'import/no-relative-parent-imports': "off";
|
|
147
|
+
'unicorn/max-nested-calls': "off";
|
|
146
148
|
'eslint/no-magic-numbers': "off";
|
|
147
149
|
'unicorn/prefer-modern-math-apis': "off";
|
|
148
150
|
'eslint/no-use-before-define': "off";
|
|
@@ -162,21 +164,36 @@ declare function reactConfig(options?: Partial<ReactOptions>): {
|
|
|
162
164
|
'oxc/no-async-await': "off";
|
|
163
165
|
};
|
|
164
166
|
}[];
|
|
165
|
-
plugins: ("
|
|
167
|
+
plugins: ("import" | "jsx-a11y" | "react" | "typescript" | "unicorn")[];
|
|
166
168
|
jsPlugins: {
|
|
167
169
|
name: string;
|
|
168
170
|
specifier: string;
|
|
169
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
|
+
};
|
|
170
185
|
rules: {
|
|
171
186
|
'react/rules-of-hooks': "error";
|
|
172
187
|
'react/exhaustive-deps': "warn";
|
|
173
188
|
'react-hooks-js/set-state-in-effect': "warn";
|
|
174
189
|
'react/only-export-components': "error";
|
|
175
190
|
'react-compiler-js/react-compiler': "error";
|
|
191
|
+
'import/no-anonymous-default-export': "warn";
|
|
176
192
|
'react/jsx-filename-extension': "off";
|
|
177
193
|
'react/jsx-max-depth': "off";
|
|
178
194
|
'react/no-multi-comp': "off";
|
|
179
195
|
'react/jsx-props-no-spreading': "off";
|
|
196
|
+
'react/jsx-no-literals': "off";
|
|
180
197
|
'react/forbid-component-props': "off";
|
|
181
198
|
'react/forbid-dom-props': "off";
|
|
182
199
|
};
|
|
@@ -201,9 +218,8 @@ declare function reactConfig(options?: Partial<ReactOptions>): {
|
|
|
201
218
|
'react/no-unsafe': "off";
|
|
202
219
|
'react/react-in-jsx-scope': "off";
|
|
203
220
|
'react/require-render-return': "error";
|
|
204
|
-
'import/no-anonymous-default-export': "warn";
|
|
205
221
|
'jsx-a11y/alt-text': ["warn", {
|
|
206
|
-
elements:
|
|
222
|
+
elements: "img"[];
|
|
207
223
|
img: string[];
|
|
208
224
|
}];
|
|
209
225
|
'jsx-a11y/aria-props': "warn";
|
|
@@ -212,26 +228,12 @@ declare function reactConfig(options?: Partial<ReactOptions>): {
|
|
|
212
228
|
'jsx-a11y/role-has-required-aria-props': "warn";
|
|
213
229
|
'jsx-a11y/role-supports-aria-props': "warn";
|
|
214
230
|
};
|
|
215
|
-
globals: {
|
|
216
|
-
AudioWorkletGlobalScope: "readonly";
|
|
217
|
-
AudioWorkletProcessor: "readonly";
|
|
218
|
-
currentFrame: "readonly";
|
|
219
|
-
currentTime: "readonly";
|
|
220
|
-
registerProcessor: "readonly";
|
|
221
|
-
sampleRate: "readonly";
|
|
222
|
-
WorkletGlobalScope: "readonly";
|
|
223
|
-
};
|
|
224
|
-
plugins: ("import" | "jsx-a11y")[];
|
|
225
|
-
env: {
|
|
226
|
-
browser: true;
|
|
227
|
-
node: true;
|
|
228
|
-
};
|
|
229
231
|
}[];
|
|
230
232
|
};
|
|
231
233
|
export { type OxlintConfig, defineConfig, reactConfig };
|
|
232
234
|
declare const _default: {
|
|
233
235
|
extends: {
|
|
234
|
-
plugins: ("
|
|
236
|
+
plugins: ("import" | "typescript" | "unicorn")[];
|
|
235
237
|
jsPlugins: never[];
|
|
236
238
|
categories: {
|
|
237
239
|
correctness: "error";
|
|
@@ -247,6 +249,7 @@ declare const _default: {
|
|
|
247
249
|
};
|
|
248
250
|
options: {
|
|
249
251
|
typeAware: true;
|
|
252
|
+
typeCheck: true;
|
|
250
253
|
};
|
|
251
254
|
rules: {
|
|
252
255
|
'eslint/no-var': "warn";
|
|
@@ -372,6 +375,7 @@ declare const _default: {
|
|
|
372
375
|
'unicorn/no-anonymous-default-export': "off";
|
|
373
376
|
'eslint/sort-imports': "off";
|
|
374
377
|
'import/no-relative-parent-imports': "off";
|
|
378
|
+
'unicorn/max-nested-calls': "off";
|
|
375
379
|
'eslint/no-magic-numbers': "off";
|
|
376
380
|
'unicorn/prefer-modern-math-apis': "off";
|
|
377
381
|
'eslint/no-use-before-define': "off";
|
|
@@ -391,21 +395,36 @@ declare const _default: {
|
|
|
391
395
|
'oxc/no-async-await': "off";
|
|
392
396
|
};
|
|
393
397
|
}[];
|
|
394
|
-
plugins: ("
|
|
398
|
+
plugins: ("import" | "jsx-a11y" | "react" | "typescript" | "unicorn")[];
|
|
395
399
|
jsPlugins: {
|
|
396
400
|
name: string;
|
|
397
401
|
specifier: string;
|
|
398
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
|
+
};
|
|
399
416
|
rules: {
|
|
400
417
|
'react/rules-of-hooks': "error";
|
|
401
418
|
'react/exhaustive-deps': "warn";
|
|
402
419
|
'react-hooks-js/set-state-in-effect': "warn";
|
|
403
420
|
'react/only-export-components': "error";
|
|
404
421
|
'react-compiler-js/react-compiler': "error";
|
|
422
|
+
'import/no-anonymous-default-export': "warn";
|
|
405
423
|
'react/jsx-filename-extension': "off";
|
|
406
424
|
'react/jsx-max-depth': "off";
|
|
407
425
|
'react/no-multi-comp': "off";
|
|
408
426
|
'react/jsx-props-no-spreading': "off";
|
|
427
|
+
'react/jsx-no-literals': "off";
|
|
409
428
|
'react/forbid-component-props': "off";
|
|
410
429
|
'react/forbid-dom-props': "off";
|
|
411
430
|
};
|
|
@@ -430,9 +449,8 @@ declare const _default: {
|
|
|
430
449
|
'react/no-unsafe': "off";
|
|
431
450
|
'react/react-in-jsx-scope': "off";
|
|
432
451
|
'react/require-render-return': "error";
|
|
433
|
-
'import/no-anonymous-default-export': "warn";
|
|
434
452
|
'jsx-a11y/alt-text': ["warn", {
|
|
435
|
-
elements:
|
|
453
|
+
elements: "img"[];
|
|
436
454
|
img: string[];
|
|
437
455
|
}];
|
|
438
456
|
'jsx-a11y/aria-props': "warn";
|
|
@@ -441,20 +459,6 @@ declare const _default: {
|
|
|
441
459
|
'jsx-a11y/role-has-required-aria-props': "warn";
|
|
442
460
|
'jsx-a11y/role-supports-aria-props': "warn";
|
|
443
461
|
};
|
|
444
|
-
globals: {
|
|
445
|
-
AudioWorkletGlobalScope: "readonly";
|
|
446
|
-
AudioWorkletProcessor: "readonly";
|
|
447
|
-
currentFrame: "readonly";
|
|
448
|
-
currentTime: "readonly";
|
|
449
|
-
registerProcessor: "readonly";
|
|
450
|
-
sampleRate: "readonly";
|
|
451
|
-
WorkletGlobalScope: "readonly";
|
|
452
|
-
};
|
|
453
|
-
plugins: ("import" | "jsx-a11y")[];
|
|
454
|
-
env: {
|
|
455
|
-
browser: true;
|
|
456
|
-
node: true;
|
|
457
|
-
};
|
|
458
462
|
}[];
|
|
459
463
|
};
|
|
460
464
|
export default _default;
|
package/dist/react.d.ts.map
CHANGED
|
@@ -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
|
|
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: ['**/*.{
|
|
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;
|
|
1
|
+
{"version":3,"file":"react.js","sourceRoot":"","sources":["../src/react.ts"],"names":[],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K;YACrC,wBAAwB,EAAE,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.
|
|
3
|
+
"version": "0.0.0-alpha.906ec4c",
|
|
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.
|
|
37
|
-
"oxlint-tsgolint": "0.
|
|
36
|
+
"oxlint": "1.79.x",
|
|
37
|
+
"oxlint-tsgolint": "7.0.x"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@types/node": "^24.13.
|
|
41
|
-
"@4mbl/tsconfig": "0.0.0-alpha.
|
|
40
|
+
"@types/node": "^24.13.3",
|
|
41
|
+
"@4mbl/tsconfig": "0.0.0-alpha.906ec4c"
|
|
42
42
|
},
|
|
43
43
|
"scripts": {
|
|
44
44
|
"build": "tsc"
|