Babadzhanov
Babadzhanov

Reputation: 528

Remove squiggly lines from displaying for Prettier/ESlint

How to remove squiggly lines from showing on VS Code for ESlint & Prettier setup. I want ESlint to do its work, format and fix errors on save but don't want to see the squiggly lines. Not sure if its even possible as I couldn't find any info on this. Looks like Prettier is causing all the unwanted squiggly lines

Upvotes: 3

Views: 2117

Answers (2)

Akh
Akh

Reputation: 663

Using Microsoft's ESLint plugin, I resolved this behavior by adding 'prettier/prettier': 0 to the rules: [] section of my .eslintrc.js file.

This tells the plugin to not consider this an error. And formatting with prettier works exactly the same as before.

Upvotes: 1

Josh Wulf
Josh Wulf

Reputation: 4877

See this answer here. You edit settings.json and set "eslint.enable": false in VS Code. There is an extension that does it too.

This disables it in VS Code. Then you run eslint as a background task using https://www.npmjs.com/package/eslint-watch or similar.

Upvotes: 1

Related Questions