@4mbl/lint 0.0.0-alpha.f7400dd → 0.0.0-alpha.f95bc32
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 +85 -0
- package/dist/base.d.ts +16 -6
- package/dist/base.d.ts.map +1 -1
- package/dist/base.js +6 -1
- package/dist/base.js.map +1 -1
- package/dist/next.d.ts +542 -2
- package/dist/next.d.ts.map +1 -1
- package/dist/next.js +22 -5
- package/dist/next.js.map +1 -1
- package/dist/node.d.ts +31 -7
- package/dist/node.d.ts.map +1 -1
- package/dist/node.js +12 -2
- package/dist/node.js.map +1 -1
- package/dist/react.d.ts +27 -11
- package/dist/react.d.ts.map +1 -1
- package/dist/react.js +14 -3
- package/dist/react.js.map +1 -1
- package/package.json +6 -9
package/dist/node.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineConfig, type OxlintConfig } from 'oxlint';
|
|
2
2
|
type NodeOptions = {};
|
|
3
|
-
declare function nodeConfig(
|
|
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";
|
|
@@ -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:
|
|
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",
|
|
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,14 +164,21 @@ declare function nodeConfig(_options?: Partial<NodeOptions>): {
|
|
|
159
164
|
'oxc/no-async-await': "off";
|
|
160
165
|
};
|
|
161
166
|
}[];
|
|
167
|
+
plugins: ("import" | "typescript" | "unicorn")[];
|
|
162
168
|
env: {
|
|
163
169
|
node: true;
|
|
164
170
|
};
|
|
171
|
+
rules: {
|
|
172
|
+
'eslint/no-underscore-dangle': ["warn", {
|
|
173
|
+
allow: string[];
|
|
174
|
+
}];
|
|
175
|
+
'no-nodejs-modules': "off";
|
|
176
|
+
};
|
|
165
177
|
};
|
|
166
178
|
export { type OxlintConfig, defineConfig, nodeConfig };
|
|
167
179
|
declare const _default: {
|
|
168
180
|
extends: {
|
|
169
|
-
plugins: ("
|
|
181
|
+
plugins: ("import" | "typescript" | "unicorn")[];
|
|
170
182
|
jsPlugins: never[];
|
|
171
183
|
categories: {
|
|
172
184
|
correctness: "error";
|
|
@@ -182,6 +194,7 @@ declare const _default: {
|
|
|
182
194
|
};
|
|
183
195
|
options: {
|
|
184
196
|
typeAware: true;
|
|
197
|
+
typeCheck: true;
|
|
185
198
|
};
|
|
186
199
|
rules: {
|
|
187
200
|
'eslint/no-var': "warn";
|
|
@@ -256,7 +269,7 @@ declare const _default: {
|
|
|
256
269
|
'typescript/prefer-as-const': "error";
|
|
257
270
|
'typescript/triple-slash-reference': "error";
|
|
258
271
|
'typescript/explicit-member-accessibility': ["warn", {
|
|
259
|
-
accessibility:
|
|
272
|
+
accessibility: "no-public";
|
|
260
273
|
}];
|
|
261
274
|
'eslint/id-length': "off";
|
|
262
275
|
'eslint/sort-keys': "off";
|
|
@@ -266,7 +279,7 @@ declare const _default: {
|
|
|
266
279
|
'eslint/max-params': "off";
|
|
267
280
|
'eslint/no-ternary': "off";
|
|
268
281
|
'eslint/curly': "warn";
|
|
269
|
-
'typescript/consistent-type-definitions': ["warn",
|
|
282
|
+
'typescript/consistent-type-definitions': ["warn", "type"];
|
|
270
283
|
'eslint/max-statements': "off";
|
|
271
284
|
'typescript/consistent-return': "off";
|
|
272
285
|
'unicorn/switch-case-braces': "warn";
|
|
@@ -298,12 +311,16 @@ declare const _default: {
|
|
|
298
311
|
'import/no-namespace': "off";
|
|
299
312
|
'import/exports-last': "off";
|
|
300
313
|
'import/no-unassigned-import': "off";
|
|
314
|
+
'import/group-exports': "off";
|
|
315
|
+
'import/consistent-type-specifier-style': "off";
|
|
301
316
|
'unicorn/no-new-array': "off";
|
|
302
317
|
'eslint/no-array-constructor': "warn";
|
|
303
318
|
'typescript/explicit-function-return-type': "off";
|
|
304
319
|
'typescript/explicit-module-boundary-types': "off";
|
|
305
320
|
'unicorn/no-anonymous-default-export': "off";
|
|
306
321
|
'eslint/sort-imports': "off";
|
|
322
|
+
'import/no-relative-parent-imports': "off";
|
|
323
|
+
'unicorn/max-nested-calls': "off";
|
|
307
324
|
'eslint/no-magic-numbers': "off";
|
|
308
325
|
'unicorn/prefer-modern-math-apis': "off";
|
|
309
326
|
'eslint/no-use-before-define': "off";
|
|
@@ -323,9 +340,16 @@ declare const _default: {
|
|
|
323
340
|
'oxc/no-async-await': "off";
|
|
324
341
|
};
|
|
325
342
|
}[];
|
|
343
|
+
plugins: ("import" | "typescript" | "unicorn")[];
|
|
326
344
|
env: {
|
|
327
345
|
node: true;
|
|
328
346
|
};
|
|
347
|
+
rules: {
|
|
348
|
+
'eslint/no-underscore-dangle': ["warn", {
|
|
349
|
+
allow: string[];
|
|
350
|
+
}];
|
|
351
|
+
'no-nodejs-modules': "off";
|
|
352
|
+
};
|
|
329
353
|
};
|
|
330
354
|
export default _default;
|
|
331
355
|
//# sourceMappingURL=node.d.ts.map
|
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,
|
|
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
|
@@ -1,13 +1,23 @@
|
|
|
1
1
|
import { defineConfig } from 'oxlint';
|
|
2
2
|
import { baseConfig } from './base.js';
|
|
3
3
|
// const DEFAULT_OPTIONS: NodeOptions = {};
|
|
4
|
-
function nodeConfig(
|
|
4
|
+
function nodeConfig(options) {
|
|
5
5
|
// const opts = { ...DEFAULT_OPTIONS, ...options };
|
|
6
|
+
const base = baseConfig(options);
|
|
6
7
|
return defineConfig({
|
|
7
|
-
extends: [
|
|
8
|
+
extends: [base],
|
|
9
|
+
// when changing plugins the parent plugins need to be extended, otherwise they are overridden
|
|
10
|
+
plugins: base.plugins,
|
|
8
11
|
env: {
|
|
9
12
|
node: true,
|
|
10
13
|
},
|
|
14
|
+
rules: {
|
|
15
|
+
'eslint/no-underscore-dangle': [
|
|
16
|
+
'warn',
|
|
17
|
+
{ allow: ['__dirname', '__filename'] },
|
|
18
|
+
],
|
|
19
|
+
'no-nodejs-modules': 'off',
|
|
20
|
+
},
|
|
11
21
|
});
|
|
12
22
|
}
|
|
13
23
|
export { defineConfig, nodeConfig };
|
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,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAIvC,2CAA2C;AAE3C,SAAS,UAAU,CAAC,
|
|
1
|
+
{"version":3,"file":"node.js","sourceRoot":"","sources":["../src/node.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAqB,MAAM,QAAQ,CAAC;AACzD,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAIvC,2CAA2C;AAE3C,SAAS,UAAU,CAAC,OAA8B;IAChD,mDAAmD;IAEnD,MAAM,IAAI,GAAG,UAAU,CAAC,OAAO,CAAC,CAAC;IAEjC,OAAO,YAAY,CAAC;QAClB,OAAO,EAAE,CAAC,IAAI,CAAC;QACf,8FAA8F;QAC9F,OAAO,EAAE,IAAI,CAAC,OAAO;QACrB,GAAG,EAAE;YACH,IAAI,EAAE,IAAI;SACX;QAED,KAAK,EAAE;YACL,6BAA6B,EAAE;gBAC7B,MAAM;gBACN,EAAE,KAAK,EAAE,CAAC,WAAW,EAAE,YAAY,CAAC,EAAE;aACvC;YACD,mBAAmB,EAAE,KAAK;SAC3B;KACF,CAAC,CAAC;AACL,CAAC;AAED,OAAO,EAAqB,YAAY,EAAE,UAAU,EAAE,CAAC;AAEvD,eAAe,UAAU,EAAE,CAAC"}
|
package/dist/react.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineConfig, type OxlintConfig } from 'oxlint';
|
|
2
2
|
export type ReactOptions = {};
|
|
3
|
-
declare function reactConfig(
|
|
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";
|
|
@@ -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:
|
|
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",
|
|
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,7 +164,7 @@ declare function reactConfig(_options?: Partial<ReactOptions>): {
|
|
|
159
164
|
'oxc/no-async-await': "off";
|
|
160
165
|
};
|
|
161
166
|
}[];
|
|
162
|
-
plugins: "react"[];
|
|
167
|
+
plugins: ("import" | "react" | "typescript" | "unicorn")[];
|
|
163
168
|
jsPlugins: {
|
|
164
169
|
name: string;
|
|
165
170
|
specifier: string;
|
|
@@ -174,6 +179,9 @@ declare function reactConfig(_options?: Partial<ReactOptions>): {
|
|
|
174
179
|
'react/jsx-max-depth': "off";
|
|
175
180
|
'react/no-multi-comp': "off";
|
|
176
181
|
'react/jsx-props-no-spreading': "off";
|
|
182
|
+
'react/jsx-no-literals': "off";
|
|
183
|
+
'react/forbid-component-props': "off";
|
|
184
|
+
'react/forbid-dom-props': "off";
|
|
177
185
|
};
|
|
178
186
|
overrides: {
|
|
179
187
|
files: string[];
|
|
@@ -198,7 +206,7 @@ declare function reactConfig(_options?: Partial<ReactOptions>): {
|
|
|
198
206
|
'react/require-render-return': "error";
|
|
199
207
|
'import/no-anonymous-default-export': "warn";
|
|
200
208
|
'jsx-a11y/alt-text': ["warn", {
|
|
201
|
-
elements:
|
|
209
|
+
elements: "img"[];
|
|
202
210
|
img: string[];
|
|
203
211
|
}];
|
|
204
212
|
'jsx-a11y/aria-props': "warn";
|
|
@@ -226,7 +234,7 @@ declare function reactConfig(_options?: Partial<ReactOptions>): {
|
|
|
226
234
|
export { type OxlintConfig, defineConfig, reactConfig };
|
|
227
235
|
declare const _default: {
|
|
228
236
|
extends: {
|
|
229
|
-
plugins: ("
|
|
237
|
+
plugins: ("import" | "typescript" | "unicorn")[];
|
|
230
238
|
jsPlugins: never[];
|
|
231
239
|
categories: {
|
|
232
240
|
correctness: "error";
|
|
@@ -242,6 +250,7 @@ declare const _default: {
|
|
|
242
250
|
};
|
|
243
251
|
options: {
|
|
244
252
|
typeAware: true;
|
|
253
|
+
typeCheck: true;
|
|
245
254
|
};
|
|
246
255
|
rules: {
|
|
247
256
|
'eslint/no-var': "warn";
|
|
@@ -316,7 +325,7 @@ declare const _default: {
|
|
|
316
325
|
'typescript/prefer-as-const': "error";
|
|
317
326
|
'typescript/triple-slash-reference': "error";
|
|
318
327
|
'typescript/explicit-member-accessibility': ["warn", {
|
|
319
|
-
accessibility:
|
|
328
|
+
accessibility: "no-public";
|
|
320
329
|
}];
|
|
321
330
|
'eslint/id-length': "off";
|
|
322
331
|
'eslint/sort-keys': "off";
|
|
@@ -326,7 +335,7 @@ declare const _default: {
|
|
|
326
335
|
'eslint/max-params': "off";
|
|
327
336
|
'eslint/no-ternary': "off";
|
|
328
337
|
'eslint/curly': "warn";
|
|
329
|
-
'typescript/consistent-type-definitions': ["warn",
|
|
338
|
+
'typescript/consistent-type-definitions': ["warn", "type"];
|
|
330
339
|
'eslint/max-statements': "off";
|
|
331
340
|
'typescript/consistent-return': "off";
|
|
332
341
|
'unicorn/switch-case-braces': "warn";
|
|
@@ -358,12 +367,16 @@ declare const _default: {
|
|
|
358
367
|
'import/no-namespace': "off";
|
|
359
368
|
'import/exports-last': "off";
|
|
360
369
|
'import/no-unassigned-import': "off";
|
|
370
|
+
'import/group-exports': "off";
|
|
371
|
+
'import/consistent-type-specifier-style': "off";
|
|
361
372
|
'unicorn/no-new-array': "off";
|
|
362
373
|
'eslint/no-array-constructor': "warn";
|
|
363
374
|
'typescript/explicit-function-return-type': "off";
|
|
364
375
|
'typescript/explicit-module-boundary-types': "off";
|
|
365
376
|
'unicorn/no-anonymous-default-export': "off";
|
|
366
377
|
'eslint/sort-imports': "off";
|
|
378
|
+
'import/no-relative-parent-imports': "off";
|
|
379
|
+
'unicorn/max-nested-calls': "off";
|
|
367
380
|
'eslint/no-magic-numbers': "off";
|
|
368
381
|
'unicorn/prefer-modern-math-apis': "off";
|
|
369
382
|
'eslint/no-use-before-define': "off";
|
|
@@ -383,7 +396,7 @@ declare const _default: {
|
|
|
383
396
|
'oxc/no-async-await': "off";
|
|
384
397
|
};
|
|
385
398
|
}[];
|
|
386
|
-
plugins: "react"[];
|
|
399
|
+
plugins: ("import" | "react" | "typescript" | "unicorn")[];
|
|
387
400
|
jsPlugins: {
|
|
388
401
|
name: string;
|
|
389
402
|
specifier: string;
|
|
@@ -398,6 +411,9 @@ declare const _default: {
|
|
|
398
411
|
'react/jsx-max-depth': "off";
|
|
399
412
|
'react/no-multi-comp': "off";
|
|
400
413
|
'react/jsx-props-no-spreading': "off";
|
|
414
|
+
'react/jsx-no-literals': "off";
|
|
415
|
+
'react/forbid-component-props': "off";
|
|
416
|
+
'react/forbid-dom-props': "off";
|
|
401
417
|
};
|
|
402
418
|
overrides: {
|
|
403
419
|
files: string[];
|
|
@@ -422,7 +438,7 @@ declare const _default: {
|
|
|
422
438
|
'react/require-render-return': "error";
|
|
423
439
|
'import/no-anonymous-default-export': "warn";
|
|
424
440
|
'jsx-a11y/alt-text': ["warn", {
|
|
425
|
-
elements:
|
|
441
|
+
elements: "img"[];
|
|
426
442
|
img: string[];
|
|
427
443
|
}];
|
|
428
444
|
'jsx-a11y/aria-props': "warn";
|
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,
|
|
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmFnD;AAED,OAAO,EAAE,KAAK,YAAY,EAAE,YAAY,EAAE,WAAW,EAAE,CAAC"}
|
package/dist/react.js
CHANGED
|
@@ -1,12 +1,19 @@
|
|
|
1
1
|
import { defineConfig } from 'oxlint';
|
|
2
2
|
import { baseConfig } from './base.js';
|
|
3
3
|
// const DEFAULT_OPTIONS: ReactOptions = {};
|
|
4
|
-
function reactConfig(
|
|
4
|
+
function reactConfig(options) {
|
|
5
5
|
// const opts = { ...DEFAULT_OPTIONS, ...options };
|
|
6
|
+
const base = baseConfig(options);
|
|
6
7
|
return defineConfig({
|
|
7
|
-
extends: [
|
|
8
|
-
plugins: ['react'],
|
|
8
|
+
extends: [base],
|
|
9
|
+
plugins: [...base.plugins, 'react'],
|
|
9
10
|
jsPlugins: [
|
|
11
|
+
// react compiler is not yet supported by oxc
|
|
12
|
+
// https://github.com/oxc-project/oxc/issues/10048
|
|
13
|
+
// this means compiler related rules are not yet supported
|
|
14
|
+
// https://github.com/oxc-project/oxc/issues/1022
|
|
15
|
+
// react compiler port to rust may enable compiler related rules
|
|
16
|
+
// https://github.com/facebook/react/pull/36173
|
|
10
17
|
{ name: 'react-hooks-js', specifier: 'eslint-plugin-react-hooks' },
|
|
11
18
|
{ name: 'react-compiler-js', specifier: 'eslint-plugin-react-compiler' },
|
|
12
19
|
],
|
|
@@ -20,6 +27,10 @@ function reactConfig(_options) {
|
|
|
20
27
|
'react/jsx-max-depth': 'off',
|
|
21
28
|
'react/no-multi-comp': 'off',
|
|
22
29
|
'react/jsx-props-no-spreading': 'off',
|
|
30
|
+
'react/jsx-no-literals': 'off',
|
|
31
|
+
// conflicts with tailwind
|
|
32
|
+
'react/forbid-component-props': 'off',
|
|
33
|
+
'react/forbid-dom-props': 'off',
|
|
23
34
|
},
|
|
24
35
|
overrides: [
|
|
25
36
|
{
|
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,
|
|
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;YACrC,uBAAuB,EAAE,KAAK;YAE9B,0BAA0B;YAC1B,8BAA8B,EAAE,KAAK;YACrC,wBAAwB,EAAE,KAAK;SAChC;QACD,SAAS,EAAE;YACT;gBACE,KAAK,EAAE,CAAC,kCAAkC,CAAC;gBAC3C,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,mEAAmE;oBACnE,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,oCAAoC,EAAE,MAAM;oBAC5C,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;gBACD,OAAO,EAAE;oBACP,uBAAuB,EAAE,UAAU;oBACnC,qBAAqB,EAAE,UAAU;oBACjC,YAAY,EAAE,UAAU;oBACxB,WAAW,EAAE,UAAU;oBACvB,iBAAiB,EAAE,UAAU;oBAC7B,UAAU,EAAE,UAAU;oBACtB,kBAAkB,EAAE,UAAU;iBAC/B;gBACD,OAAO,EAAE,CAAC,QAAQ,EAAE,UAAU,CAAC;gBAC/B,GAAG,EAAE;oBACH,OAAO,EAAE,IAAI;oBACb,IAAI,EAAE,IAAI;iBACX;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.f95bc32",
|
|
4
4
|
"description": "Linting configuration for various environments.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"author": "4mbl",
|
|
@@ -32,16 +32,13 @@
|
|
|
32
32
|
],
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"eslint-plugin-react-compiler": "19.1.0-rc.2",
|
|
35
|
-
"eslint-plugin-react-hooks": "
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"jiti": "^2.6.1",
|
|
39
|
-
"oxlint": "^1.62.0",
|
|
40
|
-
"oxlint-tsgolint": "^0.22.1"
|
|
35
|
+
"eslint-plugin-react-hooks": "7.1.1",
|
|
36
|
+
"oxlint": "1.77.x",
|
|
37
|
+
"oxlint-tsgolint": "7.0.x"
|
|
41
38
|
},
|
|
42
39
|
"devDependencies": {
|
|
43
|
-
"@types/node": "^24.
|
|
44
|
-
"@4mbl/tsconfig": "0.0.0-alpha.
|
|
40
|
+
"@types/node": "^24.13.3",
|
|
41
|
+
"@4mbl/tsconfig": "0.0.0-alpha.f95bc32"
|
|
45
42
|
},
|
|
46
43
|
"scripts": {
|
|
47
44
|
"build": "tsc"
|