@coderwyd/eslint-config 2.0.1 → 2.0.3
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 +5 -5
- package/dist/cli.js +5 -5
- package/dist/index.cjs +4 -21
- package/dist/index.js +4 -21
- package/package.json +14 -14
package/dist/cli.cjs
CHANGED
|
@@ -46,18 +46,18 @@ 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.0.
|
|
49
|
+
var version = "2.0.3";
|
|
50
50
|
var devDependencies = {
|
|
51
51
|
"@antfu/ni": "^0.21.12",
|
|
52
|
-
"@types/eslint": "^8.56.
|
|
52
|
+
"@types/eslint": "^8.56.2",
|
|
53
53
|
"@types/fs-extra": "^11.0.4",
|
|
54
|
-
"@types/node": "^20.10.
|
|
54
|
+
"@types/node": "^20.10.8",
|
|
55
55
|
"@types/prompts": "^2.4.9",
|
|
56
56
|
"@types/yargs": "^17.0.32",
|
|
57
|
-
"@unocss/eslint-plugin": "^0.58.
|
|
57
|
+
"@unocss/eslint-plugin": "^0.58.3",
|
|
58
58
|
bumpp: "^9.2.1",
|
|
59
59
|
eslint: "^8.56.0",
|
|
60
|
-
"eslint-flat-config-viewer": "^0.1.
|
|
60
|
+
"eslint-flat-config-viewer": "^0.1.8",
|
|
61
61
|
"eslint-plugin-react": "^7.33.2",
|
|
62
62
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
63
63
|
"eslint-plugin-react-refresh": "^0.4.5",
|
package/dist/cli.js
CHANGED
|
@@ -17,18 +17,18 @@ import parse from "parse-gitignore";
|
|
|
17
17
|
import c from "picocolors";
|
|
18
18
|
|
|
19
19
|
// package.json
|
|
20
|
-
var version = "2.0.
|
|
20
|
+
var version = "2.0.3";
|
|
21
21
|
var devDependencies = {
|
|
22
22
|
"@antfu/ni": "^0.21.12",
|
|
23
|
-
"@types/eslint": "^8.56.
|
|
23
|
+
"@types/eslint": "^8.56.2",
|
|
24
24
|
"@types/fs-extra": "^11.0.4",
|
|
25
|
-
"@types/node": "^20.10.
|
|
25
|
+
"@types/node": "^20.10.8",
|
|
26
26
|
"@types/prompts": "^2.4.9",
|
|
27
27
|
"@types/yargs": "^17.0.32",
|
|
28
|
-
"@unocss/eslint-plugin": "^0.58.
|
|
28
|
+
"@unocss/eslint-plugin": "^0.58.3",
|
|
29
29
|
bumpp: "^9.2.1",
|
|
30
30
|
eslint: "^8.56.0",
|
|
31
|
-
"eslint-flat-config-viewer": "^0.1.
|
|
31
|
+
"eslint-flat-config-viewer": "^0.1.8",
|
|
32
32
|
"eslint-plugin-react": "^7.33.2",
|
|
33
33
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
34
34
|
"eslint-plugin-react-refresh": "^0.4.5",
|
package/dist/index.cjs
CHANGED
|
@@ -159,9 +159,9 @@ async function imports() {
|
|
|
159
159
|
"error",
|
|
160
160
|
{ considerComments: true, count: 1 }
|
|
161
161
|
],
|
|
162
|
-
"import/no-default-export": "error",
|
|
163
162
|
"import/no-duplicates": "error",
|
|
164
163
|
"import/no-mutable-exports": "error",
|
|
164
|
+
"import/no-named-default": "error",
|
|
165
165
|
"import/no-self-import": "error",
|
|
166
166
|
"import/no-webpack-loader-syntax": "error",
|
|
167
167
|
"import/order": [
|
|
@@ -544,7 +544,6 @@ async function jsdoc() {
|
|
|
544
544
|
{
|
|
545
545
|
name: "coderwyd:jsdoc",
|
|
546
546
|
plugins: {
|
|
547
|
-
// @ts-expect-error missing types
|
|
548
547
|
jsdoc: await interopDefault(import("eslint-plugin-jsdoc"))
|
|
549
548
|
},
|
|
550
549
|
rules: {
|
|
@@ -563,11 +562,6 @@ async function jsdoc() {
|
|
|
563
562
|
"jsdoc/require-returns-check": "warn",
|
|
564
563
|
"jsdoc/require-returns-description": "warn",
|
|
565
564
|
"jsdoc/require-yields-check": "warn"
|
|
566
|
-
// style
|
|
567
|
-
// ...{
|
|
568
|
-
// 'jsdoc/check-alignment': 'warn',
|
|
569
|
-
// 'jsdoc/multiline-blocks': 'warn',
|
|
570
|
-
// }
|
|
571
565
|
}
|
|
572
566
|
}
|
|
573
567
|
];
|
|
@@ -620,19 +614,6 @@ async function jsonc(options = {}) {
|
|
|
620
614
|
"jsonc/space-unary-ops": "error",
|
|
621
615
|
"jsonc/valid-json-number": "error",
|
|
622
616
|
"jsonc/vue-custom-block/no-parsing-error": "error",
|
|
623
|
-
// style
|
|
624
|
-
// ...{
|
|
625
|
-
// 'jsonc/array-bracket-spacing': ['error', 'never'],
|
|
626
|
-
// 'jsonc/comma-dangle': ['error', 'never'],
|
|
627
|
-
// 'jsonc/comma-style': ['error', 'last'],
|
|
628
|
-
// 'jsonc/indent': ['error', indent],
|
|
629
|
-
// 'jsonc/key-spacing': ['error', { afterColon: true, beforeColon: false }],
|
|
630
|
-
// 'jsonc/object-curly-newline': ['error', { consistent: true, multiline: true }],
|
|
631
|
-
// 'jsonc/object-curly-spacing': ['error', 'always'],
|
|
632
|
-
// 'jsonc/object-property-newline': ['error', { allowMultiplePropertiesPerLine: true }],
|
|
633
|
-
// 'jsonc/quote-props': 'error',
|
|
634
|
-
// 'jsonc/quotes': 'error',
|
|
635
|
-
// },
|
|
636
617
|
...overrides
|
|
637
618
|
}
|
|
638
619
|
}
|
|
@@ -1494,7 +1475,8 @@ async function defineConfig(options = {}, ...userConfigs) {
|
|
|
1494
1475
|
configs.push(
|
|
1495
1476
|
typescript({
|
|
1496
1477
|
...resolveSubOptions(options, "typescript"),
|
|
1497
|
-
componentExts
|
|
1478
|
+
componentExts,
|
|
1479
|
+
overrides: getOverrides(options, "typescript")
|
|
1498
1480
|
})
|
|
1499
1481
|
);
|
|
1500
1482
|
}
|
|
@@ -1510,6 +1492,7 @@ async function defineConfig(options = {}, ...userConfigs) {
|
|
|
1510
1492
|
configs.push(
|
|
1511
1493
|
vue({
|
|
1512
1494
|
...resolveSubOptions(options, "vue"),
|
|
1495
|
+
overrides: getOverrides(options, "typescript"),
|
|
1513
1496
|
typescript: !!enableTypeScript
|
|
1514
1497
|
})
|
|
1515
1498
|
);
|
package/dist/index.js
CHANGED
|
@@ -125,9 +125,9 @@ async function imports() {
|
|
|
125
125
|
"error",
|
|
126
126
|
{ considerComments: true, count: 1 }
|
|
127
127
|
],
|
|
128
|
-
"import/no-default-export": "error",
|
|
129
128
|
"import/no-duplicates": "error",
|
|
130
129
|
"import/no-mutable-exports": "error",
|
|
130
|
+
"import/no-named-default": "error",
|
|
131
131
|
"import/no-self-import": "error",
|
|
132
132
|
"import/no-webpack-loader-syntax": "error",
|
|
133
133
|
"import/order": [
|
|
@@ -510,7 +510,6 @@ async function jsdoc() {
|
|
|
510
510
|
{
|
|
511
511
|
name: "coderwyd:jsdoc",
|
|
512
512
|
plugins: {
|
|
513
|
-
// @ts-expect-error missing types
|
|
514
513
|
jsdoc: await interopDefault(import("eslint-plugin-jsdoc"))
|
|
515
514
|
},
|
|
516
515
|
rules: {
|
|
@@ -529,11 +528,6 @@ async function jsdoc() {
|
|
|
529
528
|
"jsdoc/require-returns-check": "warn",
|
|
530
529
|
"jsdoc/require-returns-description": "warn",
|
|
531
530
|
"jsdoc/require-yields-check": "warn"
|
|
532
|
-
// style
|
|
533
|
-
// ...{
|
|
534
|
-
// 'jsdoc/check-alignment': 'warn',
|
|
535
|
-
// 'jsdoc/multiline-blocks': 'warn',
|
|
536
|
-
// }
|
|
537
531
|
}
|
|
538
532
|
}
|
|
539
533
|
];
|
|
@@ -586,19 +580,6 @@ async function jsonc(options = {}) {
|
|
|
586
580
|
"jsonc/space-unary-ops": "error",
|
|
587
581
|
"jsonc/valid-json-number": "error",
|
|
588
582
|
"jsonc/vue-custom-block/no-parsing-error": "error",
|
|
589
|
-
// style
|
|
590
|
-
// ...{
|
|
591
|
-
// 'jsonc/array-bracket-spacing': ['error', 'never'],
|
|
592
|
-
// 'jsonc/comma-dangle': ['error', 'never'],
|
|
593
|
-
// 'jsonc/comma-style': ['error', 'last'],
|
|
594
|
-
// 'jsonc/indent': ['error', indent],
|
|
595
|
-
// 'jsonc/key-spacing': ['error', { afterColon: true, beforeColon: false }],
|
|
596
|
-
// 'jsonc/object-curly-newline': ['error', { consistent: true, multiline: true }],
|
|
597
|
-
// 'jsonc/object-curly-spacing': ['error', 'always'],
|
|
598
|
-
// 'jsonc/object-property-newline': ['error', { allowMultiplePropertiesPerLine: true }],
|
|
599
|
-
// 'jsonc/quote-props': 'error',
|
|
600
|
-
// 'jsonc/quotes': 'error',
|
|
601
|
-
// },
|
|
602
583
|
...overrides
|
|
603
584
|
}
|
|
604
585
|
}
|
|
@@ -1460,7 +1441,8 @@ async function defineConfig(options = {}, ...userConfigs) {
|
|
|
1460
1441
|
configs.push(
|
|
1461
1442
|
typescript({
|
|
1462
1443
|
...resolveSubOptions(options, "typescript"),
|
|
1463
|
-
componentExts
|
|
1444
|
+
componentExts,
|
|
1445
|
+
overrides: getOverrides(options, "typescript")
|
|
1464
1446
|
})
|
|
1465
1447
|
);
|
|
1466
1448
|
}
|
|
@@ -1476,6 +1458,7 @@ async function defineConfig(options = {}, ...userConfigs) {
|
|
|
1476
1458
|
configs.push(
|
|
1477
1459
|
vue({
|
|
1478
1460
|
...resolveSubOptions(options, "vue"),
|
|
1461
|
+
overrides: getOverrides(options, "typescript"),
|
|
1479
1462
|
typescript: !!enableTypeScript
|
|
1480
1463
|
})
|
|
1481
1464
|
);
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coderwyd/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.0.
|
|
5
|
-
"packageManager": "pnpm@8.
|
|
4
|
+
"version": "2.0.3",
|
|
5
|
+
"packageManager": "pnpm@8.14.1",
|
|
6
6
|
"description": "Donny's ESLint config",
|
|
7
7
|
"author": "Donny Wang <donny526@outlook.com> (https://github.com/coderwyd/)",
|
|
8
8
|
"license": "MIT",
|
|
@@ -55,23 +55,23 @@
|
|
|
55
55
|
"dependencies": {
|
|
56
56
|
"@antfu/eslint-define-config": "1.23.0-2",
|
|
57
57
|
"@antfu/install-pkg": "^0.3.1",
|
|
58
|
-
"@eslint-types/jsdoc": "
|
|
59
|
-
"@eslint-types/typescript-eslint": "^6.
|
|
58
|
+
"@eslint-types/jsdoc": "48.0.2",
|
|
59
|
+
"@eslint-types/typescript-eslint": "^6.17.0",
|
|
60
60
|
"@eslint-types/unicorn": "^50.0.1",
|
|
61
61
|
"@toml-tools/parser": "^1.0.0",
|
|
62
|
-
"@typescript-eslint/eslint-plugin": "^6.
|
|
63
|
-
"@typescript-eslint/parser": "^6.
|
|
62
|
+
"@typescript-eslint/eslint-plugin": "^6.18.1",
|
|
63
|
+
"@typescript-eslint/parser": "^6.18.1",
|
|
64
64
|
"eslint-config-flat-gitignore": "^0.1.2",
|
|
65
65
|
"eslint-config-prettier": "^9.1.0",
|
|
66
66
|
"eslint-plugin-antfu": "^2.1.1",
|
|
67
67
|
"eslint-plugin-eslint-comments": "^3.2.0",
|
|
68
68
|
"eslint-plugin-i": "^2.29.1",
|
|
69
|
-
"eslint-plugin-jsdoc": "^
|
|
69
|
+
"eslint-plugin-jsdoc": "^48.0.2",
|
|
70
70
|
"eslint-plugin-jsonc": "^2.11.2",
|
|
71
|
-
"eslint-plugin-n": "^16.6.
|
|
71
|
+
"eslint-plugin-n": "^16.6.2",
|
|
72
72
|
"eslint-plugin-no-only-tests": "^3.1.0",
|
|
73
73
|
"eslint-plugin-perfectionist": "^2.5.0",
|
|
74
|
-
"eslint-plugin-prettier": "^5.1.
|
|
74
|
+
"eslint-plugin-prettier": "^5.1.3",
|
|
75
75
|
"eslint-plugin-unicorn": "^50.0.1",
|
|
76
76
|
"eslint-plugin-unused-imports": "^3.0.0",
|
|
77
77
|
"eslint-plugin-vitest": "^0.3.20",
|
|
@@ -84,20 +84,20 @@
|
|
|
84
84
|
"prettier": "^3.1.1",
|
|
85
85
|
"prettier-plugin-toml": "^2.0.1",
|
|
86
86
|
"prompts": "^2.4.2",
|
|
87
|
-
"vue-eslint-parser": "^9.
|
|
87
|
+
"vue-eslint-parser": "^9.4.0",
|
|
88
88
|
"yargs": "^17.7.2"
|
|
89
89
|
},
|
|
90
90
|
"devDependencies": {
|
|
91
91
|
"@antfu/ni": "^0.21.12",
|
|
92
|
-
"@types/eslint": "^8.56.
|
|
92
|
+
"@types/eslint": "^8.56.2",
|
|
93
93
|
"@types/fs-extra": "^11.0.4",
|
|
94
|
-
"@types/node": "^20.10.
|
|
94
|
+
"@types/node": "^20.10.8",
|
|
95
95
|
"@types/prompts": "^2.4.9",
|
|
96
96
|
"@types/yargs": "^17.0.32",
|
|
97
|
-
"@unocss/eslint-plugin": "^0.58.
|
|
97
|
+
"@unocss/eslint-plugin": "^0.58.3",
|
|
98
98
|
"bumpp": "^9.2.1",
|
|
99
99
|
"eslint": "^8.56.0",
|
|
100
|
-
"eslint-flat-config-viewer": "^0.1.
|
|
100
|
+
"eslint-flat-config-viewer": "^0.1.8",
|
|
101
101
|
"eslint-plugin-react": "^7.33.2",
|
|
102
102
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
103
103
|
"eslint-plugin-react-refresh": "^0.4.5",
|