Skip to content

Commit bf723bd

Browse files
authored
feat: Improve eslintrc warning message (#19023)
* feat: Improve eslintrc error message Fixes #19020
1 parent 1d7c077 commit bf723bd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/cli.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ const cli = {
378378
debug("Using flat config?", usingFlatConfig);
379379

380380
if (allowFlatConfig && !usingFlatConfig) {
381-
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");
381+
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");
382382
}
383383

384384
const CLIOptions = createCLIOptions(usingFlatConfig);

0 commit comments

Comments
 (0)