@jiakun-zhao/eslint-config 4.1.5 → 4.1.8
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.mjs +26 -21
- package/package.json +15 -15
package/dist/index.mjs
CHANGED
|
@@ -142,25 +142,28 @@ async function astro() {
|
|
|
142
142
|
});
|
|
143
143
|
}
|
|
144
144
|
function createSharedAstroConfig(plugin, rules = {}) {
|
|
145
|
-
return
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
145
|
+
return [
|
|
146
|
+
{
|
|
147
|
+
files: [
|
|
148
|
+
"**/*.astro"
|
|
149
|
+
],
|
|
150
|
+
languageOptions: {
|
|
151
|
+
parser: findParser(plugin),
|
|
152
|
+
parserOptions: {
|
|
153
|
+
extraFileExtensions: [
|
|
154
|
+
".astro"
|
|
155
|
+
],
|
|
156
|
+
parser: tsParser
|
|
157
|
+
}
|
|
158
|
+
},
|
|
159
|
+
name: "astro",
|
|
160
|
+
plugins: {
|
|
161
|
+
astro: plugin
|
|
162
|
+
},
|
|
163
|
+
processor: plugin.processors?.["client-side-ts"],
|
|
164
|
+
rules
|
|
165
|
+
}
|
|
166
|
+
];
|
|
164
167
|
}
|
|
165
168
|
|
|
166
169
|
function command() {
|
|
@@ -375,7 +378,7 @@ function jsonc() {
|
|
|
375
378
|
];
|
|
376
379
|
}
|
|
377
380
|
|
|
378
|
-
const version = "4.1.
|
|
381
|
+
const version = "4.1.8";
|
|
379
382
|
|
|
380
383
|
const name$3 = "astro-multi-top-level-element-indent";
|
|
381
384
|
const _astroMultiTopLevelElementIndent = createRule({
|
|
@@ -786,6 +789,8 @@ function typescript() {
|
|
|
786
789
|
"**/*.?([cm])ts",
|
|
787
790
|
"**/*.?([cm])tsx",
|
|
788
791
|
"**/*.vue"
|
|
792
|
+
// '**/*.astro/*.ts',
|
|
793
|
+
// '*.astro/*.ts',
|
|
789
794
|
],
|
|
790
795
|
languageOptions: {
|
|
791
796
|
parser: tsParser,
|
|
@@ -1076,7 +1081,7 @@ function index(options = {}) {
|
|
|
1076
1081
|
unocss(),
|
|
1077
1082
|
overrides()
|
|
1078
1083
|
);
|
|
1079
|
-
return options.oxlint?.enable ===
|
|
1084
|
+
return options.oxlint?.enable === true ? result.append(pluginOxlint.configs["flat/all"]).remove("oxlint/vue-svelte-exceptions").renamePlugins({ "@typescript-eslint": "ts", "import-x": "import" }) : result;
|
|
1080
1085
|
}
|
|
1081
1086
|
|
|
1082
1087
|
export { index as default };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jiakun-zhao/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "4.1.
|
|
4
|
+
"version": "4.1.8",
|
|
5
5
|
"description": "Jiakun Zhao's ESLint config.",
|
|
6
6
|
"author": "Jiakun Zhao <hi@zhaojiakun.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -35,38 +35,38 @@
|
|
|
35
35
|
}
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@stylistic/eslint-plugin": "^4.4.
|
|
39
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
38
|
+
"@stylistic/eslint-plugin": "^4.4.1",
|
|
39
|
+
"@typescript-eslint/eslint-plugin": "^8.34.1",
|
|
40
40
|
"@unocss/eslint-plugin": "66.1.0-beta.12",
|
|
41
41
|
"eslint-config-flat-gitignore": "^2.1.0",
|
|
42
42
|
"eslint-flat-config-utils": "^2.1.0",
|
|
43
43
|
"eslint-plugin-antfu": "^3.1.1",
|
|
44
44
|
"eslint-plugin-command": "^3.2.1",
|
|
45
|
-
"eslint-plugin-import-x": "^4.
|
|
45
|
+
"eslint-plugin-import-x": "^4.15.2",
|
|
46
46
|
"eslint-plugin-jsonc": "^2.20.1",
|
|
47
|
-
"eslint-plugin-oxlint": "^
|
|
48
|
-
"eslint-plugin-perfectionist": "^4.
|
|
49
|
-
"eslint-plugin-regexp": "^2.
|
|
47
|
+
"eslint-plugin-oxlint": "^1.1.0",
|
|
48
|
+
"eslint-plugin-perfectionist": "^4.15.0",
|
|
49
|
+
"eslint-plugin-regexp": "^2.9.0",
|
|
50
50
|
"eslint-plugin-unicorn": "^59.0.1",
|
|
51
51
|
"eslint-plugin-unused-imports": "^4.1.4",
|
|
52
52
|
"globals": "^16.2.0"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
|
-
"@eslint/config-inspector": "^1.0
|
|
56
|
-
"@eslint/core": "^0.
|
|
55
|
+
"@eslint/config-inspector": "^1.1.0",
|
|
56
|
+
"@eslint/core": "^0.15.0",
|
|
57
57
|
"@jiakun-zhao/utils": "^1.3.2",
|
|
58
|
-
"@types/node": "^
|
|
59
|
-
"@typescript-eslint/types": "^8.
|
|
58
|
+
"@types/node": "^24.0.3",
|
|
59
|
+
"@typescript-eslint/types": "^8.34.1",
|
|
60
60
|
"bumpp": "^10.1.1",
|
|
61
|
-
"eslint": "^9.
|
|
61
|
+
"eslint": "^9.29.0",
|
|
62
62
|
"eslint-plugin-astro": "^1.3.1",
|
|
63
|
-
"eslint-plugin-vue": "^10.
|
|
63
|
+
"eslint-plugin-vue": "^10.2.0",
|
|
64
64
|
"eslint-typegen": "^2.2.0",
|
|
65
65
|
"eslint-vitest-rule-tester": "^2.2.0",
|
|
66
|
-
"tsx": "^4.
|
|
66
|
+
"tsx": "^4.20.3",
|
|
67
67
|
"typescript": "^5.8.3",
|
|
68
68
|
"unbuild": "^3.5.0",
|
|
69
|
-
"vitest": "^3.
|
|
69
|
+
"vitest": "^3.2.4"
|
|
70
70
|
},
|
|
71
71
|
"scripts": {
|
|
72
72
|
"build": "unbuild",
|