@jiakun-zhao/eslint-config 4.0.12 → 4.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/index.d.mts +3 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.mjs +29 -3
- package/package.json +14 -12
package/dist/index.d.mts
CHANGED
|
@@ -4,6 +4,9 @@ import { FlatGitignoreOptions } from 'eslint-config-flat-gitignore';
|
|
|
4
4
|
interface Options {
|
|
5
5
|
ignores?: string[];
|
|
6
6
|
gitignore?: FlatGitignoreOptions;
|
|
7
|
+
oxlint?: {
|
|
8
|
+
enable?: boolean;
|
|
9
|
+
};
|
|
7
10
|
}
|
|
8
11
|
|
|
9
12
|
declare function export_default(options?: Options): FlatConfigComposer;
|
package/dist/index.d.ts
CHANGED
|
@@ -4,6 +4,9 @@ import { FlatGitignoreOptions } from 'eslint-config-flat-gitignore';
|
|
|
4
4
|
interface Options {
|
|
5
5
|
ignores?: string[];
|
|
6
6
|
gitignore?: FlatGitignoreOptions;
|
|
7
|
+
oxlint?: {
|
|
8
|
+
enable?: boolean;
|
|
9
|
+
};
|
|
7
10
|
}
|
|
8
11
|
|
|
9
12
|
declare function export_default(options?: Options): FlatConfigComposer;
|
package/dist/index.mjs
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import { composer } from 'eslint-flat-config-utils';
|
|
1
|
+
import { renamePluginsInRules, composer } from 'eslint-flat-config-utils';
|
|
2
2
|
import pluginStylistic from '@stylistic/eslint-plugin';
|
|
3
3
|
import pluginTypescript from '@typescript-eslint/eslint-plugin';
|
|
4
|
+
import pluginUnocss from '@unocss/eslint-plugin';
|
|
4
5
|
import pluginAntfu from 'eslint-plugin-antfu';
|
|
5
6
|
import pluginCommand from 'eslint-plugin-command';
|
|
6
7
|
import pluginImportX from 'eslint-plugin-import-x';
|
|
7
8
|
import pluginJsonc from 'eslint-plugin-jsonc';
|
|
9
|
+
import pluginOxlint from 'eslint-plugin-oxlint';
|
|
8
10
|
import pluginPerfectionist from 'eslint-plugin-perfectionist';
|
|
9
11
|
import * as pluginRegExp from 'eslint-plugin-regexp';
|
|
10
12
|
import pluginUnicorn from 'eslint-plugin-unicorn';
|
|
@@ -373,7 +375,7 @@ function jsonc() {
|
|
|
373
375
|
];
|
|
374
376
|
}
|
|
375
377
|
|
|
376
|
-
const version = "4.
|
|
378
|
+
const version = "4.1.1";
|
|
377
379
|
|
|
378
380
|
const name$3 = "astro-multi-top-level-element-indent";
|
|
379
381
|
const _astroMultiTopLevelElementIndent = createRule({
|
|
@@ -616,6 +618,16 @@ function overrides() {
|
|
|
616
618
|
];
|
|
617
619
|
}
|
|
618
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
|
+
|
|
619
631
|
function perfectionist() {
|
|
620
632
|
return {
|
|
621
633
|
name: "perfectionist",
|
|
@@ -902,6 +914,18 @@ function unicorn() {
|
|
|
902
914
|
};
|
|
903
915
|
}
|
|
904
916
|
|
|
917
|
+
function unocss() {
|
|
918
|
+
return {
|
|
919
|
+
name: "unocss",
|
|
920
|
+
plugins: {
|
|
921
|
+
unocss: pluginUnocss
|
|
922
|
+
},
|
|
923
|
+
rules: {
|
|
924
|
+
"unocss/order": "warn"
|
|
925
|
+
}
|
|
926
|
+
};
|
|
927
|
+
}
|
|
928
|
+
|
|
905
929
|
function unusedImports() {
|
|
906
930
|
return {
|
|
907
931
|
name: "unused-imports",
|
|
@@ -1059,7 +1083,9 @@ function index(options = {}) {
|
|
|
1059
1083
|
unicorn(),
|
|
1060
1084
|
regexp(),
|
|
1061
1085
|
command(),
|
|
1062
|
-
|
|
1086
|
+
unocss(),
|
|
1087
|
+
overrides(),
|
|
1088
|
+
options.oxlint?.enable === false ? null : oxlint()
|
|
1063
1089
|
);
|
|
1064
1090
|
}
|
|
1065
1091
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jiakun-zhao/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "4.
|
|
4
|
+
"version": "4.1.1",
|
|
5
5
|
"description": "Jiakun Zhao's ESLint config.",
|
|
6
6
|
"author": "Jiakun Zhao <hi@zhaojiakun.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -36,35 +36,37 @@
|
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@stylistic/eslint-plugin": "^4.2.0",
|
|
39
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
39
|
+
"@typescript-eslint/eslint-plugin": "^8.31.1",
|
|
40
|
+
"@unocss/eslint-plugin": "66.1.0-beta.12",
|
|
40
41
|
"eslint-config-flat-gitignore": "^2.1.0",
|
|
41
42
|
"eslint-flat-config-utils": "^2.0.1",
|
|
42
43
|
"eslint-plugin-antfu": "^3.1.1",
|
|
43
44
|
"eslint-plugin-command": "^3.2.0",
|
|
44
|
-
"eslint-plugin-import-x": "^4.
|
|
45
|
+
"eslint-plugin-import-x": "^4.11.0",
|
|
45
46
|
"eslint-plugin-jsonc": "^2.20.0",
|
|
46
|
-
"eslint-plugin-
|
|
47
|
+
"eslint-plugin-oxlint": "^0.16.8",
|
|
48
|
+
"eslint-plugin-perfectionist": "^4.12.3",
|
|
47
49
|
"eslint-plugin-regexp": "^2.7.0",
|
|
48
|
-
"eslint-plugin-unicorn": "^
|
|
50
|
+
"eslint-plugin-unicorn": "^59.0.0",
|
|
49
51
|
"eslint-plugin-unused-imports": "^4.1.4",
|
|
50
52
|
"globals": "^16.0.0"
|
|
51
53
|
},
|
|
52
54
|
"devDependencies": {
|
|
53
55
|
"@eslint/config-inspector": "^1.0.2",
|
|
54
56
|
"@eslint/core": "^0.13.0",
|
|
55
|
-
"@jiakun-zhao/utils": "^1.3.
|
|
56
|
-
"@types/node": "^22.
|
|
57
|
-
"@typescript-eslint/types": "^8.
|
|
57
|
+
"@jiakun-zhao/utils": "^1.3.2",
|
|
58
|
+
"@types/node": "^22.15.3",
|
|
59
|
+
"@typescript-eslint/types": "^8.31.1",
|
|
58
60
|
"bumpp": "^10.1.0",
|
|
59
|
-
"eslint": "^9.25.
|
|
61
|
+
"eslint": "^9.25.1",
|
|
60
62
|
"eslint-plugin-astro": "^1.3.1",
|
|
61
|
-
"eslint-plugin-vue": "^10.
|
|
63
|
+
"eslint-plugin-vue": "^10.1.0",
|
|
62
64
|
"eslint-typegen": "^2.1.0",
|
|
63
65
|
"eslint-vitest-rule-tester": "^2.2.0",
|
|
64
|
-
"tsx": "^4.19.
|
|
66
|
+
"tsx": "^4.19.4",
|
|
65
67
|
"typescript": "^5.8.3",
|
|
66
68
|
"unbuild": "^3.5.0",
|
|
67
|
-
"vitest": "^3.1.
|
|
69
|
+
"vitest": "^3.1.2"
|
|
68
70
|
},
|
|
69
71
|
"scripts": {
|
|
70
72
|
"build": "unbuild",
|