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.

Plugins array makes ESLint do nothing at all

See original GitHub issue

Tell us about your environment

  • ESLint Version: 5.1.0
  • Prettier Version: 1.13.7
  • Node Version: 9.9.0
  • npm Version: 6.0.0

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

Please show your full configuration:

Configuration
{
  "extends": 
    [
      "airbnb-base", 
      "prettier"
    ],
  "rules": {
    "linebreak-style": 0,
    "no-param-reassign": 0,
    "no-use-before-define": [
      "warn",
      {
        "functions": false,
        "classes": true,
        "variables": true
      }
    ]
  },
  "env": {
    "browser": true,
    "node": true,
    "jasmine": true
  },
  "globals": {
    "gapi": true,
    "$": true
  },
  "parserOptions": {
    "ecmaVersion": 6
  }
}

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

I was following a tutorial which added the code below, but this seems to break ESLint for me. ESLint does not do anything if I add this line. The tutorial I was following was on prettier@v0.22.0 and eslint@v3.18.0 so I am not sure if this is deprecated or a bug, because I’m having trouble finding it in the documentation.

"plugins": [
    "prettier"
  ],

Paste the command you used to run ESLint:

VSCode extension

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
EddyVinckcommented, Jul 18, 2018

I forgot to install eslint-plugin-prettier.

I was following a tutorial and I must have missed that step. I assumed it would work because I had already installed Prettier and I was not getting any errors for missing packages.

0reactions
platinumazurecommented, Jul 18, 2018

Thanks for the update @EddyVinck.

Curious to know what was missed, in case others might find this issue in future. Mind sharing?

Read more comments on GitHub >

github_iconTop Results From Across the Web

ESLint fails to load plugins when using ESLint 6.x #696 - GitHub
I'm using TypeScript + Yarn workspaces + Lerna and have all the plugins installed locally and globally . Failed to load plugin prettier:...
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 not working in VS Code? - Stack Overflow
If ESLint is running in the terminal but not inside VSCode, it is probably because the extension is unable to detect both the...
Read more >
12 essential ESLint rules for React - LogRocket Blog
In this post, we'll go over these ESLint rules and plugins, ... By default, custom Hooks with dependency arrays will not be checked...
Read more >
ESLint Plugin TypeScript
Name ✓ 🔒 🔧 💭 @typescript‑eslint/adjacent‑overload‑signatures ✓ @typescript‑eslint/array‑type 🔒 🔧 @typescript‑eslint/await‑thenable ✓ 💭
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