@sxzz/eslint-config 7.4.2 → 7.4.4

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 CHANGED
@@ -8,7 +8,7 @@ const tseslint = __cjs_require("typescript-eslint");
8
8
  import pluginUnicorn from "eslint-plugin-unicorn";
9
9
  const pluginVue = __cjs_require("eslint-plugin-vue");
10
10
  const pluginNode = __cjs_require("eslint-plugin-n");
11
- const pluginPerfectionist = __cjs_require("eslint-plugin-perfectionist");
11
+ import pluginPerfectionist from "eslint-plugin-perfectionist";
12
12
  const pluginPrettier = __cjs_require("eslint-plugin-prettier");
13
13
  const pluginPrettierRecommended = __cjs_require("eslint-plugin-prettier/recommended");
14
14
  import pluginUnusedImports from "eslint-plugin-unused-imports";
@@ -152,9 +152,10 @@ const imports = () => [{
152
152
  import: pluginImport
153
153
  },
154
154
  rules: {
155
- "antfu/import-dedupe": "error",
156
155
  "import/first": "error",
157
156
  "import/no-default-export": "error",
157
+ "import/no-duplicates": ["error", { preferInline: true }],
158
+ "import/no-duplicates-specifier": "error",
158
159
  "import/no-mutable-exports": "error",
159
160
  "import/no-named-default": "error"
160
161
  }
@@ -634,14 +635,11 @@ const sortImports = () => [{
634
635
  "builtin",
635
636
  "external",
636
637
  "internal",
637
- "internal-type",
638
638
  "parent",
639
- "parent-type",
639
+ "subpath",
640
640
  "sibling",
641
- "sibling-type",
642
641
  "index",
643
- "index-type",
644
- "object",
642
+ "style",
645
643
  "type",
646
644
  "side-effect",
647
645
  "side-effect-style"
@@ -651,11 +649,11 @@ const sortImports = () => [{
651
649
  type: "natural"
652
650
  }],
653
651
  "perfectionist/sort-named-exports": ["warn", {
654
- groupKind: "values-first",
652
+ groups: ["value-export", "type-export"],
655
653
  type: "natural"
656
654
  }],
657
655
  "perfectionist/sort-named-imports": ["warn", {
658
- groupKind: "values-first",
656
+ groups: ["value-import", "type-import"],
659
657
  type: "natural"
660
658
  }]
661
659
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sxzz/eslint-config",
3
3
  "type": "module",
4
- "version": "7.4.2",
4
+ "version": "7.4.4",
5
5
  "description": "ESLint config for @sxzz.",
6
6
  "author": "Kevin Deng <sxzz@sxzz.moe>",
7
7
  "license": "MIT",
@@ -41,49 +41,49 @@
41
41
  },
42
42
  "dependencies": {
43
43
  "@eslint-community/eslint-plugin-eslint-comments": "^4.5.0",
44
- "@eslint/js": "^9.39.1",
44
+ "@eslint/js": "^9.39.2",
45
45
  "@eslint/markdown": "^7.5.1",
46
46
  "eslint-config-flat-gitignore": "^2.1.0",
47
47
  "eslint-config-prettier": "^10.1.8",
48
48
  "eslint-flat-config-utils": "^2.1.4",
49
49
  "eslint-plugin-antfu": "^3.1.1",
50
50
  "eslint-plugin-baseline-js": "^0.4.2",
51
- "eslint-plugin-command": "^3.3.1",
51
+ "eslint-plugin-command": "^3.4.0",
52
52
  "eslint-plugin-de-morgan": "^2.0.0",
53
- "eslint-plugin-importer": "^0.1.0",
54
- "eslint-plugin-jsdoc": "^61.4.1",
53
+ "eslint-plugin-importer": "^0.2.1",
54
+ "eslint-plugin-jsdoc": "^61.5.0",
55
55
  "eslint-plugin-jsonc": "^2.21.0",
56
56
  "eslint-plugin-n": "^17.23.1",
57
- "eslint-plugin-perfectionist": "^4.15.1",
58
- "eslint-plugin-pnpm": "^1.3.0",
57
+ "eslint-plugin-perfectionist": "^5.0.0",
58
+ "eslint-plugin-pnpm": "^1.4.3",
59
59
  "eslint-plugin-prettier": "^5.5.4",
60
60
  "eslint-plugin-regexp": "^2.10.0",
61
- "eslint-plugin-sxzz": "^0.4.1",
61
+ "eslint-plugin-sxzz": "^0.4.2",
62
62
  "eslint-plugin-unicorn": "^62.0.0",
63
63
  "eslint-plugin-unused-imports": "^4.3.0",
64
64
  "eslint-plugin-vue": "^10.6.2",
65
- "eslint-plugin-yml": "^1.19.0",
65
+ "eslint-plugin-yml": "^1.19.1",
66
66
  "globals": "^16.5.0",
67
- "jsonc-eslint-parser": "^2.4.1",
67
+ "jsonc-eslint-parser": "^2.4.2",
68
68
  "local-pkg": "^1.1.2",
69
- "typescript-eslint": "^8.48.1",
69
+ "typescript-eslint": "^8.50.0",
70
70
  "vue-eslint-parser": "^10.2.0",
71
- "yaml-eslint-parser": "^1.3.1"
71
+ "yaml-eslint-parser": "^1.3.2"
72
72
  },
73
73
  "devDependencies": {
74
74
  "@eslint/config-inspector": "^1.4.2",
75
75
  "@sxzz/prettier-config": "^2.2.6",
76
- "@types/node": "^24.10.1",
77
- "@typescript/native-preview": "7.0.0-dev.20251202.1",
76
+ "@types/node": "^25.0.3",
77
+ "@typescript/native-preview": "7.0.0-dev.20251221.1",
78
78
  "@unocss/eslint-plugin": "^66.5.10",
79
79
  "bumpp": "^10.3.2",
80
- "eslint": "^9.39.1",
80
+ "eslint": "^9.39.2",
81
81
  "eslint-typegen": "^2.3.0",
82
- "prettier": "^3.7.3",
83
- "rolldown-plugin-require-cjs": "^0.3.2",
84
- "tsdown": "^0.17.0-beta.5",
82
+ "prettier": "^3.7.4",
83
+ "rolldown-plugin-require-cjs": "^0.3.3",
84
+ "tsdown": "^0.18.2",
85
85
  "typescript": "^5.9.3",
86
- "unrun": "^0.2.15"
86
+ "unrun": "^0.2.20"
87
87
  },
88
88
  "resolutions": {
89
89
  "@types/eslint": "-"