@coderwyd/eslint-config 3.0.0 → 3.1.1
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 +11 -11
- package/dist/cli.js +11 -11
- package/dist/index.cjs +3 -3
- package/dist/index.d.cts +278 -192
- package/dist/index.d.ts +278 -192
- package/dist/index.js +2 -2
- package/package.json +21 -21
package/dist/index.js
CHANGED
|
@@ -166,6 +166,7 @@ function javascript(options = {}) {
|
|
|
166
166
|
{ enforceForClassMembers: true, setWithoutGet: true }
|
|
167
167
|
],
|
|
168
168
|
"antfu/no-top-level-await": "error",
|
|
169
|
+
"antfu/top-level-function": "error",
|
|
169
170
|
"array-callback-return": "error",
|
|
170
171
|
"block-scoped-var": "error",
|
|
171
172
|
"constructor-super": "error",
|
|
@@ -1740,7 +1741,6 @@ async function defineConfig(options = {}, ...userConfigs) {
|
|
|
1740
1741
|
imports(),
|
|
1741
1742
|
unicorn(),
|
|
1742
1743
|
command(),
|
|
1743
|
-
prettier(),
|
|
1744
1744
|
// Optional plugins (installed but not enabled by default)
|
|
1745
1745
|
perfectionist()
|
|
1746
1746
|
);
|
|
@@ -1814,7 +1814,7 @@ async function defineConfig(options = {}, ...userConfigs) {
|
|
|
1814
1814
|
sortTsconfig()
|
|
1815
1815
|
);
|
|
1816
1816
|
}
|
|
1817
|
-
configs2.push(specials());
|
|
1817
|
+
configs2.push(specials(), prettier());
|
|
1818
1818
|
if ("files" in options) {
|
|
1819
1819
|
throw new Error(
|
|
1820
1820
|
'[@coderwyd/eslint-config] The first argument should not contain the "files" property as the options are supposed to be global. Place it in the second or later config instead.'
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coderwyd/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.1.1",
|
|
5
5
|
"description": "Donny's ESLint config",
|
|
6
6
|
"author": "Donny Wang <donny526@outlook.com> (https://github.com/coderwyd/)",
|
|
7
7
|
"license": "MIT",
|
|
@@ -71,27 +71,27 @@
|
|
|
71
71
|
"@antfu/install-pkg": "^0.4.1",
|
|
72
72
|
"@eslint-community/eslint-plugin-eslint-comments": "^4.4.0",
|
|
73
73
|
"@toml-tools/parser": "^1.0.0",
|
|
74
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
75
|
-
"@typescript-eslint/parser": "^8.
|
|
76
|
-
"@vitest/eslint-plugin": "^1.1.
|
|
74
|
+
"@typescript-eslint/eslint-plugin": "^8.8.1",
|
|
75
|
+
"@typescript-eslint/parser": "^8.8.1",
|
|
76
|
+
"@vitest/eslint-plugin": "^1.1.7",
|
|
77
77
|
"eslint-config-flat-gitignore": "^0.3.0",
|
|
78
78
|
"eslint-config-prettier": "^9.1.0",
|
|
79
79
|
"eslint-plugin-antfu": "^2.7.0",
|
|
80
80
|
"eslint-plugin-command": "^0.2.6",
|
|
81
81
|
"eslint-plugin-eslint-comments": "^3.2.0",
|
|
82
|
-
"eslint-plugin-import-x": "^4.3.
|
|
83
|
-
"eslint-plugin-jsdoc": "^50.3.
|
|
82
|
+
"eslint-plugin-import-x": "^4.3.1",
|
|
83
|
+
"eslint-plugin-jsdoc": "^50.3.2",
|
|
84
84
|
"eslint-plugin-jsonc": "^2.16.0",
|
|
85
|
-
"eslint-plugin-n": "^17.
|
|
85
|
+
"eslint-plugin-n": "^17.11.1",
|
|
86
86
|
"eslint-plugin-no-only-tests": "^3.3.0",
|
|
87
|
-
"eslint-plugin-perfectionist": "^3.
|
|
87
|
+
"eslint-plugin-perfectionist": "^3.8.0",
|
|
88
88
|
"eslint-plugin-prettier": "^5.2.1",
|
|
89
89
|
"eslint-plugin-regexp": "^2.6.0",
|
|
90
|
-
"eslint-plugin-unicorn": "^
|
|
90
|
+
"eslint-plugin-unicorn": "^56.0.0",
|
|
91
91
|
"eslint-plugin-unused-imports": "^4.1.4",
|
|
92
|
-
"eslint-plugin-vue": "^9.
|
|
92
|
+
"eslint-plugin-vue": "^9.29.0",
|
|
93
93
|
"eslint-typegen": "^0.3.2",
|
|
94
|
-
"globals": "^15.
|
|
94
|
+
"globals": "^15.11.0",
|
|
95
95
|
"jsonc-eslint-parser": "^2.4.0",
|
|
96
96
|
"local-pkg": "^0.5.0",
|
|
97
97
|
"parse-gitignore": "^2.0.0",
|
|
@@ -103,24 +103,24 @@
|
|
|
103
103
|
},
|
|
104
104
|
"devDependencies": {
|
|
105
105
|
"@antfu/ni": "^0.23.0",
|
|
106
|
-
"@eslint-react/eslint-plugin": "^1.
|
|
106
|
+
"@eslint-react/eslint-plugin": "^1.15.0",
|
|
107
107
|
"@eslint/config-inspector": "^0.5.4",
|
|
108
108
|
"@types/eslint-config-prettier": "^6.11.3",
|
|
109
109
|
"@types/fs-extra": "^11.0.4",
|
|
110
|
-
"@types/node": "^22.7.
|
|
110
|
+
"@types/node": "^22.7.5",
|
|
111
111
|
"@types/prompts": "^2.4.9",
|
|
112
112
|
"@types/yargs": "^17.0.33",
|
|
113
|
-
"@unocss/eslint-plugin": "^0.
|
|
114
|
-
"bumpp": "^9.
|
|
115
|
-
"eslint": "^9.
|
|
116
|
-
"eslint-plugin-react-hooks": "^
|
|
113
|
+
"@unocss/eslint-plugin": "^0.63.4",
|
|
114
|
+
"bumpp": "^9.7.1",
|
|
115
|
+
"eslint": "^9.12.0",
|
|
116
|
+
"eslint-plugin-react-hooks": "^5.0.0",
|
|
117
117
|
"eslint-plugin-react-refresh": "^0.4.12",
|
|
118
|
-
"eslint-plugin-svelte": "2.44.
|
|
119
|
-
"eslint-plugin-tailwindcss": "^3.17.
|
|
118
|
+
"eslint-plugin-svelte": "2.44.1",
|
|
119
|
+
"eslint-plugin-tailwindcss": "^3.17.5",
|
|
120
120
|
"execa": "^9.4.0",
|
|
121
121
|
"fast-glob": "^3.3.2",
|
|
122
122
|
"fs-extra": "^11.2.0",
|
|
123
|
-
"jiti": "^2.
|
|
123
|
+
"jiti": "^2.3.3",
|
|
124
124
|
"lint-staged": "^15.2.10",
|
|
125
125
|
"rimraf": "^6.0.1",
|
|
126
126
|
"simple-git-hooks": "^2.11.1",
|
|
@@ -128,7 +128,7 @@
|
|
|
128
128
|
"svelte-eslint-parser": "^0.41.1",
|
|
129
129
|
"tsup": "^8.3.0",
|
|
130
130
|
"tsx": "^4.19.1",
|
|
131
|
-
"typescript": "^5.6.
|
|
131
|
+
"typescript": "^5.6.3"
|
|
132
132
|
},
|
|
133
133
|
"simple-git-hooks": {
|
|
134
134
|
"pre-commit": "pnpx nano-staged"
|