Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: Corrected notice for invalid (:) plugin names (#13473)
* Fix: Added more specific notice for invalid (:) plugin names * PR feedback: better .txt; throwing immediately * Typo in lib/cli-engine/config-array-factory.js * Improve plugin-invalid.txt * Apply suggestions from code review Co-authored-by: Milos Djermanovic <milos.djermanovic@gmail.com> * Test name improvement Co-authored-by: Milos Djermanovic <milos.djermanovic@gmail.com>
- Loading branch information
1 parent
fc5783d
commit 3ca2700
Showing
3 changed files
with
36 additions
and
5 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,8 @@ | ||
"<%- configName %>" is invalid syntax for a config specifier. | ||
|
||
* If your intention is to extend from a configuration exported from the plugin, add the configuration name after a slash: e.g. "<%- configName %>/myConfig". | ||
* If this is the name of a shareable config instead of a plugin, remove the "plugin:" prefix: i.e. "<%- configName.slice("plugin:".length) %>". | ||
|
||
"<%- configName %>" was referenced from the config file in "<%- importerName %>". | ||
|
||
If you still can't figure out the problem, please stop by https://eslint.org/chat/help to chat with the team. |
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