@coderwyd/eslint-config 3.0.0 → 3.1.0
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 +2 -2
- package/dist/index.js +2 -2
- package/package.json +5 -5
package/dist/cli.cjs
CHANGED
|
@@ -37,22 +37,22 @@ var import_helpers = require("yargs/helpers");
|
|
|
37
37
|
var import_picocolors = __toESM(require("picocolors"), 1);
|
|
38
38
|
|
|
39
39
|
// package.json
|
|
40
|
-
var version = "3.
|
|
40
|
+
var version = "3.1.0";
|
|
41
41
|
var devDependencies = {
|
|
42
42
|
"@antfu/ni": "^0.23.0",
|
|
43
43
|
"@eslint-react/eslint-plugin": "^1.14.2",
|
|
44
44
|
"@eslint/config-inspector": "^0.5.4",
|
|
45
45
|
"@types/eslint-config-prettier": "^6.11.3",
|
|
46
46
|
"@types/fs-extra": "^11.0.4",
|
|
47
|
-
"@types/node": "^22.7.
|
|
47
|
+
"@types/node": "^22.7.4",
|
|
48
48
|
"@types/prompts": "^2.4.9",
|
|
49
49
|
"@types/yargs": "^17.0.33",
|
|
50
|
-
"@unocss/eslint-plugin": "^0.
|
|
51
|
-
bumpp: "^9.
|
|
50
|
+
"@unocss/eslint-plugin": "^0.63.0",
|
|
51
|
+
bumpp: "^9.6.1",
|
|
52
52
|
eslint: "^9.11.1",
|
|
53
53
|
"eslint-plugin-react-hooks": "^4.6.2",
|
|
54
54
|
"eslint-plugin-react-refresh": "^0.4.12",
|
|
55
|
-
"eslint-plugin-svelte": "2.44.
|
|
55
|
+
"eslint-plugin-svelte": "2.44.1",
|
|
56
56
|
"eslint-plugin-tailwindcss": "^3.17.4",
|
|
57
57
|
execa: "^9.4.0",
|
|
58
58
|
"fast-glob": "^3.3.2",
|
package/dist/cli.js
CHANGED
|
@@ -8,22 +8,22 @@ import { hideBin } from "yargs/helpers";
|
|
|
8
8
|
import c from "picocolors";
|
|
9
9
|
|
|
10
10
|
// package.json
|
|
11
|
-
var version = "3.
|
|
11
|
+
var version = "3.1.0";
|
|
12
12
|
var devDependencies = {
|
|
13
13
|
"@antfu/ni": "^0.23.0",
|
|
14
14
|
"@eslint-react/eslint-plugin": "^1.14.2",
|
|
15
15
|
"@eslint/config-inspector": "^0.5.4",
|
|
16
16
|
"@types/eslint-config-prettier": "^6.11.3",
|
|
17
17
|
"@types/fs-extra": "^11.0.4",
|
|
18
|
-
"@types/node": "^22.7.
|
|
18
|
+
"@types/node": "^22.7.4",
|
|
19
19
|
"@types/prompts": "^2.4.9",
|
|
20
20
|
"@types/yargs": "^17.0.33",
|
|
21
|
-
"@unocss/eslint-plugin": "^0.
|
|
22
|
-
bumpp: "^9.
|
|
21
|
+
"@unocss/eslint-plugin": "^0.63.0",
|
|
22
|
+
bumpp: "^9.6.1",
|
|
23
23
|
eslint: "^9.11.1",
|
|
24
24
|
"eslint-plugin-react-hooks": "^4.6.2",
|
|
25
25
|
"eslint-plugin-react-refresh": "^0.4.12",
|
|
26
|
-
"eslint-plugin-svelte": "2.44.
|
|
26
|
+
"eslint-plugin-svelte": "2.44.1",
|
|
27
27
|
"eslint-plugin-tailwindcss": "^3.17.4",
|
|
28
28
|
execa: "^9.4.0",
|
|
29
29
|
"fast-glob": "^3.3.2",
|
package/dist/index.cjs
CHANGED
|
@@ -220,6 +220,7 @@ function javascript(options = {}) {
|
|
|
220
220
|
{ enforceForClassMembers: true, setWithoutGet: true }
|
|
221
221
|
],
|
|
222
222
|
"antfu/no-top-level-await": "error",
|
|
223
|
+
"antfu/top-level-function": "error",
|
|
223
224
|
"array-callback-return": "error",
|
|
224
225
|
"block-scoped-var": "error",
|
|
225
226
|
"constructor-super": "error",
|
|
@@ -1794,7 +1795,6 @@ async function defineConfig(options = {}, ...userConfigs) {
|
|
|
1794
1795
|
imports(),
|
|
1795
1796
|
unicorn(),
|
|
1796
1797
|
command(),
|
|
1797
|
-
prettier(),
|
|
1798
1798
|
// Optional plugins (installed but not enabled by default)
|
|
1799
1799
|
perfectionist()
|
|
1800
1800
|
);
|
|
@@ -1868,7 +1868,7 @@ async function defineConfig(options = {}, ...userConfigs) {
|
|
|
1868
1868
|
sortTsconfig()
|
|
1869
1869
|
);
|
|
1870
1870
|
}
|
|
1871
|
-
configs2.push(specials());
|
|
1871
|
+
configs2.push(specials(), prettier());
|
|
1872
1872
|
if ("files" in options) {
|
|
1873
1873
|
throw new Error(
|
|
1874
1874
|
'[@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/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.0",
|
|
5
5
|
"description": "Donny's ESLint config",
|
|
6
6
|
"author": "Donny Wang <donny526@outlook.com> (https://github.com/coderwyd/)",
|
|
7
7
|
"license": "MIT",
|
|
@@ -107,15 +107,15 @@
|
|
|
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.4",
|
|
111
111
|
"@types/prompts": "^2.4.9",
|
|
112
112
|
"@types/yargs": "^17.0.33",
|
|
113
|
-
"@unocss/eslint-plugin": "^0.
|
|
114
|
-
"bumpp": "^9.
|
|
113
|
+
"@unocss/eslint-plugin": "^0.63.0",
|
|
114
|
+
"bumpp": "^9.6.1",
|
|
115
115
|
"eslint": "^9.11.1",
|
|
116
116
|
"eslint-plugin-react-hooks": "^4.6.2",
|
|
117
117
|
"eslint-plugin-react-refresh": "^0.4.12",
|
|
118
|
-
"eslint-plugin-svelte": "2.44.
|
|
118
|
+
"eslint-plugin-svelte": "2.44.1",
|
|
119
119
|
"eslint-plugin-tailwindcss": "^3.17.4",
|
|
120
120
|
"execa": "^9.4.0",
|
|
121
121
|
"fast-glob": "^3.3.2",
|