@coderwyd/eslint-config 4.2.2 → 4.3.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.js +11 -11
- package/dist/index.d.ts +8230 -10170
- package/dist/index.js +8 -18
- package/package.json +31 -28
- package/dist/chunk-D2IgMYys.js +0 -33
- package/dist/jiti-Cidv43TO.js +0 -45803
- package/dist/src-Bzhof6OA.js +0 -1045
package/dist/index.js
CHANGED
|
@@ -1367,21 +1367,22 @@ function unicorn() {
|
|
|
1367
1367
|
"unicorn/escape-case": "error",
|
|
1368
1368
|
"unicorn/new-for-builtins": "error",
|
|
1369
1369
|
"unicorn/no-array-method-this-argument": "error",
|
|
1370
|
-
"unicorn/no-array-push-push": "error",
|
|
1371
1370
|
"unicorn/no-await-in-promise-methods": "error",
|
|
1372
1371
|
"unicorn/no-console-spaces": "error",
|
|
1373
1372
|
"unicorn/no-for-loop": "error",
|
|
1374
1373
|
"unicorn/no-hex-escape": "error",
|
|
1375
1374
|
"unicorn/no-instanceof-builtins": "error",
|
|
1376
1375
|
"unicorn/no-invalid-remove-event-listener": "error",
|
|
1377
|
-
"unicorn/no-length-as-slice-end": "error",
|
|
1378
1376
|
"unicorn/no-lonely-if": "error",
|
|
1379
1377
|
"unicorn/no-negation-in-equality-check": "error",
|
|
1380
1378
|
"unicorn/no-new-array": "error",
|
|
1381
1379
|
"unicorn/no-new-buffer": "error",
|
|
1382
1380
|
"unicorn/no-single-promise-in-promise-methods": "error",
|
|
1383
1381
|
"unicorn/no-static-only-class": "error",
|
|
1382
|
+
"unicorn/no-unnecessary-array-flat-depth": "error",
|
|
1383
|
+
"unicorn/no-unnecessary-array-splice-count": "error",
|
|
1384
1384
|
"unicorn/no-unnecessary-await": "error",
|
|
1385
|
+
"unicorn/no-unnecessary-slice-end": "error",
|
|
1385
1386
|
"unicorn/no-zero-fractions": "error",
|
|
1386
1387
|
"unicorn/prefer-add-event-listener": "error",
|
|
1387
1388
|
"unicorn/prefer-array-find": "error",
|
|
@@ -1408,6 +1409,7 @@ function unicorn() {
|
|
|
1408
1409
|
"unicorn/prefer-prototype-methods": "error",
|
|
1409
1410
|
"unicorn/prefer-query-selector": "error",
|
|
1410
1411
|
"unicorn/prefer-reflect-apply": "error",
|
|
1412
|
+
"unicorn/prefer-single-call": "error",
|
|
1411
1413
|
"unicorn/prefer-string-replace-all": "error",
|
|
1412
1414
|
"unicorn/prefer-string-slice": "error",
|
|
1413
1415
|
"unicorn/prefer-string-starts-ends-with": "error",
|
|
@@ -1676,22 +1678,10 @@ async function defineConfig(options = {}, ...userConfigs) {
|
|
|
1676
1678
|
})]));
|
|
1677
1679
|
const typescriptOptions = resolveSubOptions(options, "typescript");
|
|
1678
1680
|
const tsconfigPath = "tsconfigPath" in typescriptOptions ? typescriptOptions.tsconfigPath : void 0;
|
|
1679
|
-
configs$1.push(
|
|
1680
|
-
|
|
1681
|
-
javascript
|
|
1682
|
-
|
|
1683
|
-
overrides: getOverrides(options, "javascript")
|
|
1684
|
-
}),
|
|
1685
|
-
comments(),
|
|
1686
|
-
node(),
|
|
1687
|
-
jsdoc(),
|
|
1688
|
-
imports(),
|
|
1689
|
-
unicorn(),
|
|
1690
|
-
command(),
|
|
1691
|
-
deMorgan(),
|
|
1692
|
-
perfectionist()
|
|
1693
|
-
// Optional plugins (installed but not enabled by default)
|
|
1694
|
-
);
|
|
1681
|
+
configs$1.push(ignores(options.ignores), javascript({
|
|
1682
|
+
isInEditor: isInEditor$1,
|
|
1683
|
+
overrides: getOverrides(options, "javascript")
|
|
1684
|
+
}), comments(), node(), jsdoc(), imports(), unicorn(), command(), deMorgan(), perfectionist());
|
|
1695
1685
|
if (enableVue) componentExts.push("vue");
|
|
1696
1686
|
if (enableTypeScript) configs$1.push(typescript({
|
|
1697
1687
|
...typescriptOptions,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coderwyd/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "4.
|
|
4
|
+
"version": "4.3.0",
|
|
5
5
|
"description": "Donny's ESLint config",
|
|
6
6
|
"author": "Donny Wang <donny526@outlook.com> (https://github.com/coderwyd/)",
|
|
7
7
|
"license": "MIT",
|
|
@@ -17,9 +17,12 @@
|
|
|
17
17
|
"access": "public"
|
|
18
18
|
},
|
|
19
19
|
"exports": {
|
|
20
|
-
".": "./dist/index.js"
|
|
20
|
+
".": "./dist/index.js",
|
|
21
|
+
"./cli": "./dist/cli.js",
|
|
22
|
+
"./package.json": "./package.json"
|
|
21
23
|
},
|
|
22
24
|
"main": "./dist/index.js",
|
|
25
|
+
"module": "./dist/index.js",
|
|
23
26
|
"types": "./dist/index.d.ts",
|
|
24
27
|
"bin": "./bin/index.js",
|
|
25
28
|
"files": [
|
|
@@ -67,30 +70,30 @@
|
|
|
67
70
|
}
|
|
68
71
|
},
|
|
69
72
|
"dependencies": {
|
|
70
|
-
"@antfu/install-pkg": "^1.
|
|
73
|
+
"@antfu/install-pkg": "^1.1.0",
|
|
71
74
|
"@eslint-community/eslint-plugin-eslint-comments": "^4.5.0",
|
|
72
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
73
|
-
"@typescript-eslint/parser": "^8.
|
|
74
|
-
"@vitest/eslint-plugin": "^1.1
|
|
75
|
+
"@typescript-eslint/eslint-plugin": "^8.33.0",
|
|
76
|
+
"@typescript-eslint/parser": "^8.33.0",
|
|
77
|
+
"@vitest/eslint-plugin": "^1.2.1",
|
|
75
78
|
"eslint-config-flat-gitignore": "^2.1.0",
|
|
76
|
-
"eslint-config-prettier": "^10.1.
|
|
79
|
+
"eslint-config-prettier": "^10.1.5",
|
|
77
80
|
"eslint-plugin-antfu": "^3.1.1",
|
|
78
|
-
"eslint-plugin-command": "^3.2.
|
|
81
|
+
"eslint-plugin-command": "^3.2.1",
|
|
79
82
|
"eslint-plugin-de-morgan": "^1.2.1",
|
|
80
83
|
"eslint-plugin-eslint-comments": "^3.2.0",
|
|
81
|
-
"eslint-plugin-import-x": "^4.
|
|
82
|
-
"eslint-plugin-jsdoc": "^50.6.
|
|
83
|
-
"eslint-plugin-jsonc": "^2.20.
|
|
84
|
-
"eslint-plugin-n": "^17.
|
|
84
|
+
"eslint-plugin-import-x": "^4.13.3",
|
|
85
|
+
"eslint-plugin-jsdoc": "^50.6.17",
|
|
86
|
+
"eslint-plugin-jsonc": "^2.20.1",
|
|
87
|
+
"eslint-plugin-n": "^17.18.0",
|
|
85
88
|
"eslint-plugin-no-only-tests": "^3.3.0",
|
|
86
|
-
"eslint-plugin-perfectionist": "^4.
|
|
89
|
+
"eslint-plugin-perfectionist": "^4.13.0",
|
|
87
90
|
"eslint-plugin-regexp": "^2.7.0",
|
|
88
|
-
"eslint-plugin-unicorn": "^
|
|
91
|
+
"eslint-plugin-unicorn": "^59.0.1",
|
|
89
92
|
"eslint-plugin-unused-imports": "^4.1.4",
|
|
90
|
-
"eslint-plugin-vue": "^10.
|
|
93
|
+
"eslint-plugin-vue": "^10.1.0",
|
|
91
94
|
"eslint-plugin-yml": "^1.18.0",
|
|
92
|
-
"eslint-typegen": "^2.
|
|
93
|
-
"globals": "^16.
|
|
95
|
+
"eslint-typegen": "^2.2.0",
|
|
96
|
+
"globals": "^16.2.0",
|
|
94
97
|
"jsonc-eslint-parser": "^2.4.0",
|
|
95
98
|
"local-pkg": "^1.1.1",
|
|
96
99
|
"parse-gitignore": "^2.0.0",
|
|
@@ -99,30 +102,30 @@
|
|
|
99
102
|
"prompts": "^2.4.2",
|
|
100
103
|
"vue-eslint-parser": "^10.1.3",
|
|
101
104
|
"yaml-eslint-parser": "^1.3.0",
|
|
102
|
-
"yargs": "^
|
|
105
|
+
"yargs": "^18.0.0"
|
|
103
106
|
},
|
|
104
107
|
"devDependencies": {
|
|
105
|
-
"@antfu/ni": "^
|
|
106
|
-
"@eslint-react/eslint-plugin": "^1.
|
|
108
|
+
"@antfu/ni": "^25.0.0",
|
|
109
|
+
"@eslint-react/eslint-plugin": "^1.50.0",
|
|
107
110
|
"@eslint/config-inspector": "^1.0.2",
|
|
108
111
|
"@types/eslint-config-prettier": "^6.11.3",
|
|
109
|
-
"@types/node": "^22.
|
|
112
|
+
"@types/node": "^22.15.23",
|
|
110
113
|
"@types/prompts": "^2.4.9",
|
|
111
114
|
"@types/yargs": "^17.0.33",
|
|
112
|
-
"@unocss/eslint-plugin": "^66.1.
|
|
113
|
-
"bumpp": "^10.1.
|
|
114
|
-
"eslint": "^9.
|
|
115
|
+
"@unocss/eslint-plugin": "^66.1.2",
|
|
116
|
+
"bumpp": "^10.1.1",
|
|
117
|
+
"eslint": "^9.27.0",
|
|
115
118
|
"eslint-plugin-react-compiler": "19.0.0-beta-ebf51a3-20250411",
|
|
116
119
|
"eslint-plugin-react-hooks": "^5.2.0",
|
|
117
120
|
"eslint-plugin-react-refresh": "^0.4.20",
|
|
118
|
-
"eslint-plugin-svelte": "^3.
|
|
121
|
+
"eslint-plugin-svelte": "^3.9.0",
|
|
119
122
|
"eslint-plugin-tailwindcss": "^3.18.0",
|
|
120
123
|
"jiti": "^2.4.2",
|
|
121
124
|
"nano-staged": "^0.8.0",
|
|
122
125
|
"simple-git-hooks": "^2.13.0",
|
|
123
|
-
"svelte": "^5.
|
|
124
|
-
"svelte-eslint-parser": "^1.
|
|
125
|
-
"tsdown": "
|
|
126
|
+
"svelte": "^5.33.4",
|
|
127
|
+
"svelte-eslint-parser": "^1.2.0",
|
|
128
|
+
"tsdown": "0.12.3",
|
|
126
129
|
"typescript": "^5.8.3"
|
|
127
130
|
},
|
|
128
131
|
"simple-git-hooks": {
|
package/dist/chunk-D2IgMYys.js
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { createRequire } from "module";
|
|
2
|
-
|
|
3
|
-
//#region rolldown:runtime
|
|
4
|
-
var __create = Object.create;
|
|
5
|
-
var __defProp = Object.defineProperty;
|
|
6
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
7
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
8
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
9
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
10
|
-
var __esm = (fn, res) => function() {
|
|
11
|
-
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
|
|
12
|
-
};
|
|
13
|
-
var __commonJS = (cb, mod) => function() {
|
|
14
|
-
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
15
|
-
};
|
|
16
|
-
var __copyProps = (to, from, except, desc) => {
|
|
17
|
-
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
18
|
-
key = keys[i];
|
|
19
|
-
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
20
|
-
get: ((k) => from[k]).bind(null, key),
|
|
21
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
22
|
-
});
|
|
23
|
-
}
|
|
24
|
-
return to;
|
|
25
|
-
};
|
|
26
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
27
|
-
value: mod,
|
|
28
|
-
enumerable: true
|
|
29
|
-
}) : target, mod));
|
|
30
|
-
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
31
|
-
|
|
32
|
-
//#endregion
|
|
33
|
-
export { __commonJS, __esm, __require, __toESM };
|