-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Flat config mode not detected when config is outside of root #338
Comments
Can you help narrow it down to a minimal reproduction? Thank you. |
You can test with this repo: https://github.com/GaborTorma/nuxt-eslint-vs-code-js-debug-terminal-error2 You need to clone it and start with VS Code and run I found the problem. When we use in JS Debugger terminal the eslint path is |
workaround with nuxt.config.ts: export default defineNuxtConfig({
modules: [
'@nuxt/eslint',
],
eslint: {
checker: {
eslintPath: 'eslint/use-at-your-own-risk'
},
},
}) |
Ah I see, we detect flat config under rootDir: eslint/packages/module/src/modules/checker.ts Lines 36 to 37 in 7398e4e
I guess, in a way, you have to use that workaround if your config is outside of your root. Or you may do eslint: {
checker: {
configType: 'flat'
},
}, |
When ESLint v9.0 comes up I think we should then make the default to flat so this won't be an issue later on. |
d84af6f should fix it. |
For some reason, I am still experiencing this error. It doesn't affect anything, but looks annoying :)
|
This issue is still here if not set the configType to flat. |
I tried a new 0.3.0.alpha.0 and alpha.1 version in WSL Debian and checker: true.
I'v got the following error if I try to run it in VS Code JS Debugger terminal. In bash, we have no error.
The text was updated successfully, but these errors were encountered: