Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

docs: How to configure the port of eslint config inspector ? #762

Closed
BaptisteCrouzet opened this issue Dec 11, 2024 · 2 comments
Closed
Labels
documentation Improvements or additions to documentation

Comments

@BaptisteCrouzet
Copy link

📚 Is your documentation request related to a problem?

Hi,

I am looking for how to specify a port for eslint config inspector, launched through the Nuxt devtools.
As I am working on Windows with the WSL, I made my own image and opened some ports (3000 for dev server, 6006 for storybook) and the devtools are opening the port 8123 for the eslint config inspector :

node /usr/src/app/node_modules/.pnpm/@eslint+config-inspector@0.5.6_eslint@9.16.0_jiti@2.4.1_/node_modules/@eslint/config-inspector/bin.mjs --no-open

ℹ Starting ESLint config inspector at http://localhost:8123

How to make this port always the same in order to open it on my image ? Is there any options to configure in the nuxt.config.ts file ?

🔍 Where should you find it?

In the "features" page https://devtools.nuxt.com/guide/features

ℹ️ Additional context

Working in WSL, fixed ports are needed
I saw also that the eslint config inspector package mentions the 7777 port

@BaptisteCrouzet BaptisteCrouzet added the documentation Improvements or additions to documentation label Dec 11, 2024
@antfu
Copy link
Member

antfu commented Dec 20, 2024

That view is contributed by https://github.com/nuxt/eslint, I just released 0.7.4 exposing the option for you to config: https://github.com/nuxt/eslint/releases/tag/v0.7.4

@BaptisteCrouzet
Copy link
Author

Perfect, thank you !

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants