question-mark
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.

Eslint@5.9.0 complains about specific plugins I don't know about

See original GitHub issue

Tell us about your environment

  • ESLint Version: 5.9.0
  • Node Version: 10.2.1
  • npm Version: 5.6.0

What parser (default, Babel-ESLint, etc.) are you using? Default.

Please show your full configuration:

Configuration
{
  "extends": "standard",
  "rules": {
    "comma-dangle": ["error", {
      "arrays": "always-multiline",
      "objects": "always-multiline",
      "imports": "always-multiline",
      "exports": "always-multiline",
      "functions": "ignore"
    }],
    "curly": ["error", "all"],
    "eqeqeq": ["error", "smart"],
    "no-extra-semi": "error",
    "quotes": ["error", "double"],
    "semi": ["error", "always"]
  },
  "globals": {
    "DocumentFragment": true,
    "fetch": true,
    "HTMLElement": true,
    "location": true,
    "Node": true
  }
}

What did you do? Please include the actual source code causing the issue, as well as the command that you used to run ESLint.

npx eslint src/**

What did you expect to happen? I expected eslint would work as usual.

What actually happened? Please include the actual, raw output from ESLint.

I got this error.

Failed to load plugin ie11: Cannot find module 'eslint-plugin-ie11'

I tried to install eslint-plugin-ie11, then it complained about eslint-plugin-local-rules. When I installed it, it broke with an exception about a file in eslint-plugin-local-rules, that cannot be found.

Please note that my configuration extend standard. I never heard about those plugins. Any help would be appreciated.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
ilyavolodincommented, Dec 5, 2018

It looks like this issue turned out to not be a problem with ESLint itself, so I’m going to close it. Feel free to create a new issue if your run into this again, and can verify that the problem is with the ESLint itself, and not with the setup.

0reactions
brunoscopelliticommented, Dec 5, 2018

I’ve finally understood the problem. This is the project folder structure

<root>
    - index.js
    - project-a
       - package.json
       - node_modules <--- caused the problem 

To solve the problem I added node_modules in eslintignore file.

Read more comments on GitHub >

github_iconTop Results From Across the Web

eslint - npm
ESLint uses an AST to evaluate patterns in code. ESLint is completely pluggable, every single rule is a plugin and you can add...
Read more >
eslint "parsing error: Unexpected token {" in JSX
Eslint on its own is not good enough. First install babel-eslint : npm install --save-dev babel-eslint. Or with yarn:
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 >
User Guide | eslint-plugin-vue
Official ESLint plugin for Vue.js.
Read more >
eslint/eslint - Gitter
If ESLint is installed globally, then make sure eslint-plugin-node is also installed globally. A globally-installed ESLint cannot find a locally-installed ...
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 Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found