Consider trimming the plugins entries in .eslintrc
See original GitHub issueWhat version of ESLint are you using?
3.2.2
Please show your full configuration:
{
"plugins": [ "html " ],
"extends": "airbnb-base"
}
What did you do? Please include the actual source code causing the issue.
Completely user error: took me about 45 minutes to figure out the appended space in .eslintrc
was causing the plugin to not be found.
Can we consider have the plugins list configured to trim the entered values and/or give a warning that it had to be trimmed before trying to resolve them?
p.s. sorry for emitting the extraneous bug report template sections, they didn’t really apply because it’s simply user error on my end and the only relevant code is the .eslintrc
file above.
Issue Analytics
- State:
- Created 7 years ago
- Comments:17 (17 by maintainers)
Top Results From Across the Web
ESLint Config: How to prevent inheritance of the extends field ...
Since I use "extends": ["airbnb-base", "prettier"] in the config of the test folder I was hoping that rules from the root folder wouldn't...
Read more >Working with Plugins - ESLint - Pluggable JavaScript Linter
A pluggable and configurable linter tool for identifying and reporting on patterns in JavaScript. Maintain your code quality with ease.
Read more >ESLint: The Essential Facts About Essential Front End Tools
ESLint is, as the name implies, a linter for ECMAScript. ... it will trim all redundant spaces, which makes the code look clean...
Read more >eslint-plugin-react | Yarn - Package Manager
Installation. npm install eslint eslint-plugin-react --save-dev.
Read more >Enforces naming conventions for everything across a ... - GitLab
One final note is that if the name were to become empty via this trimming process, it is considered to match all format...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Yes, this one is just for validating the name (which can be done before attempting to load). #6115 has to do with what happens after you try to load and it failed.
I’ll defer to @nzakas on the final answer. But if it were up to me, I would want the check done before even trying to load any plugins, and I would want a new message in eslint/messages to show the exact problem.