@antfu/eslint-config 4.0.0 → 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.js CHANGED
@@ -12,7 +12,7 @@ import c from "picocolors";
12
12
  var package_default = {
13
13
  name: "@antfu/eslint-config",
14
14
  type: "module",
15
- version: "4.0.0",
15
+ version: "4.1.0",
16
16
  packageManager: "pnpm@10.0.0",
17
17
  description: "Anthony's ESLint config",
18
18
  author: "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)",
@@ -113,10 +113,10 @@ var package_default = {
113
113
  "@typescript-eslint/parser": "^8.21.0",
114
114
  "@vitest/eslint-plugin": "^1.1.25",
115
115
  "eslint-config-flat-gitignore": "^1.0.0",
116
- "eslint-flat-config-utils": "^1.1.0",
116
+ "eslint-flat-config-utils": "^2.0.0",
117
117
  "eslint-merge-processors": "^1.0.0",
118
- "eslint-plugin-antfu": "^2.7.0",
119
- "eslint-plugin-command": "^2.1.0",
118
+ "eslint-plugin-antfu": "^3.0.0",
119
+ "eslint-plugin-command": "^3.0.0",
120
120
  "eslint-plugin-import-x": "^4.6.1",
121
121
  "eslint-plugin-jsdoc": "^50.6.3",
122
122
  "eslint-plugin-jsonc": "^2.19.1",
@@ -153,7 +153,7 @@ var package_default = {
153
153
  "@types/yargs": "^17.0.33",
154
154
  "@unocss/eslint-plugin": "^65.4.3",
155
155
  "astro-eslint-parser": "^1.2.1",
156
- bumpp: "^9.10.2",
156
+ bumpp: "^10.0.1",
157
157
  eslint: "^9.19.0",
158
158
  "eslint-plugin-astro": "^1.3.1",
159
159
  "eslint-plugin-format": "^1.0.1",
package/dist/index.js CHANGED
@@ -697,6 +697,7 @@ async function imports(options = {}) {
697
697
  "antfu/import-dedupe": "error",
698
698
  "antfu/no-import-dist": "error",
699
699
  "antfu/no-import-node-modules-by-path": "error",
700
+ "import/consistent-type-specifier-style": ["error", "prefer-top-level"],
700
701
  "import/first": "error",
701
702
  "import/no-duplicates": "error",
702
703
  "import/no-mutable-exports": "error",
@@ -2019,6 +2020,7 @@ async function typescript(options = {}) {
2019
2020
  "ts/consistent-type-definitions": ["error", "interface"],
2020
2021
  "ts/consistent-type-imports": ["error", {
2021
2022
  disallowTypeAnnotations: false,
2023
+ fixStyle: "separate-type-imports",
2022
2024
  prefer: "type-imports"
2023
2025
  }],
2024
2026
  "ts/method-signature-style": ["error", "property"],
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@antfu/eslint-config",
3
3
  "type": "module",
4
- "version": "4.0.0",
4
+ "version": "4.1.0",
5
5
  "description": "Anthony's ESLint config",
6
6
  "author": "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)",
7
7
  "license": "MIT",
@@ -87,10 +87,10 @@
87
87
  "@typescript-eslint/parser": "^8.21.0",
88
88
  "@vitest/eslint-plugin": "^1.1.25",
89
89
  "eslint-config-flat-gitignore": "^1.0.0",
90
- "eslint-flat-config-utils": "^1.1.0",
90
+ "eslint-flat-config-utils": "^2.0.0",
91
91
  "eslint-merge-processors": "^1.0.0",
92
- "eslint-plugin-antfu": "^2.7.0",
93
- "eslint-plugin-command": "^2.1.0",
92
+ "eslint-plugin-antfu": "^3.0.0",
93
+ "eslint-plugin-command": "^3.0.0",
94
94
  "eslint-plugin-import-x": "^4.6.1",
95
95
  "eslint-plugin-jsdoc": "^50.6.3",
96
96
  "eslint-plugin-jsonc": "^2.19.1",
@@ -126,7 +126,7 @@
126
126
  "@types/yargs": "^17.0.33",
127
127
  "@unocss/eslint-plugin": "^65.4.3",
128
128
  "astro-eslint-parser": "^1.2.1",
129
- "bumpp": "^9.10.2",
129
+ "bumpp": "^10.0.1",
130
130
  "eslint": "^9.19.0",
131
131
  "eslint-plugin-astro": "^1.3.1",
132
132
  "eslint-plugin-format": "^1.0.1",
@@ -151,7 +151,7 @@
151
151
  "typescript": "^5.7.3",
152
152
  "vitest": "^3.0.4",
153
153
  "vue": "^3.5.13",
154
- "@antfu/eslint-config": "4.0.0"
154
+ "@antfu/eslint-config": "4.1.0"
155
155
  },
156
156
  "resolutions": {
157
157
  "@eslint-community/eslint-utils": "^4.4.1",