@jiakun-zhao/eslint-config 4.1.1 → 4.1.3
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 +5 -15
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { composer } from 'eslint-flat-config-utils';
|
|
2
2
|
import pluginStylistic from '@stylistic/eslint-plugin';
|
|
3
3
|
import pluginTypescript from '@typescript-eslint/eslint-plugin';
|
|
4
4
|
import pluginUnocss from '@unocss/eslint-plugin';
|
|
@@ -375,7 +375,7 @@ function jsonc() {
|
|
|
375
375
|
];
|
|
376
376
|
}
|
|
377
377
|
|
|
378
|
-
const version = "4.1.
|
|
378
|
+
const version = "4.1.3";
|
|
379
379
|
|
|
380
380
|
const name$3 = "astro-multi-top-level-element-indent";
|
|
381
381
|
const _astroMultiTopLevelElementIndent = createRule({
|
|
@@ -618,16 +618,6 @@ function overrides() {
|
|
|
618
618
|
];
|
|
619
619
|
}
|
|
620
620
|
|
|
621
|
-
function oxlint() {
|
|
622
|
-
return {
|
|
623
|
-
name: "oxlint",
|
|
624
|
-
rules: renamePluginsInRules(pluginOxlint.configs.all.rules, {
|
|
625
|
-
"@typescript-eslint": "ts",
|
|
626
|
-
"import": "import-x"
|
|
627
|
-
})
|
|
628
|
-
};
|
|
629
|
-
}
|
|
630
|
-
|
|
631
621
|
function perfectionist() {
|
|
632
622
|
return {
|
|
633
623
|
name: "perfectionist",
|
|
@@ -1067,7 +1057,7 @@ async function vue() {
|
|
|
1067
1057
|
}
|
|
1068
1058
|
|
|
1069
1059
|
function index(options = {}) {
|
|
1070
|
-
|
|
1060
|
+
const result = composer(
|
|
1071
1061
|
ignores(options),
|
|
1072
1062
|
jsonc(),
|
|
1073
1063
|
javascript(),
|
|
@@ -1084,9 +1074,9 @@ function index(options = {}) {
|
|
|
1084
1074
|
regexp(),
|
|
1085
1075
|
command(),
|
|
1086
1076
|
unocss(),
|
|
1087
|
-
overrides()
|
|
1088
|
-
options.oxlint?.enable === false ? null : oxlint()
|
|
1077
|
+
overrides()
|
|
1089
1078
|
);
|
|
1079
|
+
return options.oxlint?.enable === false ? result : result.append(pluginOxlint.configs["flat/all"]).remove("oxlint/vue-svelte-exceptions").renamePlugins({ "@typescript-eslint": "ts", "import-x": "import" });
|
|
1090
1080
|
}
|
|
1091
1081
|
|
|
1092
1082
|
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.3",
|
|
5
5
|
"description": "Jiakun Zhao's ESLint config.",
|
|
6
6
|
"author": "Jiakun Zhao <hi@zhaojiakun.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -53,12 +53,12 @@
|
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
55
|
"@eslint/config-inspector": "^1.0.2",
|
|
56
|
-
"@eslint/core": "^0.
|
|
56
|
+
"@eslint/core": "^0.14.0",
|
|
57
57
|
"@jiakun-zhao/utils": "^1.3.2",
|
|
58
58
|
"@types/node": "^22.15.3",
|
|
59
59
|
"@typescript-eslint/types": "^8.31.1",
|
|
60
60
|
"bumpp": "^10.1.0",
|
|
61
|
-
"eslint": "^9.
|
|
61
|
+
"eslint": "^9.26.0",
|
|
62
62
|
"eslint-plugin-astro": "^1.3.1",
|
|
63
63
|
"eslint-plugin-vue": "^10.1.0",
|
|
64
64
|
"eslint-typegen": "^2.1.0",
|