Skip to content

Commit

Permalink
feat: Improve eslintrc warning message (#19023)
Browse files Browse the repository at this point in the history
* feat: Improve eslintrc error message

Fixes #19020
  • Loading branch information
mdjermanovic authored Oct 17, 2024
1 parent 1d7c077 commit bf723bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ const cli = {
debug("Using flat config?", usingFlatConfig);

if (allowFlatConfig && !usingFlatConfig) {
process.emitWarning("You are using an eslintrc configuration file, which is deprecated and support will be removed in v10.0.0. Please migrate to an eslint.config.js file. See https://eslint.org/docs/latest/use/configure/migration-guide for details.", "ESLintRCWarning");
process.emitWarning("You are using an eslintrc configuration file, which is deprecated and support will be removed in v10.0.0. Please migrate to an eslint.config.js file. See https://eslint.org/docs/latest/use/configure/migration-guide for details. An eslintrc configuration file is used because you have the ESLINT_USE_FLAT_CONFIG environment variable set to false. If you want to use an eslint.config.js file, remove the environment variable. If you want to find the location of the eslintrc configuration file, use the --debug flag.", "ESLintRCWarning");
}

const CLIOptions = createCLIOptions(usingFlatConfig);
Expand Down

0 comments on commit bf723bd

Please sign in to comment.