@coderwyd/eslint-config 2.5.2 → 2.5.4
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/cli.cjs +9 -10
- package/dist/cli.js +9 -10
- package/dist/index.cjs +8 -13
- package/dist/index.d.cts +66 -45
- package/dist/index.d.ts +66 -45
- package/dist/index.js +8 -13
- package/package.json +16 -17
package/dist/cli.cjs
CHANGED
|
@@ -46,35 +46,34 @@ var import_parse_gitignore = __toESM(require("parse-gitignore"), 1);
|
|
|
46
46
|
var import_picocolors = __toESM(require("picocolors"), 1);
|
|
47
47
|
|
|
48
48
|
// package.json
|
|
49
|
-
var version = "2.5.
|
|
49
|
+
var version = "2.5.4";
|
|
50
50
|
var devDependencies = {
|
|
51
51
|
"@antfu/ni": "^0.21.12",
|
|
52
|
-
"@eslint-react/eslint-plugin": "^1.5.
|
|
53
|
-
"@eslint/config-inspector": "^0.4.
|
|
52
|
+
"@eslint-react/eslint-plugin": "^1.5.14",
|
|
53
|
+
"@eslint/config-inspector": "^0.4.10",
|
|
54
54
|
"@stylistic/eslint-plugin-migrate": "^2.1.0",
|
|
55
55
|
"@types/eslint": "^8.56.10",
|
|
56
56
|
"@types/fs-extra": "^11.0.4",
|
|
57
|
-
"@types/node": "^20.
|
|
57
|
+
"@types/node": "^20.14.0",
|
|
58
58
|
"@types/prompts": "^2.4.9",
|
|
59
59
|
"@types/yargs": "^17.0.32",
|
|
60
|
-
"@unocss/eslint-plugin": "^0.60.
|
|
60
|
+
"@unocss/eslint-plugin": "^0.60.4",
|
|
61
61
|
bumpp: "^9.4.1",
|
|
62
|
-
eslint: "^9.
|
|
63
|
-
"eslint-plugin-react": "^7.34.1",
|
|
62
|
+
eslint: "^9.4.0",
|
|
64
63
|
"eslint-plugin-react-hooks": "^4.6.2",
|
|
65
64
|
"eslint-plugin-react-refresh": "^0.4.7",
|
|
66
65
|
"eslint-plugin-svelte": "2.39.0",
|
|
67
|
-
"eslint-plugin-tailwindcss": "^3.
|
|
66
|
+
"eslint-plugin-tailwindcss": "^3.17.0",
|
|
68
67
|
execa: "^9.1.0",
|
|
69
68
|
"fast-glob": "^3.3.2",
|
|
70
69
|
"fs-extra": "^11.2.0",
|
|
71
|
-
"lint-staged": "^15.2.
|
|
70
|
+
"lint-staged": "^15.2.5",
|
|
72
71
|
rimraf: "^5.0.7",
|
|
73
72
|
"simple-git-hooks": "^2.11.1",
|
|
74
73
|
svelte: "^4.2.17",
|
|
75
74
|
"svelte-eslint-parser": "^0.36.0",
|
|
76
75
|
tsup: "^8.0.2",
|
|
77
|
-
tsx: "^4.
|
|
76
|
+
tsx: "^4.11.0",
|
|
78
77
|
typescript: "^5.4.5"
|
|
79
78
|
};
|
|
80
79
|
|
package/dist/cli.js
CHANGED
|
@@ -17,35 +17,34 @@ import parse from "parse-gitignore";
|
|
|
17
17
|
import c from "picocolors";
|
|
18
18
|
|
|
19
19
|
// package.json
|
|
20
|
-
var version = "2.5.
|
|
20
|
+
var version = "2.5.4";
|
|
21
21
|
var devDependencies = {
|
|
22
22
|
"@antfu/ni": "^0.21.12",
|
|
23
|
-
"@eslint-react/eslint-plugin": "^1.5.
|
|
24
|
-
"@eslint/config-inspector": "^0.4.
|
|
23
|
+
"@eslint-react/eslint-plugin": "^1.5.14",
|
|
24
|
+
"@eslint/config-inspector": "^0.4.10",
|
|
25
25
|
"@stylistic/eslint-plugin-migrate": "^2.1.0",
|
|
26
26
|
"@types/eslint": "^8.56.10",
|
|
27
27
|
"@types/fs-extra": "^11.0.4",
|
|
28
|
-
"@types/node": "^20.
|
|
28
|
+
"@types/node": "^20.14.0",
|
|
29
29
|
"@types/prompts": "^2.4.9",
|
|
30
30
|
"@types/yargs": "^17.0.32",
|
|
31
|
-
"@unocss/eslint-plugin": "^0.60.
|
|
31
|
+
"@unocss/eslint-plugin": "^0.60.4",
|
|
32
32
|
bumpp: "^9.4.1",
|
|
33
|
-
eslint: "^9.
|
|
34
|
-
"eslint-plugin-react": "^7.34.1",
|
|
33
|
+
eslint: "^9.4.0",
|
|
35
34
|
"eslint-plugin-react-hooks": "^4.6.2",
|
|
36
35
|
"eslint-plugin-react-refresh": "^0.4.7",
|
|
37
36
|
"eslint-plugin-svelte": "2.39.0",
|
|
38
|
-
"eslint-plugin-tailwindcss": "^3.
|
|
37
|
+
"eslint-plugin-tailwindcss": "^3.17.0",
|
|
39
38
|
execa: "^9.1.0",
|
|
40
39
|
"fast-glob": "^3.3.2",
|
|
41
40
|
"fs-extra": "^11.2.0",
|
|
42
|
-
"lint-staged": "^15.2.
|
|
41
|
+
"lint-staged": "^15.2.5",
|
|
43
42
|
rimraf: "^5.0.7",
|
|
44
43
|
"simple-git-hooks": "^2.11.1",
|
|
45
44
|
svelte: "^4.2.17",
|
|
46
45
|
"svelte-eslint-parser": "^0.36.0",
|
|
47
46
|
tsup: "^8.0.2",
|
|
48
|
-
tsx: "^4.
|
|
47
|
+
tsx: "^4.11.0",
|
|
49
48
|
typescript: "^5.4.5"
|
|
50
49
|
};
|
|
51
50
|
|
package/dist/index.cjs
CHANGED
|
@@ -358,15 +358,7 @@ async function javascript(options = {}) {
|
|
|
358
358
|
allowTernary: true
|
|
359
359
|
}
|
|
360
360
|
],
|
|
361
|
-
"no-unused-vars":
|
|
362
|
-
"error",
|
|
363
|
-
{
|
|
364
|
-
args: "none",
|
|
365
|
-
caughtErrors: "none",
|
|
366
|
-
ignoreRestSiblings: true,
|
|
367
|
-
vars: "all"
|
|
368
|
-
}
|
|
369
|
-
],
|
|
361
|
+
"no-unused-vars": "off",
|
|
370
362
|
"no-use-before-define": [
|
|
371
363
|
"error",
|
|
372
364
|
{ classes: false, functions: false, variables: true }
|
|
@@ -404,7 +396,7 @@ async function javascript(options = {}) {
|
|
|
404
396
|
}
|
|
405
397
|
],
|
|
406
398
|
"prefer-exponentiation-operator": "error",
|
|
407
|
-
|
|
399
|
+
// 'prefer-promise-reject-errors': 'error',
|
|
408
400
|
"prefer-regex-literals": ["error", { disallowRedundantWrapping: true }],
|
|
409
401
|
"prefer-rest-params": "error",
|
|
410
402
|
"prefer-spread": "error",
|
|
@@ -956,9 +948,9 @@ async function stylistic(options = {}) {
|
|
|
956
948
|
rules: {
|
|
957
949
|
...config.rules,
|
|
958
950
|
"antfu/consistent-list-newline": "error",
|
|
951
|
+
"antfu/curly": "error",
|
|
959
952
|
"antfu/if-newline": "warn",
|
|
960
953
|
"antfu/top-level-function": "warn",
|
|
961
|
-
"curly": ["error", "multi-or-nest", "consistent"],
|
|
962
954
|
...overrides
|
|
963
955
|
}
|
|
964
956
|
}
|
|
@@ -995,6 +987,7 @@ async function typescript(options = {}) {
|
|
|
995
987
|
"ts/no-unsafe-return": "error",
|
|
996
988
|
"ts/restrict-plus-operands": "error",
|
|
997
989
|
"ts/restrict-template-expressions": "error",
|
|
990
|
+
"ts/strict-boolean-expressions": "error",
|
|
998
991
|
"ts/unbound-method": "error"
|
|
999
992
|
};
|
|
1000
993
|
const [pluginTs, parserTs] = await Promise.all([
|
|
@@ -1985,6 +1978,8 @@ async function defineConfig(options = {}, ...userConfigs) {
|
|
|
1985
1978
|
}
|
|
1986
1979
|
}
|
|
1987
1980
|
}
|
|
1981
|
+
const typescriptOptions = resolveSubOptions(options, "typescript");
|
|
1982
|
+
const tsconfigPath = "tsconfigPath" in typescriptOptions ? typescriptOptions.tsconfigPath : void 0;
|
|
1988
1983
|
configs2.push(
|
|
1989
1984
|
ignores(),
|
|
1990
1985
|
javascript({
|
|
@@ -2009,7 +2004,7 @@ async function defineConfig(options = {}, ...userConfigs) {
|
|
|
2009
2004
|
if (enableTypeScript) {
|
|
2010
2005
|
configs2.push(
|
|
2011
2006
|
typescript({
|
|
2012
|
-
...
|
|
2007
|
+
...typescriptOptions,
|
|
2013
2008
|
componentExts,
|
|
2014
2009
|
overrides: getOverrides(options, "typescript")
|
|
2015
2010
|
})
|
|
@@ -2047,7 +2042,7 @@ async function defineConfig(options = {}, ...userConfigs) {
|
|
|
2047
2042
|
configs2.push(
|
|
2048
2043
|
react({
|
|
2049
2044
|
overrides: getOverrides(options, "react"),
|
|
2050
|
-
tsconfigPath
|
|
2045
|
+
tsconfigPath
|
|
2051
2046
|
})
|
|
2052
2047
|
);
|
|
2053
2048
|
}
|
package/dist/index.d.cts
CHANGED
|
@@ -20,6 +20,11 @@ interface RuleOptions {
|
|
|
20
20
|
* @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/consistent-list-newline.md
|
|
21
21
|
*/
|
|
22
22
|
'antfu/consistent-list-newline'?: Linter.RuleEntry<AntfuConsistentListNewline>
|
|
23
|
+
/**
|
|
24
|
+
* Enforce Anthony's style of curly bracket
|
|
25
|
+
* @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/curly.test.ts
|
|
26
|
+
*/
|
|
27
|
+
'antfu/curly'?: Linter.RuleEntry<[]>
|
|
23
28
|
/**
|
|
24
29
|
* Newline after if
|
|
25
30
|
* @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/if-newline.md
|
|
@@ -299,7 +304,7 @@ interface RuleOptions {
|
|
|
299
304
|
*/
|
|
300
305
|
'func-names'?: Linter.RuleEntry<FuncNames>
|
|
301
306
|
/**
|
|
302
|
-
* Enforce the consistent use of either `function` declarations or expressions
|
|
307
|
+
* Enforce the consistent use of either `function` declarations or expressions assigned to variables
|
|
303
308
|
* @see https://eslint.org/docs/latest/rules/func-style
|
|
304
309
|
*/
|
|
305
310
|
'func-style'?: Linter.RuleEntry<FuncStyle>
|
|
@@ -377,42 +382,42 @@ interface RuleOptions {
|
|
|
377
382
|
'implicit-arrow-linebreak'?: Linter.RuleEntry<ImplicitArrowLinebreak>
|
|
378
383
|
/**
|
|
379
384
|
* Enforce or ban the use of inline type-only markers for named imports.
|
|
380
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
385
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/consistent-type-specifier-style.md
|
|
381
386
|
*/
|
|
382
387
|
'import/consistent-type-specifier-style'?: Linter.RuleEntry<ImportConsistentTypeSpecifierStyle>
|
|
383
388
|
/**
|
|
384
389
|
* Ensure a default export is present, given a default import.
|
|
385
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
390
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/default.md
|
|
386
391
|
*/
|
|
387
392
|
'import/default'?: Linter.RuleEntry<[]>
|
|
388
393
|
/**
|
|
389
394
|
* Enforce a leading comment with the webpackChunkName for dynamic imports.
|
|
390
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
395
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/dynamic-import-chunkname.md
|
|
391
396
|
*/
|
|
392
397
|
'import/dynamic-import-chunkname'?: Linter.RuleEntry<ImportDynamicImportChunkname>
|
|
393
398
|
/**
|
|
394
399
|
* Forbid any invalid exports, i.e. re-export of the same name.
|
|
395
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
400
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/export.md
|
|
396
401
|
*/
|
|
397
402
|
'import/export'?: Linter.RuleEntry<[]>
|
|
398
403
|
/**
|
|
399
404
|
* Ensure all exports appear after other statements.
|
|
400
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
405
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/exports-last.md
|
|
401
406
|
*/
|
|
402
407
|
'import/exports-last'?: Linter.RuleEntry<[]>
|
|
403
408
|
/**
|
|
404
409
|
* Ensure consistent use of file extension within the import path.
|
|
405
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
410
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/extensions.md
|
|
406
411
|
*/
|
|
407
412
|
'import/extensions'?: Linter.RuleEntry<ImportExtensions>
|
|
408
413
|
/**
|
|
409
414
|
* Ensure all imports appear before other statements.
|
|
410
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
415
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/first.md
|
|
411
416
|
*/
|
|
412
417
|
'import/first'?: Linter.RuleEntry<ImportFirst>
|
|
413
418
|
/**
|
|
414
419
|
* Prefer named exports to be grouped together in a single export declaration.
|
|
415
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
420
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/group-exports.md
|
|
416
421
|
*/
|
|
417
422
|
'import/group-exports'?: Linter.RuleEntry<[]>
|
|
418
423
|
/**
|
|
@@ -423,182 +428,182 @@ interface RuleOptions {
|
|
|
423
428
|
'import/imports-first'?: Linter.RuleEntry<ImportImportsFirst>
|
|
424
429
|
/**
|
|
425
430
|
* Enforce the maximum number of dependencies a module can have.
|
|
426
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
431
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/max-dependencies.md
|
|
427
432
|
*/
|
|
428
433
|
'import/max-dependencies'?: Linter.RuleEntry<ImportMaxDependencies>
|
|
429
434
|
/**
|
|
430
435
|
* Ensure named imports correspond to a named export in the remote file.
|
|
431
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
436
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/named.md
|
|
432
437
|
*/
|
|
433
438
|
'import/named'?: Linter.RuleEntry<ImportNamed>
|
|
434
439
|
/**
|
|
435
440
|
* Ensure imported namespaces contain dereferenced properties as they are dereferenced.
|
|
436
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
441
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/namespace.md
|
|
437
442
|
*/
|
|
438
443
|
'import/namespace'?: Linter.RuleEntry<ImportNamespace>
|
|
439
444
|
/**
|
|
440
445
|
* Enforce a newline after import statements.
|
|
441
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
446
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/newline-after-import.md
|
|
442
447
|
*/
|
|
443
448
|
'import/newline-after-import'?: Linter.RuleEntry<ImportNewlineAfterImport>
|
|
444
449
|
/**
|
|
445
450
|
* Forbid import of modules using absolute paths.
|
|
446
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
451
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-absolute-path.md
|
|
447
452
|
*/
|
|
448
453
|
'import/no-absolute-path'?: Linter.RuleEntry<ImportNoAbsolutePath>
|
|
449
454
|
/**
|
|
450
455
|
* Forbid AMD `require` and `define` calls.
|
|
451
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
456
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-amd.md
|
|
452
457
|
*/
|
|
453
458
|
'import/no-amd'?: Linter.RuleEntry<[]>
|
|
454
459
|
/**
|
|
455
460
|
* Forbid anonymous values as default exports.
|
|
456
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
461
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-anonymous-default-export.md
|
|
457
462
|
*/
|
|
458
463
|
'import/no-anonymous-default-export'?: Linter.RuleEntry<ImportNoAnonymousDefaultExport>
|
|
459
464
|
/**
|
|
460
465
|
* Forbid CommonJS `require` calls and `module.exports` or `exports.*`.
|
|
461
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
466
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-commonjs.md
|
|
462
467
|
*/
|
|
463
468
|
'import/no-commonjs'?: Linter.RuleEntry<ImportNoCommonjs>
|
|
464
469
|
/**
|
|
465
470
|
* Forbid a module from importing a module with a dependency path back to itself.
|
|
466
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
471
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-cycle.md
|
|
467
472
|
*/
|
|
468
473
|
'import/no-cycle'?: Linter.RuleEntry<ImportNoCycle>
|
|
469
474
|
/**
|
|
470
475
|
* Forbid default exports.
|
|
471
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
476
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-default-export.md
|
|
472
477
|
*/
|
|
473
478
|
'import/no-default-export'?: Linter.RuleEntry<[]>
|
|
474
479
|
/**
|
|
475
480
|
* Forbid imported names marked with `@deprecated` documentation tag.
|
|
476
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
481
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-deprecated.md
|
|
477
482
|
*/
|
|
478
483
|
'import/no-deprecated'?: Linter.RuleEntry<[]>
|
|
479
484
|
/**
|
|
480
485
|
* Forbid repeated import of the same module in multiple places.
|
|
481
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
486
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-duplicates.md
|
|
482
487
|
*/
|
|
483
488
|
'import/no-duplicates'?: Linter.RuleEntry<ImportNoDuplicates>
|
|
484
489
|
/**
|
|
485
490
|
* Forbid `require()` calls with expressions.
|
|
486
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
491
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-dynamic-require.md
|
|
487
492
|
*/
|
|
488
493
|
'import/no-dynamic-require'?: Linter.RuleEntry<ImportNoDynamicRequire>
|
|
489
494
|
/**
|
|
490
495
|
* Forbid empty named import blocks.
|
|
491
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
496
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-empty-named-blocks.md
|
|
492
497
|
*/
|
|
493
498
|
'import/no-empty-named-blocks'?: Linter.RuleEntry<[]>
|
|
494
499
|
/**
|
|
495
500
|
* Forbid the use of extraneous packages.
|
|
496
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
501
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-extraneous-dependencies.md
|
|
497
502
|
*/
|
|
498
503
|
'import/no-extraneous-dependencies'?: Linter.RuleEntry<ImportNoExtraneousDependencies>
|
|
499
504
|
/**
|
|
500
505
|
* Forbid import statements with CommonJS module.exports.
|
|
501
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
506
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-import-module-exports.md
|
|
502
507
|
*/
|
|
503
508
|
'import/no-import-module-exports'?: Linter.RuleEntry<ImportNoImportModuleExports>
|
|
504
509
|
/**
|
|
505
510
|
* Forbid importing the submodules of other modules.
|
|
506
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
511
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-internal-modules.md
|
|
507
512
|
*/
|
|
508
513
|
'import/no-internal-modules'?: Linter.RuleEntry<ImportNoInternalModules>
|
|
509
514
|
/**
|
|
510
515
|
* Forbid the use of mutable exports with `var` or `let`.
|
|
511
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
516
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-mutable-exports.md
|
|
512
517
|
*/
|
|
513
518
|
'import/no-mutable-exports'?: Linter.RuleEntry<[]>
|
|
514
519
|
/**
|
|
515
520
|
* Forbid use of exported name as identifier of default export.
|
|
516
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
521
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-named-as-default.md
|
|
517
522
|
*/
|
|
518
523
|
'import/no-named-as-default'?: Linter.RuleEntry<[]>
|
|
519
524
|
/**
|
|
520
525
|
* Forbid use of exported name as property of default export.
|
|
521
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
526
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-named-as-default-member.md
|
|
522
527
|
*/
|
|
523
528
|
'import/no-named-as-default-member'?: Linter.RuleEntry<[]>
|
|
524
529
|
/**
|
|
525
530
|
* Forbid named default exports.
|
|
526
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
531
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-named-default.md
|
|
527
532
|
*/
|
|
528
533
|
'import/no-named-default'?: Linter.RuleEntry<[]>
|
|
529
534
|
/**
|
|
530
535
|
* Forbid named exports.
|
|
531
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
536
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-named-export.md
|
|
532
537
|
*/
|
|
533
538
|
'import/no-named-export'?: Linter.RuleEntry<[]>
|
|
534
539
|
/**
|
|
535
540
|
* Forbid namespace (a.k.a. "wildcard" `*`) imports.
|
|
536
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
541
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-namespace.md
|
|
537
542
|
*/
|
|
538
543
|
'import/no-namespace'?: Linter.RuleEntry<ImportNoNamespace>
|
|
539
544
|
/**
|
|
540
545
|
* Forbid Node.js builtin modules.
|
|
541
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
546
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-nodejs-modules.md
|
|
542
547
|
*/
|
|
543
548
|
'import/no-nodejs-modules'?: Linter.RuleEntry<ImportNoNodejsModules>
|
|
544
549
|
/**
|
|
545
550
|
* Forbid importing packages through relative paths.
|
|
546
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
551
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-relative-packages.md
|
|
547
552
|
*/
|
|
548
553
|
'import/no-relative-packages'?: Linter.RuleEntry<ImportNoRelativePackages>
|
|
549
554
|
/**
|
|
550
555
|
* Forbid importing modules from parent directories.
|
|
551
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
556
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-relative-parent-imports.md
|
|
552
557
|
*/
|
|
553
558
|
'import/no-relative-parent-imports'?: Linter.RuleEntry<ImportNoRelativeParentImports>
|
|
554
559
|
/**
|
|
555
560
|
* Enforce which files can be imported in a given folder.
|
|
556
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
561
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-restricted-paths.md
|
|
557
562
|
*/
|
|
558
563
|
'import/no-restricted-paths'?: Linter.RuleEntry<ImportNoRestrictedPaths>
|
|
559
564
|
/**
|
|
560
565
|
* Forbid a module from importing itself.
|
|
561
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
566
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-self-import.md
|
|
562
567
|
*/
|
|
563
568
|
'import/no-self-import'?: Linter.RuleEntry<[]>
|
|
564
569
|
/**
|
|
565
570
|
* Forbid unassigned imports.
|
|
566
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
571
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-unassigned-import.md
|
|
567
572
|
*/
|
|
568
573
|
'import/no-unassigned-import'?: Linter.RuleEntry<ImportNoUnassignedImport>
|
|
569
574
|
/**
|
|
570
575
|
* Ensure imports point to a file/module that can be resolved.
|
|
571
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
576
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-unresolved.md
|
|
572
577
|
*/
|
|
573
578
|
'import/no-unresolved'?: Linter.RuleEntry<ImportNoUnresolved>
|
|
574
579
|
/**
|
|
575
580
|
* Forbid modules without exports, or exports without matching import in another module.
|
|
576
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
581
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-unused-modules.md
|
|
577
582
|
*/
|
|
578
583
|
'import/no-unused-modules'?: Linter.RuleEntry<ImportNoUnusedModules>
|
|
579
584
|
/**
|
|
580
585
|
* Forbid unnecessary path segments in import and require statements.
|
|
581
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
586
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-useless-path-segments.md
|
|
582
587
|
*/
|
|
583
588
|
'import/no-useless-path-segments'?: Linter.RuleEntry<ImportNoUselessPathSegments>
|
|
584
589
|
/**
|
|
585
590
|
* Forbid webpack loader syntax in imports.
|
|
586
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
591
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-webpack-loader-syntax.md
|
|
587
592
|
*/
|
|
588
593
|
'import/no-webpack-loader-syntax'?: Linter.RuleEntry<[]>
|
|
589
594
|
/**
|
|
590
595
|
* Enforce a convention in module import order.
|
|
591
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
596
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/order.md
|
|
592
597
|
*/
|
|
593
598
|
'import/order'?: Linter.RuleEntry<ImportOrder>
|
|
594
599
|
/**
|
|
595
600
|
* Prefer a default export if module exports a single name or multiple names.
|
|
596
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
601
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/prefer-default-export.md
|
|
597
602
|
*/
|
|
598
603
|
'import/prefer-default-export'?: Linter.RuleEntry<ImportPreferDefaultExport>
|
|
599
604
|
/**
|
|
600
605
|
* Forbid potentially ambiguous parse goal (`script` vs. `module`).
|
|
601
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
606
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/unambiguous.md
|
|
602
607
|
*/
|
|
603
608
|
'import/unambiguous'?: Linter.RuleEntry<[]>
|
|
604
609
|
/**
|
|
@@ -2587,6 +2592,16 @@ interface RuleOptions {
|
|
|
2587
2592
|
*/
|
|
2588
2593
|
'react-naming-convention/use-state'?: Linter.RuleEntry<[]>
|
|
2589
2594
|
'react-refresh/only-export-components'?: Linter.RuleEntry<ReactRefreshOnlyExportComponents>
|
|
2595
|
+
/**
|
|
2596
|
+
* enforce boolean attributes notation in JSX
|
|
2597
|
+
* @see https://eslint-react.xyz/rules/avoid-shorthand-boolean
|
|
2598
|
+
*/
|
|
2599
|
+
'react/avoid-shorthand-boolean'?: Linter.RuleEntry<[]>
|
|
2600
|
+
/**
|
|
2601
|
+
* enforce using fragment component instead of shorthand fragment syntax
|
|
2602
|
+
* @see https://eslint-react.xyz/rules/avoid-shorthand-fragment
|
|
2603
|
+
*/
|
|
2604
|
+
'react/avoid-shorthand-fragment'?: Linter.RuleEntry<[]>
|
|
2590
2605
|
/**
|
|
2591
2606
|
* require all 'forwardRef' components include a 'ref' parameter
|
|
2592
2607
|
* @see https://eslint-react.xyz/rules/ensure-forward-ref-using-ref
|
|
@@ -5009,6 +5024,7 @@ interface RuleOptions {
|
|
|
5009
5024
|
/**
|
|
5010
5025
|
* Enforce using `@ts-expect-error` over `@ts-ignore`
|
|
5011
5026
|
* @see https://typescript-eslint.io/rules/prefer-ts-expect-error
|
|
5027
|
+
* @deprecated
|
|
5012
5028
|
*/
|
|
5013
5029
|
'ts/prefer-ts-expect-error'?: Linter.RuleEntry<[]>
|
|
5014
5030
|
/**
|
|
@@ -7114,6 +7130,8 @@ type AntfuConsistentListNewline = []|[{
|
|
|
7114
7130
|
ObjectPattern?: boolean
|
|
7115
7131
|
ArrayPattern?: boolean
|
|
7116
7132
|
JSXOpeningElement?: boolean
|
|
7133
|
+
JSONArrayExpression?: boolean
|
|
7134
|
+
JSONObjectExpression?: boolean
|
|
7117
7135
|
}]
|
|
7118
7136
|
// ----- antfu/indent-unindent -----
|
|
7119
7137
|
type AntfuIndentUnindent = []|[{
|
|
@@ -14781,6 +14799,7 @@ declare function getOverrides<K extends keyof OptionsConfig>(options: OptionsCon
|
|
|
14781
14799
|
'svelte/valid-prop-names-in-kit-pages'?: eslint.Linter.RuleEntry<[]> | undefined;
|
|
14782
14800
|
'accessor-pairs'?: eslint.Linter.RuleEntry<undefined> | undefined;
|
|
14783
14801
|
'antfu/consistent-list-newline'?: eslint.Linter.RuleEntry<undefined> | undefined;
|
|
14802
|
+
'antfu/curly'?: eslint.Linter.RuleEntry<[]> | undefined;
|
|
14784
14803
|
'antfu/if-newline'?: eslint.Linter.RuleEntry<[]> | undefined;
|
|
14785
14804
|
'antfu/import-dedupe'?: eslint.Linter.RuleEntry<[]> | undefined;
|
|
14786
14805
|
'antfu/indent-unindent'?: eslint.Linter.RuleEntry<undefined> | undefined;
|
|
@@ -15280,6 +15299,8 @@ declare function getOverrides<K extends keyof OptionsConfig>(options: OptionsCon
|
|
|
15280
15299
|
'react-naming-convention/filename-extension'?: eslint.Linter.RuleEntry<undefined> | undefined;
|
|
15281
15300
|
'react-naming-convention/use-state'?: eslint.Linter.RuleEntry<[]> | undefined;
|
|
15282
15301
|
'react-refresh/only-export-components'?: eslint.Linter.RuleEntry<undefined> | undefined;
|
|
15302
|
+
'react/avoid-shorthand-boolean'?: eslint.Linter.RuleEntry<[]> | undefined;
|
|
15303
|
+
'react/avoid-shorthand-fragment'?: eslint.Linter.RuleEntry<[]> | undefined;
|
|
15283
15304
|
'react/ensure-forward-ref-using-ref'?: eslint.Linter.RuleEntry<[]> | undefined;
|
|
15284
15305
|
'react/no-access-state-in-setstate'?: eslint.Linter.RuleEntry<[]> | undefined;
|
|
15285
15306
|
'react/no-array-index-key'?: eslint.Linter.RuleEntry<[]> | undefined;
|
package/dist/index.d.ts
CHANGED
|
@@ -20,6 +20,11 @@ interface RuleOptions {
|
|
|
20
20
|
* @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/consistent-list-newline.md
|
|
21
21
|
*/
|
|
22
22
|
'antfu/consistent-list-newline'?: Linter.RuleEntry<AntfuConsistentListNewline>
|
|
23
|
+
/**
|
|
24
|
+
* Enforce Anthony's style of curly bracket
|
|
25
|
+
* @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/curly.test.ts
|
|
26
|
+
*/
|
|
27
|
+
'antfu/curly'?: Linter.RuleEntry<[]>
|
|
23
28
|
/**
|
|
24
29
|
* Newline after if
|
|
25
30
|
* @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/if-newline.md
|
|
@@ -299,7 +304,7 @@ interface RuleOptions {
|
|
|
299
304
|
*/
|
|
300
305
|
'func-names'?: Linter.RuleEntry<FuncNames>
|
|
301
306
|
/**
|
|
302
|
-
* Enforce the consistent use of either `function` declarations or expressions
|
|
307
|
+
* Enforce the consistent use of either `function` declarations or expressions assigned to variables
|
|
303
308
|
* @see https://eslint.org/docs/latest/rules/func-style
|
|
304
309
|
*/
|
|
305
310
|
'func-style'?: Linter.RuleEntry<FuncStyle>
|
|
@@ -377,42 +382,42 @@ interface RuleOptions {
|
|
|
377
382
|
'implicit-arrow-linebreak'?: Linter.RuleEntry<ImplicitArrowLinebreak>
|
|
378
383
|
/**
|
|
379
384
|
* Enforce or ban the use of inline type-only markers for named imports.
|
|
380
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
385
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/consistent-type-specifier-style.md
|
|
381
386
|
*/
|
|
382
387
|
'import/consistent-type-specifier-style'?: Linter.RuleEntry<ImportConsistentTypeSpecifierStyle>
|
|
383
388
|
/**
|
|
384
389
|
* Ensure a default export is present, given a default import.
|
|
385
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
390
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/default.md
|
|
386
391
|
*/
|
|
387
392
|
'import/default'?: Linter.RuleEntry<[]>
|
|
388
393
|
/**
|
|
389
394
|
* Enforce a leading comment with the webpackChunkName for dynamic imports.
|
|
390
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
395
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/dynamic-import-chunkname.md
|
|
391
396
|
*/
|
|
392
397
|
'import/dynamic-import-chunkname'?: Linter.RuleEntry<ImportDynamicImportChunkname>
|
|
393
398
|
/**
|
|
394
399
|
* Forbid any invalid exports, i.e. re-export of the same name.
|
|
395
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
400
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/export.md
|
|
396
401
|
*/
|
|
397
402
|
'import/export'?: Linter.RuleEntry<[]>
|
|
398
403
|
/**
|
|
399
404
|
* Ensure all exports appear after other statements.
|
|
400
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
405
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/exports-last.md
|
|
401
406
|
*/
|
|
402
407
|
'import/exports-last'?: Linter.RuleEntry<[]>
|
|
403
408
|
/**
|
|
404
409
|
* Ensure consistent use of file extension within the import path.
|
|
405
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
410
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/extensions.md
|
|
406
411
|
*/
|
|
407
412
|
'import/extensions'?: Linter.RuleEntry<ImportExtensions>
|
|
408
413
|
/**
|
|
409
414
|
* Ensure all imports appear before other statements.
|
|
410
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
415
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/first.md
|
|
411
416
|
*/
|
|
412
417
|
'import/first'?: Linter.RuleEntry<ImportFirst>
|
|
413
418
|
/**
|
|
414
419
|
* Prefer named exports to be grouped together in a single export declaration.
|
|
415
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
420
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/group-exports.md
|
|
416
421
|
*/
|
|
417
422
|
'import/group-exports'?: Linter.RuleEntry<[]>
|
|
418
423
|
/**
|
|
@@ -423,182 +428,182 @@ interface RuleOptions {
|
|
|
423
428
|
'import/imports-first'?: Linter.RuleEntry<ImportImportsFirst>
|
|
424
429
|
/**
|
|
425
430
|
* Enforce the maximum number of dependencies a module can have.
|
|
426
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
431
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/max-dependencies.md
|
|
427
432
|
*/
|
|
428
433
|
'import/max-dependencies'?: Linter.RuleEntry<ImportMaxDependencies>
|
|
429
434
|
/**
|
|
430
435
|
* Ensure named imports correspond to a named export in the remote file.
|
|
431
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
436
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/named.md
|
|
432
437
|
*/
|
|
433
438
|
'import/named'?: Linter.RuleEntry<ImportNamed>
|
|
434
439
|
/**
|
|
435
440
|
* Ensure imported namespaces contain dereferenced properties as they are dereferenced.
|
|
436
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
441
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/namespace.md
|
|
437
442
|
*/
|
|
438
443
|
'import/namespace'?: Linter.RuleEntry<ImportNamespace>
|
|
439
444
|
/**
|
|
440
445
|
* Enforce a newline after import statements.
|
|
441
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
446
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/newline-after-import.md
|
|
442
447
|
*/
|
|
443
448
|
'import/newline-after-import'?: Linter.RuleEntry<ImportNewlineAfterImport>
|
|
444
449
|
/**
|
|
445
450
|
* Forbid import of modules using absolute paths.
|
|
446
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
451
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-absolute-path.md
|
|
447
452
|
*/
|
|
448
453
|
'import/no-absolute-path'?: Linter.RuleEntry<ImportNoAbsolutePath>
|
|
449
454
|
/**
|
|
450
455
|
* Forbid AMD `require` and `define` calls.
|
|
451
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
456
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-amd.md
|
|
452
457
|
*/
|
|
453
458
|
'import/no-amd'?: Linter.RuleEntry<[]>
|
|
454
459
|
/**
|
|
455
460
|
* Forbid anonymous values as default exports.
|
|
456
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
461
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-anonymous-default-export.md
|
|
457
462
|
*/
|
|
458
463
|
'import/no-anonymous-default-export'?: Linter.RuleEntry<ImportNoAnonymousDefaultExport>
|
|
459
464
|
/**
|
|
460
465
|
* Forbid CommonJS `require` calls and `module.exports` or `exports.*`.
|
|
461
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
466
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-commonjs.md
|
|
462
467
|
*/
|
|
463
468
|
'import/no-commonjs'?: Linter.RuleEntry<ImportNoCommonjs>
|
|
464
469
|
/**
|
|
465
470
|
* Forbid a module from importing a module with a dependency path back to itself.
|
|
466
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
471
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-cycle.md
|
|
467
472
|
*/
|
|
468
473
|
'import/no-cycle'?: Linter.RuleEntry<ImportNoCycle>
|
|
469
474
|
/**
|
|
470
475
|
* Forbid default exports.
|
|
471
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
476
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-default-export.md
|
|
472
477
|
*/
|
|
473
478
|
'import/no-default-export'?: Linter.RuleEntry<[]>
|
|
474
479
|
/**
|
|
475
480
|
* Forbid imported names marked with `@deprecated` documentation tag.
|
|
476
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
481
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-deprecated.md
|
|
477
482
|
*/
|
|
478
483
|
'import/no-deprecated'?: Linter.RuleEntry<[]>
|
|
479
484
|
/**
|
|
480
485
|
* Forbid repeated import of the same module in multiple places.
|
|
481
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
486
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-duplicates.md
|
|
482
487
|
*/
|
|
483
488
|
'import/no-duplicates'?: Linter.RuleEntry<ImportNoDuplicates>
|
|
484
489
|
/**
|
|
485
490
|
* Forbid `require()` calls with expressions.
|
|
486
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
491
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-dynamic-require.md
|
|
487
492
|
*/
|
|
488
493
|
'import/no-dynamic-require'?: Linter.RuleEntry<ImportNoDynamicRequire>
|
|
489
494
|
/**
|
|
490
495
|
* Forbid empty named import blocks.
|
|
491
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
496
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-empty-named-blocks.md
|
|
492
497
|
*/
|
|
493
498
|
'import/no-empty-named-blocks'?: Linter.RuleEntry<[]>
|
|
494
499
|
/**
|
|
495
500
|
* Forbid the use of extraneous packages.
|
|
496
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
501
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-extraneous-dependencies.md
|
|
497
502
|
*/
|
|
498
503
|
'import/no-extraneous-dependencies'?: Linter.RuleEntry<ImportNoExtraneousDependencies>
|
|
499
504
|
/**
|
|
500
505
|
* Forbid import statements with CommonJS module.exports.
|
|
501
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
506
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-import-module-exports.md
|
|
502
507
|
*/
|
|
503
508
|
'import/no-import-module-exports'?: Linter.RuleEntry<ImportNoImportModuleExports>
|
|
504
509
|
/**
|
|
505
510
|
* Forbid importing the submodules of other modules.
|
|
506
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
511
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-internal-modules.md
|
|
507
512
|
*/
|
|
508
513
|
'import/no-internal-modules'?: Linter.RuleEntry<ImportNoInternalModules>
|
|
509
514
|
/**
|
|
510
515
|
* Forbid the use of mutable exports with `var` or `let`.
|
|
511
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
516
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-mutable-exports.md
|
|
512
517
|
*/
|
|
513
518
|
'import/no-mutable-exports'?: Linter.RuleEntry<[]>
|
|
514
519
|
/**
|
|
515
520
|
* Forbid use of exported name as identifier of default export.
|
|
516
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
521
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-named-as-default.md
|
|
517
522
|
*/
|
|
518
523
|
'import/no-named-as-default'?: Linter.RuleEntry<[]>
|
|
519
524
|
/**
|
|
520
525
|
* Forbid use of exported name as property of default export.
|
|
521
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
526
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-named-as-default-member.md
|
|
522
527
|
*/
|
|
523
528
|
'import/no-named-as-default-member'?: Linter.RuleEntry<[]>
|
|
524
529
|
/**
|
|
525
530
|
* Forbid named default exports.
|
|
526
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
531
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-named-default.md
|
|
527
532
|
*/
|
|
528
533
|
'import/no-named-default'?: Linter.RuleEntry<[]>
|
|
529
534
|
/**
|
|
530
535
|
* Forbid named exports.
|
|
531
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
536
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-named-export.md
|
|
532
537
|
*/
|
|
533
538
|
'import/no-named-export'?: Linter.RuleEntry<[]>
|
|
534
539
|
/**
|
|
535
540
|
* Forbid namespace (a.k.a. "wildcard" `*`) imports.
|
|
536
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
541
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-namespace.md
|
|
537
542
|
*/
|
|
538
543
|
'import/no-namespace'?: Linter.RuleEntry<ImportNoNamespace>
|
|
539
544
|
/**
|
|
540
545
|
* Forbid Node.js builtin modules.
|
|
541
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
546
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-nodejs-modules.md
|
|
542
547
|
*/
|
|
543
548
|
'import/no-nodejs-modules'?: Linter.RuleEntry<ImportNoNodejsModules>
|
|
544
549
|
/**
|
|
545
550
|
* Forbid importing packages through relative paths.
|
|
546
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
551
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-relative-packages.md
|
|
547
552
|
*/
|
|
548
553
|
'import/no-relative-packages'?: Linter.RuleEntry<ImportNoRelativePackages>
|
|
549
554
|
/**
|
|
550
555
|
* Forbid importing modules from parent directories.
|
|
551
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
556
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-relative-parent-imports.md
|
|
552
557
|
*/
|
|
553
558
|
'import/no-relative-parent-imports'?: Linter.RuleEntry<ImportNoRelativeParentImports>
|
|
554
559
|
/**
|
|
555
560
|
* Enforce which files can be imported in a given folder.
|
|
556
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
561
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-restricted-paths.md
|
|
557
562
|
*/
|
|
558
563
|
'import/no-restricted-paths'?: Linter.RuleEntry<ImportNoRestrictedPaths>
|
|
559
564
|
/**
|
|
560
565
|
* Forbid a module from importing itself.
|
|
561
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
566
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-self-import.md
|
|
562
567
|
*/
|
|
563
568
|
'import/no-self-import'?: Linter.RuleEntry<[]>
|
|
564
569
|
/**
|
|
565
570
|
* Forbid unassigned imports.
|
|
566
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
571
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-unassigned-import.md
|
|
567
572
|
*/
|
|
568
573
|
'import/no-unassigned-import'?: Linter.RuleEntry<ImportNoUnassignedImport>
|
|
569
574
|
/**
|
|
570
575
|
* Ensure imports point to a file/module that can be resolved.
|
|
571
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
576
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-unresolved.md
|
|
572
577
|
*/
|
|
573
578
|
'import/no-unresolved'?: Linter.RuleEntry<ImportNoUnresolved>
|
|
574
579
|
/**
|
|
575
580
|
* Forbid modules without exports, or exports without matching import in another module.
|
|
576
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
581
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-unused-modules.md
|
|
577
582
|
*/
|
|
578
583
|
'import/no-unused-modules'?: Linter.RuleEntry<ImportNoUnusedModules>
|
|
579
584
|
/**
|
|
580
585
|
* Forbid unnecessary path segments in import and require statements.
|
|
581
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
586
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-useless-path-segments.md
|
|
582
587
|
*/
|
|
583
588
|
'import/no-useless-path-segments'?: Linter.RuleEntry<ImportNoUselessPathSegments>
|
|
584
589
|
/**
|
|
585
590
|
* Forbid webpack loader syntax in imports.
|
|
586
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
591
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-webpack-loader-syntax.md
|
|
587
592
|
*/
|
|
588
593
|
'import/no-webpack-loader-syntax'?: Linter.RuleEntry<[]>
|
|
589
594
|
/**
|
|
590
595
|
* Enforce a convention in module import order.
|
|
591
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
596
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/order.md
|
|
592
597
|
*/
|
|
593
598
|
'import/order'?: Linter.RuleEntry<ImportOrder>
|
|
594
599
|
/**
|
|
595
600
|
* Prefer a default export if module exports a single name or multiple names.
|
|
596
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
601
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/prefer-default-export.md
|
|
597
602
|
*/
|
|
598
603
|
'import/prefer-default-export'?: Linter.RuleEntry<ImportPreferDefaultExport>
|
|
599
604
|
/**
|
|
600
605
|
* Forbid potentially ambiguous parse goal (`script` vs. `module`).
|
|
601
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
606
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/unambiguous.md
|
|
602
607
|
*/
|
|
603
608
|
'import/unambiguous'?: Linter.RuleEntry<[]>
|
|
604
609
|
/**
|
|
@@ -2587,6 +2592,16 @@ interface RuleOptions {
|
|
|
2587
2592
|
*/
|
|
2588
2593
|
'react-naming-convention/use-state'?: Linter.RuleEntry<[]>
|
|
2589
2594
|
'react-refresh/only-export-components'?: Linter.RuleEntry<ReactRefreshOnlyExportComponents>
|
|
2595
|
+
/**
|
|
2596
|
+
* enforce boolean attributes notation in JSX
|
|
2597
|
+
* @see https://eslint-react.xyz/rules/avoid-shorthand-boolean
|
|
2598
|
+
*/
|
|
2599
|
+
'react/avoid-shorthand-boolean'?: Linter.RuleEntry<[]>
|
|
2600
|
+
/**
|
|
2601
|
+
* enforce using fragment component instead of shorthand fragment syntax
|
|
2602
|
+
* @see https://eslint-react.xyz/rules/avoid-shorthand-fragment
|
|
2603
|
+
*/
|
|
2604
|
+
'react/avoid-shorthand-fragment'?: Linter.RuleEntry<[]>
|
|
2590
2605
|
/**
|
|
2591
2606
|
* require all 'forwardRef' components include a 'ref' parameter
|
|
2592
2607
|
* @see https://eslint-react.xyz/rules/ensure-forward-ref-using-ref
|
|
@@ -5009,6 +5024,7 @@ interface RuleOptions {
|
|
|
5009
5024
|
/**
|
|
5010
5025
|
* Enforce using `@ts-expect-error` over `@ts-ignore`
|
|
5011
5026
|
* @see https://typescript-eslint.io/rules/prefer-ts-expect-error
|
|
5027
|
+
* @deprecated
|
|
5012
5028
|
*/
|
|
5013
5029
|
'ts/prefer-ts-expect-error'?: Linter.RuleEntry<[]>
|
|
5014
5030
|
/**
|
|
@@ -7114,6 +7130,8 @@ type AntfuConsistentListNewline = []|[{
|
|
|
7114
7130
|
ObjectPattern?: boolean
|
|
7115
7131
|
ArrayPattern?: boolean
|
|
7116
7132
|
JSXOpeningElement?: boolean
|
|
7133
|
+
JSONArrayExpression?: boolean
|
|
7134
|
+
JSONObjectExpression?: boolean
|
|
7117
7135
|
}]
|
|
7118
7136
|
// ----- antfu/indent-unindent -----
|
|
7119
7137
|
type AntfuIndentUnindent = []|[{
|
|
@@ -14781,6 +14799,7 @@ declare function getOverrides<K extends keyof OptionsConfig>(options: OptionsCon
|
|
|
14781
14799
|
'svelte/valid-prop-names-in-kit-pages'?: eslint.Linter.RuleEntry<[]> | undefined;
|
|
14782
14800
|
'accessor-pairs'?: eslint.Linter.RuleEntry<undefined> | undefined;
|
|
14783
14801
|
'antfu/consistent-list-newline'?: eslint.Linter.RuleEntry<undefined> | undefined;
|
|
14802
|
+
'antfu/curly'?: eslint.Linter.RuleEntry<[]> | undefined;
|
|
14784
14803
|
'antfu/if-newline'?: eslint.Linter.RuleEntry<[]> | undefined;
|
|
14785
14804
|
'antfu/import-dedupe'?: eslint.Linter.RuleEntry<[]> | undefined;
|
|
14786
14805
|
'antfu/indent-unindent'?: eslint.Linter.RuleEntry<undefined> | undefined;
|
|
@@ -15280,6 +15299,8 @@ declare function getOverrides<K extends keyof OptionsConfig>(options: OptionsCon
|
|
|
15280
15299
|
'react-naming-convention/filename-extension'?: eslint.Linter.RuleEntry<undefined> | undefined;
|
|
15281
15300
|
'react-naming-convention/use-state'?: eslint.Linter.RuleEntry<[]> | undefined;
|
|
15282
15301
|
'react-refresh/only-export-components'?: eslint.Linter.RuleEntry<undefined> | undefined;
|
|
15302
|
+
'react/avoid-shorthand-boolean'?: eslint.Linter.RuleEntry<[]> | undefined;
|
|
15303
|
+
'react/avoid-shorthand-fragment'?: eslint.Linter.RuleEntry<[]> | undefined;
|
|
15283
15304
|
'react/ensure-forward-ref-using-ref'?: eslint.Linter.RuleEntry<[]> | undefined;
|
|
15284
15305
|
'react/no-access-state-in-setstate'?: eslint.Linter.RuleEntry<[]> | undefined;
|
|
15285
15306
|
'react/no-array-index-key'?: eslint.Linter.RuleEntry<[]> | undefined;
|
package/dist/index.js
CHANGED
|
@@ -313,15 +313,7 @@ async function javascript(options = {}) {
|
|
|
313
313
|
allowTernary: true
|
|
314
314
|
}
|
|
315
315
|
],
|
|
316
|
-
"no-unused-vars":
|
|
317
|
-
"error",
|
|
318
|
-
{
|
|
319
|
-
args: "none",
|
|
320
|
-
caughtErrors: "none",
|
|
321
|
-
ignoreRestSiblings: true,
|
|
322
|
-
vars: "all"
|
|
323
|
-
}
|
|
324
|
-
],
|
|
316
|
+
"no-unused-vars": "off",
|
|
325
317
|
"no-use-before-define": [
|
|
326
318
|
"error",
|
|
327
319
|
{ classes: false, functions: false, variables: true }
|
|
@@ -359,7 +351,7 @@ async function javascript(options = {}) {
|
|
|
359
351
|
}
|
|
360
352
|
],
|
|
361
353
|
"prefer-exponentiation-operator": "error",
|
|
362
|
-
|
|
354
|
+
// 'prefer-promise-reject-errors': 'error',
|
|
363
355
|
"prefer-regex-literals": ["error", { disallowRedundantWrapping: true }],
|
|
364
356
|
"prefer-rest-params": "error",
|
|
365
357
|
"prefer-spread": "error",
|
|
@@ -911,9 +903,9 @@ async function stylistic(options = {}) {
|
|
|
911
903
|
rules: {
|
|
912
904
|
...config.rules,
|
|
913
905
|
"antfu/consistent-list-newline": "error",
|
|
906
|
+
"antfu/curly": "error",
|
|
914
907
|
"antfu/if-newline": "warn",
|
|
915
908
|
"antfu/top-level-function": "warn",
|
|
916
|
-
"curly": ["error", "multi-or-nest", "consistent"],
|
|
917
909
|
...overrides
|
|
918
910
|
}
|
|
919
911
|
}
|
|
@@ -950,6 +942,7 @@ async function typescript(options = {}) {
|
|
|
950
942
|
"ts/no-unsafe-return": "error",
|
|
951
943
|
"ts/restrict-plus-operands": "error",
|
|
952
944
|
"ts/restrict-template-expressions": "error",
|
|
945
|
+
"ts/strict-boolean-expressions": "error",
|
|
953
946
|
"ts/unbound-method": "error"
|
|
954
947
|
};
|
|
955
948
|
const [pluginTs, parserTs] = await Promise.all([
|
|
@@ -1940,6 +1933,8 @@ async function defineConfig(options = {}, ...userConfigs) {
|
|
|
1940
1933
|
}
|
|
1941
1934
|
}
|
|
1942
1935
|
}
|
|
1936
|
+
const typescriptOptions = resolveSubOptions(options, "typescript");
|
|
1937
|
+
const tsconfigPath = "tsconfigPath" in typescriptOptions ? typescriptOptions.tsconfigPath : void 0;
|
|
1943
1938
|
configs2.push(
|
|
1944
1939
|
ignores(),
|
|
1945
1940
|
javascript({
|
|
@@ -1964,7 +1959,7 @@ async function defineConfig(options = {}, ...userConfigs) {
|
|
|
1964
1959
|
if (enableTypeScript) {
|
|
1965
1960
|
configs2.push(
|
|
1966
1961
|
typescript({
|
|
1967
|
-
...
|
|
1962
|
+
...typescriptOptions,
|
|
1968
1963
|
componentExts,
|
|
1969
1964
|
overrides: getOverrides(options, "typescript")
|
|
1970
1965
|
})
|
|
@@ -2002,7 +1997,7 @@ async function defineConfig(options = {}, ...userConfigs) {
|
|
|
2002
1997
|
configs2.push(
|
|
2003
1998
|
react({
|
|
2004
1999
|
overrides: getOverrides(options, "react"),
|
|
2005
|
-
tsconfigPath
|
|
2000
|
+
tsconfigPath
|
|
2006
2001
|
})
|
|
2007
2002
|
);
|
|
2008
2003
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coderwyd/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.5.
|
|
4
|
+
"version": "2.5.4",
|
|
5
5
|
"description": "Donny's ESLint config",
|
|
6
6
|
"author": "Donny Wang <donny526@outlook.com> (https://github.com/coderwyd/)",
|
|
7
7
|
"license": "MIT",
|
|
@@ -71,17 +71,17 @@
|
|
|
71
71
|
"@antfu/install-pkg": "^0.3.3",
|
|
72
72
|
"@stylistic/eslint-plugin": "^2.1.0",
|
|
73
73
|
"@toml-tools/parser": "^1.0.0",
|
|
74
|
-
"@typescript-eslint/eslint-plugin": "^7.
|
|
75
|
-
"@typescript-eslint/parser": "^7.
|
|
74
|
+
"@typescript-eslint/eslint-plugin": "^7.11.0",
|
|
75
|
+
"@typescript-eslint/parser": "^7.11.0",
|
|
76
76
|
"eslint-config-flat-gitignore": "^0.1.5",
|
|
77
77
|
"eslint-merge-processors": "^0.1.0",
|
|
78
|
-
"eslint-plugin-antfu": "^2.
|
|
78
|
+
"eslint-plugin-antfu": "^2.3.3",
|
|
79
79
|
"eslint-plugin-command": "^0.2.3",
|
|
80
80
|
"eslint-plugin-eslint-comments": "^3.2.0",
|
|
81
81
|
"eslint-plugin-format": "^0.1.1",
|
|
82
|
-
"eslint-plugin-import-x": "^0.5.
|
|
83
|
-
"eslint-plugin-jsdoc": "^48.2.
|
|
84
|
-
"eslint-plugin-jsonc": "^2.
|
|
82
|
+
"eslint-plugin-import-x": "^0.5.1",
|
|
83
|
+
"eslint-plugin-jsdoc": "^48.2.7",
|
|
84
|
+
"eslint-plugin-jsonc": "^2.16.0",
|
|
85
85
|
"eslint-plugin-n": "^17.7.0",
|
|
86
86
|
"eslint-plugin-no-only-tests": "^3.1.0",
|
|
87
87
|
"eslint-plugin-perfectionist": "^2.10.0",
|
|
@@ -99,37 +99,36 @@
|
|
|
99
99
|
"picocolors": "^1.0.1",
|
|
100
100
|
"prettier-plugin-toml": "^2.0.1",
|
|
101
101
|
"prompts": "^2.4.2",
|
|
102
|
-
"vue-eslint-parser": "^9.4.
|
|
102
|
+
"vue-eslint-parser": "^9.4.3",
|
|
103
103
|
"yargs": "^17.7.2"
|
|
104
104
|
},
|
|
105
105
|
"devDependencies": {
|
|
106
106
|
"@antfu/ni": "^0.21.12",
|
|
107
|
-
"@eslint-react/eslint-plugin": "^1.5.
|
|
108
|
-
"@eslint/config-inspector": "^0.4.
|
|
107
|
+
"@eslint-react/eslint-plugin": "^1.5.14",
|
|
108
|
+
"@eslint/config-inspector": "^0.4.10",
|
|
109
109
|
"@stylistic/eslint-plugin-migrate": "^2.1.0",
|
|
110
110
|
"@types/eslint": "^8.56.10",
|
|
111
111
|
"@types/fs-extra": "^11.0.4",
|
|
112
|
-
"@types/node": "^20.
|
|
112
|
+
"@types/node": "^20.14.0",
|
|
113
113
|
"@types/prompts": "^2.4.9",
|
|
114
114
|
"@types/yargs": "^17.0.32",
|
|
115
|
-
"@unocss/eslint-plugin": "^0.60.
|
|
115
|
+
"@unocss/eslint-plugin": "^0.60.4",
|
|
116
116
|
"bumpp": "^9.4.1",
|
|
117
|
-
"eslint": "^9.
|
|
118
|
-
"eslint-plugin-react": "^7.34.1",
|
|
117
|
+
"eslint": "^9.4.0",
|
|
119
118
|
"eslint-plugin-react-hooks": "^4.6.2",
|
|
120
119
|
"eslint-plugin-react-refresh": "^0.4.7",
|
|
121
120
|
"eslint-plugin-svelte": "2.39.0",
|
|
122
|
-
"eslint-plugin-tailwindcss": "^3.
|
|
121
|
+
"eslint-plugin-tailwindcss": "^3.17.0",
|
|
123
122
|
"execa": "^9.1.0",
|
|
124
123
|
"fast-glob": "^3.3.2",
|
|
125
124
|
"fs-extra": "^11.2.0",
|
|
126
|
-
"lint-staged": "^15.2.
|
|
125
|
+
"lint-staged": "^15.2.5",
|
|
127
126
|
"rimraf": "^5.0.7",
|
|
128
127
|
"simple-git-hooks": "^2.11.1",
|
|
129
128
|
"svelte": "^4.2.17",
|
|
130
129
|
"svelte-eslint-parser": "^0.36.0",
|
|
131
130
|
"tsup": "^8.0.2",
|
|
132
|
-
"tsx": "^4.
|
|
131
|
+
"tsx": "^4.11.0",
|
|
133
132
|
"typescript": "^5.4.5"
|
|
134
133
|
},
|
|
135
134
|
"simple-git-hooks": {
|