@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/cli.cjs
CHANGED
|
@@ -37,27 +37,27 @@ 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.1";
|
|
41
41
|
var devDependencies = {
|
|
42
42
|
"@antfu/ni": "^0.23.0",
|
|
43
|
-
"@eslint-react/eslint-plugin": "^1.
|
|
43
|
+
"@eslint-react/eslint-plugin": "^1.15.0",
|
|
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.5",
|
|
48
48
|
"@types/prompts": "^2.4.9",
|
|
49
49
|
"@types/yargs": "^17.0.33",
|
|
50
|
-
"@unocss/eslint-plugin": "^0.
|
|
51
|
-
bumpp: "^9.
|
|
52
|
-
eslint: "^9.
|
|
53
|
-
"eslint-plugin-react-hooks": "^
|
|
50
|
+
"@unocss/eslint-plugin": "^0.63.4",
|
|
51
|
+
bumpp: "^9.7.1",
|
|
52
|
+
eslint: "^9.12.0",
|
|
53
|
+
"eslint-plugin-react-hooks": "^5.0.0",
|
|
54
54
|
"eslint-plugin-react-refresh": "^0.4.12",
|
|
55
|
-
"eslint-plugin-svelte": "2.44.
|
|
56
|
-
"eslint-plugin-tailwindcss": "^3.17.
|
|
55
|
+
"eslint-plugin-svelte": "2.44.1",
|
|
56
|
+
"eslint-plugin-tailwindcss": "^3.17.5",
|
|
57
57
|
execa: "^9.4.0",
|
|
58
58
|
"fast-glob": "^3.3.2",
|
|
59
59
|
"fs-extra": "^11.2.0",
|
|
60
|
-
jiti: "^2.
|
|
60
|
+
jiti: "^2.3.3",
|
|
61
61
|
"lint-staged": "^15.2.10",
|
|
62
62
|
rimraf: "^6.0.1",
|
|
63
63
|
"simple-git-hooks": "^2.11.1",
|
|
@@ -65,7 +65,7 @@ var devDependencies = {
|
|
|
65
65
|
"svelte-eslint-parser": "^0.41.1",
|
|
66
66
|
tsup: "^8.3.0",
|
|
67
67
|
tsx: "^4.19.1",
|
|
68
|
-
typescript: "^5.6.
|
|
68
|
+
typescript: "^5.6.3"
|
|
69
69
|
};
|
|
70
70
|
|
|
71
71
|
// src/cli/constants.ts
|
package/dist/cli.js
CHANGED
|
@@ -8,27 +8,27 @@ 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.1";
|
|
12
12
|
var devDependencies = {
|
|
13
13
|
"@antfu/ni": "^0.23.0",
|
|
14
|
-
"@eslint-react/eslint-plugin": "^1.
|
|
14
|
+
"@eslint-react/eslint-plugin": "^1.15.0",
|
|
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.5",
|
|
19
19
|
"@types/prompts": "^2.4.9",
|
|
20
20
|
"@types/yargs": "^17.0.33",
|
|
21
|
-
"@unocss/eslint-plugin": "^0.
|
|
22
|
-
bumpp: "^9.
|
|
23
|
-
eslint: "^9.
|
|
24
|
-
"eslint-plugin-react-hooks": "^
|
|
21
|
+
"@unocss/eslint-plugin": "^0.63.4",
|
|
22
|
+
bumpp: "^9.7.1",
|
|
23
|
+
eslint: "^9.12.0",
|
|
24
|
+
"eslint-plugin-react-hooks": "^5.0.0",
|
|
25
25
|
"eslint-plugin-react-refresh": "^0.4.12",
|
|
26
|
-
"eslint-plugin-svelte": "2.44.
|
|
27
|
-
"eslint-plugin-tailwindcss": "^3.17.
|
|
26
|
+
"eslint-plugin-svelte": "2.44.1",
|
|
27
|
+
"eslint-plugin-tailwindcss": "^3.17.5",
|
|
28
28
|
execa: "^9.4.0",
|
|
29
29
|
"fast-glob": "^3.3.2",
|
|
30
30
|
"fs-extra": "^11.2.0",
|
|
31
|
-
jiti: "^2.
|
|
31
|
+
jiti: "^2.3.3",
|
|
32
32
|
"lint-staged": "^15.2.10",
|
|
33
33
|
rimraf: "^6.0.1",
|
|
34
34
|
"simple-git-hooks": "^2.11.1",
|
|
@@ -36,7 +36,7 @@ var devDependencies = {
|
|
|
36
36
|
"svelte-eslint-parser": "^0.41.1",
|
|
37
37
|
tsup: "^8.3.0",
|
|
38
38
|
tsx: "^4.19.1",
|
|
39
|
-
typescript: "^5.6.
|
|
39
|
+
typescript: "^5.6.3"
|
|
40
40
|
};
|
|
41
41
|
|
|
42
42
|
// src/cli/constants.ts
|
package/dist/index.cjs
CHANGED
|
@@ -48,7 +48,7 @@ __export(src_exports, {
|
|
|
48
48
|
});
|
|
49
49
|
module.exports = __toCommonJS(src_exports);
|
|
50
50
|
|
|
51
|
-
// node_modules/.pnpm/tsup@8.3.0_jiti@2.
|
|
51
|
+
// node_modules/.pnpm/tsup@8.3.0_jiti@2.3.3_postcss@8.4.39_tsx@4.19.1_typescript@5.6.3_yaml@2.5.0/node_modules/tsup/assets/cjs_shims.js
|
|
52
52
|
var getImportMetaUrl = () => typeof document === "undefined" ? new URL(`file:${__filename}`).href : document.currentScript && document.currentScript.src || new URL("main.js", document.baseURI).href;
|
|
53
53
|
var importMetaUrl = /* @__PURE__ */ getImportMetaUrl();
|
|
54
54
|
|
|
@@ -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.'
|