Skip to content

Commit 07bc1da

Browse files
committed
feat(module): migrate to @eslint/config-inspector
1 parent 5715ea2 commit 07bc1da

4 files changed

Lines changed: 42 additions & 42 deletions

File tree

docs/content/1.packages/0.module.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Source code on GitHub
2222

2323
- [ESLint flat config](https://eslint.org/docs/latest/use/configure/configuration-files-new), future-proof.
2424
- Project-aware Nuxt-specific settings, also supports [layers](https://nuxt.com/docs/getting-started/layers).
25-
- [Nuxt DevTools](https://github.com/nuxt/devtools) integration powered by [`eslint-flat-config-viewer`](https://github.com/antfu/eslint-flat-config-viewer).
25+
- [Nuxt DevTools](https://github.com/nuxt/devtools) integration powered by [`@eslint/config-inspector`](https://github.com/eslint/config-inspector).
2626
- Optional [dev server checker](#dev-server-checker) integration.
2727

2828
## Quick Setup
@@ -72,7 +72,7 @@ export default withNuxt(
7272
)
7373
```
7474

75-
`withNuxt` will take the rest arguments of flat configs and append them after Nuxt flat config items. You can either use the [Nuxt DevTools](https://github.com/nuxt/devtools) panel to inspect the resolved ESLint flat config, or manually run [`npx eslint-flat-config-viewer`](https://github.com/antfu/eslint-flat-config-viewer).
75+
`withNuxt` will take the rest arguments of flat configs and append them after Nuxt flat config items. You can either use the [Nuxt DevTools](https://github.com/nuxt/devtools) panel to inspect the resolved ESLint flat config, or manually run [`npx @eslint/config-inspector`](https://github.com/eslint/config-inspector).
7676

7777
## Recipes
7878

packages/module/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,13 @@
4848
}
4949
},
5050
"dependencies": {
51+
"@eslint/config-inspector": "^0.1.0",
5152
"@nuxt/devtools-kit": "^1.1.5",
5253
"@nuxt/eslint-config": "workspace:*",
5354
"@nuxt/eslint-plugin": "workspace:*",
5455
"@nuxt/kit": "^3.11.1",
5556
"chokidar": "^3.6.0",
5657
"eslint-flat-config-utils": "^0.1.2",
57-
"eslint-flat-config-viewer": "^0.1.20",
5858
"eslint-typegen": "^0.1.6",
5959
"get-port-please": "^3.1.2",
6060
"pathe": "^1.1.2",

packages/module/src/modules/config.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -139,15 +139,15 @@ function setupDevToolsIntegration(nuxt: Nuxt) {
139139
tabs.push({
140140
name: 'eslint-config',
141141
title: 'ESLint Config',
142-
icon: 'https://raw.githubusercontent.com/antfu/eslint-flat-config-viewer/main/public/favicon.svg',
142+
icon: 'https://raw.githubusercontent.com/eslint/config-inspector/main/public/favicon.svg',
143143
view: viewerUrl
144144
? {
145145
type: 'iframe',
146146
src: viewerUrl,
147147
}
148148
: {
149149
type: 'launch',
150-
description: 'Start ESLint config viewer to inspect the local ESLint config',
150+
description: 'Start ESLint config inspector to analyze the local ESLint configs',
151151
actions: [
152152
{
153153
label: 'Launch',
@@ -161,15 +161,15 @@ function setupDevToolsIntegration(nuxt: Nuxt) {
161161
viewerProcess = startSubprocess(
162162
{
163163
command: 'npx',
164-
args: ['eslint-flat-config-viewer'],
164+
args: ['@eslint/config-inspector'],
165165
cwd: nuxt.options.rootDir,
166166
env: {
167167
PORT: viewerPort.toString(),
168168
NO_OPEN: 'true',
169169
},
170170
},
171171
{
172-
id: 'eslint-flat-config-viewer',
172+
id: 'eslint-config-inspector',
173173
name: 'ESLint Config Viewer',
174174
},
175175
nuxt,

pnpm-lock.yaml

Lines changed: 35 additions & 35 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)