-
-
Notifications
You must be signed in to change notification settings - Fork 48
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
Cannot read config file: eslint.config.mjs. #263
Comments
@kku39 new ESLintPlugin({
overrideConfigFile: path.resolve(__dirname, "eslint.config.mjs"),
configType: "flat",
}); |
@Anasnew99 It works for me too. Thanks...! |
Now my trouble is settled by #263 (comment) . But since flat config is now the default in ESLint v9, so maybe eslint-webpack-plugin should follow suit. Can anyone decide if it should be fixed or not? Thanks. |
@ricardogobbosouza Can we use |
@alexander-akait will be in version |
oh my god, I looked at the configuration a few times and also noticed that it can use the old eslintrc configuration, but since the flat configuration is now the default in ESLint v9, I didn't notice that it was set to eslintrc by default. Thanks for your answer, it solved my problem. |
Bug report
When I try webpack build, the following error occurs.
It looks like YAMLException, but my config file is mjs.
Some other people already reported the same problem on other projects as follows, but I think this is eslint-webpack-plugin's problem.
Actual Behavior
Expected Behavior
Lint works correctly, as same as executing
npx eslint .
If you run my sample project, it is the expected behavior that eslint points out linting error of "no-var" at index.ts.
How Do We Reproduce?
npm ci
npx webpack
Please paste the results of
npx webpack-cli info
here, and mention other relevant information (Edited)The text was updated successfully, but these errors were encountered: