-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Improve config error messages (#18457)
* fix: Improve config error messages * Fix failing test
- Loading branch information
Showing
4 changed files
with
40 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
"use strict"; | ||
|
||
module.exports = function() { | ||
return ` | ||
ESLint couldn't find an eslint.config.(js|mjs|cjs) file. | ||
From ESLint v9.0.0, the default configuration file is now eslint.config.js. | ||
If you are using a .eslintrc.* file, please follow the migration guide | ||
to update your configuration file to the new format: | ||
https://eslint.org/docs/latest/use/configure/migration-guide | ||
If you still have problems after following the migration guide, please stop by | ||
https://eslint.org/chat/help to chat with the team. | ||
`.trimStart(); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters