Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Consider trimming the plugins entries in .eslintrc

See original GitHub issue

What version of ESLint are you using?


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:closed
  • Created 7 years ago
  • Comments:17 (17 by maintainers)

github_iconTop GitHub Comments

nzakascommented, Aug 22, 2016

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.

platinumazurecommented, Aug 15, 2016

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found