-
-
Notifications
You must be signed in to change notification settings - Fork 49
[eslint] Config (unnamed): Unexpected key "0" found. #273
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
Comments
Please format your code better. Right now it's very unreadable. |
done, sorry for that |
Do you use flat config? |
Yes. Eslint 9.19. Flat config is enabled by default |
Please set https://github.com/webpack-contrib/eslint-webpack-plugin?tab=readme-ov-file#configtype to |
I already did that |
@daniel-stoian-lgp Can you create reproducible test repo? |
I have to close the issue, as it does not seem to be caused by eslint-webpack-plugin. |
Bug report
Hello,
After migrating to eslint 9 with flat config, the Eslint webpack plugin throws the following error:
[eslint] Config (unnamed): Unexpected key "0" found.
Actual Behavior
[eslint] Config (unnamed): Unexpected key "0" found.
Expected Behavior
No error should be shown
How Do We Reproduce?
Former configuration for eslintrc
Current config for flat config:
The index.js looks like this:
I checked the API reference and the configuration should work https://eslint.org/docs/latest/integrate/nodejs-api#-new-eslintoptions . The configuration is pretty basic, it only reuses eslint recommended rules and ignores certain paths.
Eslint command using the above configuration works well. No errors.
When I try to build an app with webpack, I get the error mentioned in the description.
Please paste the results of
npx webpack-cli info
here, and mention other relevant informationThe text was updated successfully, but these errors were encountered: