@antfu/eslint-config 2.11.4 → 2.11.6

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/README.md CHANGED
@@ -578,12 +578,12 @@ npx simple-git-hooks
578
578
 
579
579
  ## View what rules are enabled
580
580
 
581
- I built a visual tool to help you view what rules are enabled in your project and apply them to what files, [eslint-flat-config-viewer](https://github.com/antfu/eslint-flat-config-viewer)
581
+ I built a visual tool to help you view what rules are enabled in your project and apply them to what files, [@eslint/config-inspector](https://github.com/eslint/config-inspector)
582
582
 
583
583
  Go to your project root that contains `eslint.config.js` and run:
584
584
 
585
585
  ```bash
586
- npx eslint-flat-config-viewer
586
+ npx @eslint/config-inspector
587
587
  ```
588
588
 
589
589
  ## Versioning Policy
package/dist/cli.cjs CHANGED
@@ -48,7 +48,7 @@ var import_picocolors = __toESM(require("picocolors"), 1);
48
48
  var package_default = {
49
49
  name: "@antfu/eslint-config",
50
50
  type: "module",
51
- version: "2.11.4",
51
+ version: "2.11.6",
52
52
  packageManager: "pnpm@8.15.5",
53
53
  description: "Anthony's ESLint config",
54
54
  author: "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)",
@@ -74,7 +74,7 @@ var package_default = {
74
74
  scripts: {
75
75
  build: "nr typegen && tsup --format esm,cjs --clean --dts",
76
76
  stub: "tsup --format esm",
77
- dev: "tsup --format esm,cjs --watch & eslint-flat-config-viewer",
77
+ dev: "tsup --format esm,cjs --watch & npx @eslint/config-inspector",
78
78
  watch: "tsup --format esm,cjs --watch",
79
79
  lint: "eslint .",
80
80
  typegen: "esno scripts/typegen.ts",
@@ -134,18 +134,18 @@ var package_default = {
134
134
  }
135
135
  },
136
136
  dependencies: {
137
- "@antfu/install-pkg": "^0.3.1",
137
+ "@antfu/install-pkg": "^0.3.2",
138
138
  "@clack/prompts": "^0.7.0",
139
139
  "@stylistic/eslint-plugin": "^1.7.0",
140
140
  "@typescript-eslint/eslint-plugin": "^7.4.0",
141
141
  "@typescript-eslint/parser": "^7.4.0",
142
142
  "eslint-config-flat-gitignore": "^0.1.3",
143
- "eslint-flat-config-utils": "^0.1.1",
143
+ "eslint-flat-config-utils": "^0.1.2",
144
144
  "eslint-merge-processors": "^0.1.0",
145
145
  "eslint-plugin-antfu": "^2.1.2",
146
146
  "eslint-plugin-eslint-comments": "^3.2.0",
147
147
  "eslint-plugin-import-x": "^0.4.4",
148
- "eslint-plugin-jsdoc": "^48.2.1",
148
+ "eslint-plugin-jsdoc": "^48.2.2",
149
149
  "eslint-plugin-jsonc": "^2.14.1",
150
150
  "eslint-plugin-markdown": "^4.0.1",
151
151
  "eslint-plugin-n": "^16.6.2",
@@ -172,24 +172,24 @@ var package_default = {
172
172
  "@antfu/eslint-config": "workspace:*",
173
173
  "@antfu/eslint-plugin-prettier": "^5.0.1-1",
174
174
  "@antfu/ni": "^0.21.12",
175
+ "@eslint/config-inspector": "^0.1.0",
175
176
  "@stylistic/eslint-plugin-migrate": "^1.7.0",
176
177
  "@types/eslint": "^8.56.6",
177
178
  "@types/fs-extra": "^11.0.4",
178
- "@types/node": "^20.11.30",
179
+ "@types/node": "^20.12.2",
179
180
  "@types/prompts": "^2.4.9",
180
181
  "@types/yargs": "^17.0.32",
181
- "@unocss/eslint-plugin": "^0.58.7",
182
+ "@unocss/eslint-plugin": "^0.58.8",
182
183
  "astro-eslint-parser": "^0.16.3",
183
184
  bumpp: "^9.4.0",
184
185
  eslint: "9.0.0-rc.0",
185
- "eslint-flat-config-viewer": "^0.1.14",
186
186
  "eslint-plugin-astro": "^0.33.1",
187
187
  "eslint-plugin-format": "^0.1.0",
188
188
  "eslint-plugin-react": "^7.34.1",
189
189
  "eslint-plugin-react-hooks": "^4.6.0",
190
190
  "eslint-plugin-react-refresh": "^0.4.6",
191
191
  "eslint-plugin-svelte": "2.36.0-next.13",
192
- "eslint-typegen": "^0.1.4",
192
+ "eslint-typegen": "^0.2.0",
193
193
  esno: "^4.7.0",
194
194
  execa: "^8.0.1",
195
195
  "fast-glob": "^3.3.2",
package/dist/cli.js CHANGED
@@ -19,7 +19,7 @@ import c from "picocolors";
19
19
  var package_default = {
20
20
  name: "@antfu/eslint-config",
21
21
  type: "module",
22
- version: "2.11.4",
22
+ version: "2.11.6",
23
23
  packageManager: "pnpm@8.15.5",
24
24
  description: "Anthony's ESLint config",
25
25
  author: "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)",
@@ -45,7 +45,7 @@ var package_default = {
45
45
  scripts: {
46
46
  build: "nr typegen && tsup --format esm,cjs --clean --dts",
47
47
  stub: "tsup --format esm",
48
- dev: "tsup --format esm,cjs --watch & eslint-flat-config-viewer",
48
+ dev: "tsup --format esm,cjs --watch & npx @eslint/config-inspector",
49
49
  watch: "tsup --format esm,cjs --watch",
50
50
  lint: "eslint .",
51
51
  typegen: "esno scripts/typegen.ts",
@@ -105,18 +105,18 @@ var package_default = {
105
105
  }
106
106
  },
107
107
  dependencies: {
108
- "@antfu/install-pkg": "^0.3.1",
108
+ "@antfu/install-pkg": "^0.3.2",
109
109
  "@clack/prompts": "^0.7.0",
110
110
  "@stylistic/eslint-plugin": "^1.7.0",
111
111
  "@typescript-eslint/eslint-plugin": "^7.4.0",
112
112
  "@typescript-eslint/parser": "^7.4.0",
113
113
  "eslint-config-flat-gitignore": "^0.1.3",
114
- "eslint-flat-config-utils": "^0.1.1",
114
+ "eslint-flat-config-utils": "^0.1.2",
115
115
  "eslint-merge-processors": "^0.1.0",
116
116
  "eslint-plugin-antfu": "^2.1.2",
117
117
  "eslint-plugin-eslint-comments": "^3.2.0",
118
118
  "eslint-plugin-import-x": "^0.4.4",
119
- "eslint-plugin-jsdoc": "^48.2.1",
119
+ "eslint-plugin-jsdoc": "^48.2.2",
120
120
  "eslint-plugin-jsonc": "^2.14.1",
121
121
  "eslint-plugin-markdown": "^4.0.1",
122
122
  "eslint-plugin-n": "^16.6.2",
@@ -143,24 +143,24 @@ var package_default = {
143
143
  "@antfu/eslint-config": "workspace:*",
144
144
  "@antfu/eslint-plugin-prettier": "^5.0.1-1",
145
145
  "@antfu/ni": "^0.21.12",
146
+ "@eslint/config-inspector": "^0.1.0",
146
147
  "@stylistic/eslint-plugin-migrate": "^1.7.0",
147
148
  "@types/eslint": "^8.56.6",
148
149
  "@types/fs-extra": "^11.0.4",
149
- "@types/node": "^20.11.30",
150
+ "@types/node": "^20.12.2",
150
151
  "@types/prompts": "^2.4.9",
151
152
  "@types/yargs": "^17.0.32",
152
- "@unocss/eslint-plugin": "^0.58.7",
153
+ "@unocss/eslint-plugin": "^0.58.8",
153
154
  "astro-eslint-parser": "^0.16.3",
154
155
  bumpp: "^9.4.0",
155
156
  eslint: "9.0.0-rc.0",
156
- "eslint-flat-config-viewer": "^0.1.14",
157
157
  "eslint-plugin-astro": "^0.33.1",
158
158
  "eslint-plugin-format": "^0.1.0",
159
159
  "eslint-plugin-react": "^7.34.1",
160
160
  "eslint-plugin-react-hooks": "^4.6.0",
161
161
  "eslint-plugin-react-refresh": "^0.4.6",
162
162
  "eslint-plugin-svelte": "2.36.0-next.13",
163
- "eslint-typegen": "^0.1.4",
163
+ "eslint-typegen": "^0.2.0",
164
164
  esno: "^4.7.0",
165
165
  execa: "^8.0.1",
166
166
  "fast-glob": "^3.3.2",
package/dist/index.cjs CHANGED
@@ -243,7 +243,7 @@ async function imports(options = {}) {
243
243
  },
244
244
  {
245
245
  files: ["**/bin/**/*", `**/bin.${GLOB_SRC_EXT}`],
246
- name: "antfu:imports:bin",
246
+ name: "antfu:disables:imports-bin",
247
247
  rules: {
248
248
  "antfu/no-import-dist": "off",
249
249
  "antfu/no-import-node-modules-by-path": "off"
@@ -460,7 +460,7 @@ async function javascript(options = {}) {
460
460
  },
461
461
  {
462
462
  files: [`scripts/${GLOB_SRC}`, `cli.${GLOB_SRC_EXT}`],
463
- name: "antfu:scripts-overrides",
463
+ name: "antfu:disables:cli",
464
464
  rules: {
465
465
  "no-console": "off"
466
466
  }
@@ -884,7 +884,7 @@ async function formatters(options = {}, stylistic2 = {}) {
884
884
  const pluginFormat = await interopDefault(import("eslint-plugin-format"));
885
885
  const configs = [
886
886
  {
887
- name: "antfu:formatters:setup",
887
+ name: "antfu:formatter:setup",
888
888
  plugins: {
889
889
  format: pluginFormat
890
890
  }
@@ -1151,7 +1151,7 @@ async function sortPackageJson() {
1151
1151
  return [
1152
1152
  {
1153
1153
  files: ["**/package.json"],
1154
- name: "antfu:sort-package-json",
1154
+ name: "antfu:sort:package-json",
1155
1155
  rules: {
1156
1156
  "jsonc/sort-array-values": [
1157
1157
  "error",
@@ -1252,7 +1252,7 @@ function sortTsconfig() {
1252
1252
  return [
1253
1253
  {
1254
1254
  files: ["**/tsconfig.json", "**/tsconfig.*.json"],
1255
- name: "antfu:sort-tsconfig",
1255
+ name: "antfu:sort:tsconfig",
1256
1256
  rules: {
1257
1257
  "jsonc/sort-keys": [
1258
1258
  "error",