@wongxy/eslint-config 3.0.1 → 4.0.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/index.cjs +29 -26
- package/dist/index.d.cts +2696 -296
- package/dist/index.d.mts +3079 -0
- package/dist/{index.js → index.mjs} +16 -10
- package/package.json +28 -26
- package/dist/index.d.ts +0 -679
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { GLOB_SRC, GLOB_TS, GLOB_TSX, GLOB_VUE, antfu, getOverrides } from "@antfu/eslint-config";
|
|
2
2
|
import { isPackageExists } from "local-pkg";
|
|
3
3
|
import pluginTailwind from "eslint-plugin-better-tailwindcss";
|
|
4
|
-
|
|
5
4
|
//#region src/tailwindcss.ts
|
|
6
5
|
async function tailwindcss(options = {}) {
|
|
7
6
|
const { overrides = {}, settings } = options;
|
|
@@ -11,7 +10,7 @@ async function tailwindcss(options = {}) {
|
|
|
11
10
|
"tw/no-duplicate-classes": "warn",
|
|
12
11
|
"tw/no-unnecessary-whitespace": "warn",
|
|
13
12
|
"tw/no-conflicting-classes": "warn",
|
|
14
|
-
"tw/no-
|
|
13
|
+
"tw/no-unknown-classes": "warn"
|
|
15
14
|
};
|
|
16
15
|
return [{
|
|
17
16
|
name: "wongxy/tailwindcss/setup",
|
|
@@ -26,7 +25,6 @@ async function tailwindcss(options = {}) {
|
|
|
26
25
|
}
|
|
27
26
|
}];
|
|
28
27
|
}
|
|
29
|
-
|
|
30
28
|
//#endregion
|
|
31
29
|
//#region src/index.ts
|
|
32
30
|
const VuePackages = [
|
|
@@ -69,11 +67,20 @@ function wongxy(options = {}, ...userConfigs) {
|
|
|
69
67
|
"unknown",
|
|
70
68
|
"reserved-last"
|
|
71
69
|
],
|
|
72
|
-
customGroups:
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
70
|
+
customGroups: [
|
|
71
|
+
{
|
|
72
|
+
groupName: "reserved-first",
|
|
73
|
+
elementNamePattern: ["key", "ref"]
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
groupName: "reserved-second",
|
|
77
|
+
elementNamePattern: ["id", "name"]
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
groupName: "reserved-last",
|
|
81
|
+
elementNamePattern: ["asChild"]
|
|
82
|
+
}
|
|
83
|
+
]
|
|
77
84
|
}]
|
|
78
85
|
})
|
|
79
86
|
});
|
|
@@ -115,6 +122,5 @@ function wongxy(options = {}, ...userConfigs) {
|
|
|
115
122
|
}
|
|
116
123
|
return antfu(options, ...configs, ...userConfigs);
|
|
117
124
|
}
|
|
118
|
-
|
|
119
125
|
//#endregion
|
|
120
|
-
export { wongxy as default };
|
|
126
|
+
export { wongxy as default };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wongxy/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "4.0.0",
|
|
5
5
|
"description": "xiyaowong's eslint config",
|
|
6
6
|
"author": "xiyaowong (https://github.com/xiyaowong)",
|
|
7
7
|
"license": "MIT",
|
|
@@ -13,41 +13,43 @@
|
|
|
13
13
|
"files": [
|
|
14
14
|
"dist"
|
|
15
15
|
],
|
|
16
|
+
"scripts": {
|
|
17
|
+
"build": "nr typegen && tsdown --clean --dts",
|
|
18
|
+
"stub": "tsdown --format esm",
|
|
19
|
+
"watch": "tsdown --watch",
|
|
20
|
+
"dev": "tsdown --watch & eslint-flat-config-viewer",
|
|
21
|
+
"lint:fix": "eslint . --fix",
|
|
22
|
+
"lint": "eslint .",
|
|
23
|
+
"prepack": "pnpm run build",
|
|
24
|
+
"release": "bumpp && pnpm publish",
|
|
25
|
+
"inspect": "nlx @eslint/config-inspector",
|
|
26
|
+
"typegen": "esno scripts/typegen.ts",
|
|
27
|
+
"typecheck": "tsc --noEmit"
|
|
28
|
+
},
|
|
16
29
|
"peerDependencies": {
|
|
17
|
-
"@eslint-react/eslint-plugin": "^
|
|
30
|
+
"@eslint-react/eslint-plugin": "^5.18.6",
|
|
18
31
|
"@next/eslint-plugin-next": "^16.0.1",
|
|
19
32
|
"@unocss/eslint-plugin": "^66.5.4",
|
|
20
|
-
"eslint": "^9.
|
|
21
|
-
"eslint-plugin-
|
|
33
|
+
"eslint": "^10.9.1",
|
|
34
|
+
"eslint-plugin-astro": "^3.1.0",
|
|
35
|
+
"eslint-plugin-better-tailwindcss": "^4.7.0",
|
|
22
36
|
"eslint-plugin-react-hooks": "^7.0.1",
|
|
23
|
-
"eslint-plugin-react-refresh": "^0.
|
|
37
|
+
"eslint-plugin-react-refresh": "^0.5.5"
|
|
24
38
|
},
|
|
25
39
|
"dependencies": {
|
|
26
|
-
"@antfu/eslint-config": "^
|
|
27
|
-
"eslint-flat-config-utils": "^2.
|
|
28
|
-
"local-pkg": "^1.1
|
|
40
|
+
"@antfu/eslint-config": "^9.3.0",
|
|
41
|
+
"eslint-flat-config-utils": "^3.2.0",
|
|
42
|
+
"local-pkg": "^1.2.1"
|
|
29
43
|
},
|
|
30
44
|
"devDependencies": {
|
|
31
|
-
"@antfu/ni": "^
|
|
45
|
+
"@antfu/ni": "^30.5.0",
|
|
32
46
|
"@types/eslint": "^9.6.1",
|
|
33
47
|
"@types/node": "^24.10.0",
|
|
34
|
-
"bumpp": "^
|
|
35
|
-
"eslint": "^9.
|
|
36
|
-
"eslint-typegen": "^2.3.
|
|
48
|
+
"bumpp": "^12.2.2",
|
|
49
|
+
"eslint": "^10.9.1",
|
|
50
|
+
"eslint-typegen": "^2.3.1",
|
|
37
51
|
"esno": "^4.8.0",
|
|
38
|
-
"tsdown": "^0.
|
|
52
|
+
"tsdown": "^0.22.14",
|
|
39
53
|
"typescript": "^5.9.3"
|
|
40
|
-
},
|
|
41
|
-
"scripts": {
|
|
42
|
-
"build": "nr typegen && tsdown --clean --dts",
|
|
43
|
-
"stub": "tsdown --format esm",
|
|
44
|
-
"watch": "tsdown --watch",
|
|
45
|
-
"dev": "tsdown --watch & eslint-flat-config-viewer",
|
|
46
|
-
"lint:fix": "eslint . --fix",
|
|
47
|
-
"lint": "eslint .",
|
|
48
|
-
"release": "bumpp && pnpm publish",
|
|
49
|
-
"inspect": "nlx @eslint/config-inspector",
|
|
50
|
-
"typegen": "esno scripts/typegen.ts",
|
|
51
|
-
"typecheck": "tsc --noEmit"
|
|
52
54
|
}
|
|
53
|
-
}
|
|
55
|
+
}
|