@jiakun-zhao/eslint-config 4.0.11 → 4.1.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.d.mts ADDED
@@ -0,0 +1 @@
1
+
package/dist/cli.d.ts ADDED
@@ -0,0 +1 @@
1
+
package/dist/cli.mjs ADDED
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env node
2
+ import '@oxlint/migrate/dist/bin/oxlint-migrate.mjs';
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.0.11";
378
+ const version = "4.1.0";
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-x": "import"
627
+ })
628
+ };
629
+ }
630
+
619
631
  function perfectionist() {
620
632
  return {
621
633
  name: "perfectionist",
@@ -746,7 +758,7 @@ function stylistic() {
746
758
  "style/jsx-pascal-case": "warn",
747
759
  "style/jsx-quotes": "warn",
748
760
  "style/jsx-self-closing-comp": ["warn", { component: true, html: false }],
749
- "style/jsx-tag-spacing": "warn",
761
+ "style/jsx-tag-spacing": ["warn", { afterOpening: "never", beforeClosing: "never", beforeSelfClosing: "always", closingSlash: "never" }],
750
762
  "style/jsx-wrap-multilines": "warn",
751
763
  "style/key-spacing": "warn",
752
764
  "style/keyword-spacing": "warn",
@@ -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,6 +1083,8 @@ function index(options = {}) {
1059
1083
  unicorn(),
1060
1084
  regexp(),
1061
1085
  command(),
1086
+ unocss(),
1087
+ oxlint(),
1062
1088
  overrides()
1063
1089
  );
1064
1090
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@jiakun-zhao/eslint-config",
3
3
  "type": "module",
4
- "version": "4.0.11",
4
+ "version": "4.1.0",
5
5
  "description": "Jiakun Zhao's ESLint config.",
6
6
  "author": "Jiakun Zhao <hi@zhaojiakun.com>",
7
7
  "license": "MIT",
@@ -18,6 +18,9 @@
18
18
  "main": "./dist/index.mjs",
19
19
  "module": "./dist/index.mjs",
20
20
  "types": "./dist/index.d.ts",
21
+ "bin": {
22
+ "oxlint-migrate": "./dist/cli.mjs"
23
+ },
21
24
  "files": [
22
25
  "dist"
23
26
  ],
@@ -35,17 +38,20 @@
35
38
  }
36
39
  },
37
40
  "dependencies": {
41
+ "@oxlint/migrate": "^0.16.8",
38
42
  "@stylistic/eslint-plugin": "^4.2.0",
39
- "@typescript-eslint/eslint-plugin": "^8.30.1",
43
+ "@typescript-eslint/eslint-plugin": "^8.31.1",
44
+ "@unocss/eslint-plugin": "66.1.0-beta.12",
40
45
  "eslint-config-flat-gitignore": "^2.1.0",
41
46
  "eslint-flat-config-utils": "^2.0.1",
42
47
  "eslint-plugin-antfu": "^3.1.1",
43
48
  "eslint-plugin-command": "^3.2.0",
44
- "eslint-plugin-import-x": "^4.10.5",
49
+ "eslint-plugin-import-x": "^4.11.0",
45
50
  "eslint-plugin-jsonc": "^2.20.0",
46
- "eslint-plugin-perfectionist": "^4.11.0",
51
+ "eslint-plugin-oxlint": "^0.16.8",
52
+ "eslint-plugin-perfectionist": "^4.12.3",
47
53
  "eslint-plugin-regexp": "^2.7.0",
48
- "eslint-plugin-unicorn": "^58.0.0",
54
+ "eslint-plugin-unicorn": "^59.0.0",
49
55
  "eslint-plugin-unused-imports": "^4.1.4",
50
56
  "globals": "^16.0.0"
51
57
  },
@@ -53,18 +59,18 @@
53
59
  "@eslint/config-inspector": "^1.0.2",
54
60
  "@eslint/core": "^0.13.0",
55
61
  "@jiakun-zhao/utils": "^1.3.1",
56
- "@types/node": "^22.14.1",
57
- "@typescript-eslint/types": "^8.30.1",
62
+ "@types/node": "^22.15.3",
63
+ "@typescript-eslint/types": "^8.31.1",
58
64
  "bumpp": "^10.1.0",
59
- "eslint": "^9.25.0",
65
+ "eslint": "^9.25.1",
60
66
  "eslint-plugin-astro": "^1.3.1",
61
- "eslint-plugin-vue": "^10.0.0",
67
+ "eslint-plugin-vue": "^10.0.1",
62
68
  "eslint-typegen": "^2.1.0",
63
69
  "eslint-vitest-rule-tester": "^2.2.0",
64
70
  "tsx": "^4.19.3",
65
71
  "typescript": "^5.8.3",
66
72
  "unbuild": "^3.5.0",
67
- "vitest": "^3.1.1"
73
+ "vitest": "^3.1.2"
68
74
  },
69
75
  "scripts": {
70
76
  "build": "unbuild",