oxlint-config-presets 0.1.16 → 0.1.18
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/@antfu.json +77 -13
- package/@eslint/all.json +1 -0
- package/@typescript-eslint/all.json +0 -2
- package/@vitest/all.json +1 -0
- package/README.md +87 -87
- package/airbnb/base.json +1 -0
- package/airbnb/legacy.json +1 -0
- package/airbnb/whitespace.json +8 -0
- package/airbnb.json +8 -0
- package/alloy/react.json +1 -0
- package/alloy.json +1 -0
- package/package.json +3 -2
- package/react/all.json +1 -0
- package/xo.json +7 -8
package/@antfu.json
CHANGED
|
@@ -255,7 +255,14 @@
|
|
|
255
255
|
},
|
|
256
256
|
"overrides": [
|
|
257
257
|
{
|
|
258
|
-
"files": [
|
|
258
|
+
"files": [
|
|
259
|
+
"**/*.[jt]s",
|
|
260
|
+
"**/*.[jt]sx",
|
|
261
|
+
"**/*.c[jt]s",
|
|
262
|
+
"**/*.c[jt]sx",
|
|
263
|
+
"**/*.m[jt]s",
|
|
264
|
+
"**/*.m[jt]sx"
|
|
265
|
+
],
|
|
259
266
|
"rules": {
|
|
260
267
|
"node/handle-callback-err": ["error", "^(err|error)$"],
|
|
261
268
|
"node/no-exports-assign": "error",
|
|
@@ -290,7 +297,7 @@
|
|
|
290
297
|
"plugins": ["node", "jsdoc", "unicorn"]
|
|
291
298
|
},
|
|
292
299
|
{
|
|
293
|
-
"files": ["
|
|
300
|
+
"files": ["**/*.ts", "**/*.cts", "**/*.mts", "**/*.tsx", "**/*.ctsx", "**/*.mtsx"],
|
|
294
301
|
"rules": {
|
|
295
302
|
"constructor-super": "off",
|
|
296
303
|
"getter-return": "off",
|
|
@@ -325,18 +332,50 @@
|
|
|
325
332
|
},
|
|
326
333
|
{
|
|
327
334
|
"files": [
|
|
328
|
-
"**/__tests__
|
|
329
|
-
"
|
|
330
|
-
"
|
|
331
|
-
"
|
|
332
|
-
"
|
|
335
|
+
"**/__tests__/**/*.[jt]s",
|
|
336
|
+
"**/__tests__/**/*.[jt]sx",
|
|
337
|
+
"**/__tests__/**/*.c[jt]s",
|
|
338
|
+
"**/__tests__/**/*.c[jt]sx",
|
|
339
|
+
"**/__tests__/**/*.m[jt]s",
|
|
340
|
+
"**/__tests__/**/*.m[jt]sx",
|
|
341
|
+
"**/*.spec.[jt]s",
|
|
342
|
+
"**/*.spec.[jt]sx",
|
|
343
|
+
"**/*.spec.c[jt]s",
|
|
344
|
+
"**/*.spec.c[jt]sx",
|
|
345
|
+
"**/*.spec.m[jt]s",
|
|
346
|
+
"**/*.spec.m[jt]sx",
|
|
347
|
+
"**/*.test.[jt]s",
|
|
348
|
+
"**/*.test.[jt]sx",
|
|
349
|
+
"**/*.test.c[jt]s",
|
|
350
|
+
"**/*.test.c[jt]sx",
|
|
351
|
+
"**/*.test.m[jt]s",
|
|
352
|
+
"**/*.test.m[jt]sx",
|
|
353
|
+
"**/*.bench.[jt]s",
|
|
354
|
+
"**/*.bench.[jt]sx",
|
|
355
|
+
"**/*.bench.c[jt]s",
|
|
356
|
+
"**/*.bench.c[jt]sx",
|
|
357
|
+
"**/*.bench.m[jt]s",
|
|
358
|
+
"**/*.bench.m[jt]sx",
|
|
359
|
+
"**/*.benchmark.[jt]s",
|
|
360
|
+
"**/*.benchmark.[jt]sx",
|
|
361
|
+
"**/*.benchmark.c[jt]s",
|
|
362
|
+
"**/*.benchmark.c[jt]sx",
|
|
363
|
+
"**/*.benchmark.m[jt]s",
|
|
364
|
+
"**/*.benchmark.m[jt]sx"
|
|
333
365
|
],
|
|
334
366
|
"rules": {
|
|
335
367
|
"no-unused-expressions": "off"
|
|
336
368
|
}
|
|
337
369
|
},
|
|
338
370
|
{
|
|
339
|
-
"files": [
|
|
371
|
+
"files": [
|
|
372
|
+
"**/*.md/**/*.[jt]s",
|
|
373
|
+
"**/*.md/**/*.[jt]sx",
|
|
374
|
+
"**/*.md/**/*.c[jt]s",
|
|
375
|
+
"**/*.md/**/*.c[jt]sx",
|
|
376
|
+
"**/*.md/**/*.m[jt]s",
|
|
377
|
+
"**/*.md/**/*.m[jt]sx"
|
|
378
|
+
],
|
|
340
379
|
"rules": {
|
|
341
380
|
"no-alert": "off",
|
|
342
381
|
"no-console": "off",
|
|
@@ -351,11 +390,36 @@
|
|
|
351
390
|
},
|
|
352
391
|
{
|
|
353
392
|
"files": [
|
|
354
|
-
"**/scripts
|
|
355
|
-
"**/
|
|
356
|
-
"**/
|
|
357
|
-
"
|
|
358
|
-
"
|
|
393
|
+
"**/scripts/**/*.[jt]s",
|
|
394
|
+
"**/scripts/**/*.[jt]sx",
|
|
395
|
+
"**/scripts/**/*.c[jt]s",
|
|
396
|
+
"**/scripts/**/*.c[jt]sx",
|
|
397
|
+
"**/scripts/**/*.m[jt]s",
|
|
398
|
+
"**/scripts/**/*.m[jt]sx",
|
|
399
|
+
"**/cli/**/*.[jt]s",
|
|
400
|
+
"**/cli/**/*.[jt]sx",
|
|
401
|
+
"**/cli/**/*.c[jt]s",
|
|
402
|
+
"**/cli/**/*.c[jt]sx",
|
|
403
|
+
"**/cli/**/*.m[jt]s",
|
|
404
|
+
"**/cli/**/*.m[jt]sx",
|
|
405
|
+
"**/cli.[jt]s",
|
|
406
|
+
"**/cli.[jt]sx",
|
|
407
|
+
"**/cli.c[jt]s",
|
|
408
|
+
"**/cli.c[jt]sx",
|
|
409
|
+
"**/cli.m[jt]s",
|
|
410
|
+
"**/cli.m[jt]sx",
|
|
411
|
+
"**/*.config.[jt]s",
|
|
412
|
+
"**/*.config.[jt]sx",
|
|
413
|
+
"**/*.config.c[jt]s",
|
|
414
|
+
"**/*.config.c[jt]sx",
|
|
415
|
+
"**/*.config.m[jt]s",
|
|
416
|
+
"**/*.config.m[jt]sx",
|
|
417
|
+
"**/*.config.*.[jt]s",
|
|
418
|
+
"**/*.config.*.[jt]sx",
|
|
419
|
+
"**/*.config.*.c[jt]s",
|
|
420
|
+
"**/*.config.*.c[jt]sx",
|
|
421
|
+
"**/*.config.*.m[jt]s",
|
|
422
|
+
"**/*.config.*.m[jt]sx"
|
|
359
423
|
],
|
|
360
424
|
"rules": {
|
|
361
425
|
"no-console": "off"
|
package/@eslint/all.json
CHANGED
|
@@ -12,10 +12,8 @@
|
|
|
12
12
|
"no-dupe-class-members": "error",
|
|
13
13
|
"no-empty-function": "error",
|
|
14
14
|
"no-implied-eval": "off",
|
|
15
|
-
"no-loop-func": "error",
|
|
16
15
|
"no-magic-numbers": "error",
|
|
17
16
|
"no-redeclare": "error",
|
|
18
|
-
"no-restricted-imports": "error",
|
|
19
17
|
"no-shadow": "error",
|
|
20
18
|
"no-unused-expressions": "error",
|
|
21
19
|
"no-unused-private-class-members": "off",
|
package/@vitest/all.json
CHANGED
|
@@ -31,6 +31,7 @@
|
|
|
31
31
|
"vitest/no-test-return-statement": "warn",
|
|
32
32
|
"vitest/no-unneeded-async-expect-function": "warn",
|
|
33
33
|
"vitest/padding-around-after-all-blocks": "warn",
|
|
34
|
+
"vitest/padding-around-test-blocks": "warn",
|
|
34
35
|
"vitest/prefer-called-exactly-once-with": "warn",
|
|
35
36
|
"vitest/prefer-called-once": "off",
|
|
36
37
|
"vitest/prefer-called-times": "warn",
|