How to disable prettier errors in webstorm?
WebStorm Version: 2019.2.4.
The main reason to use prettier is to for the ease of formatting the code once you have written it. However, the entire code is littered with prettier-errors once I start coding. I want to disable prettier warnings. I tried disabling the plugin, but the problem still persists. Any suggestions?
Please sign in to leave a comment.
Prettier integration plugin, when enabled, only provides a Reformat with Prettier action + prettier code style import, it's not responsible for showing Prettier warnings in editor. You must be using ESlint+Prettier ( prettier-eslint , eslint-plugin-prettier)
To get rid of the linter errors, try disabling ESLint in Settings | Languages & Frameworks | JavaScript | Code Quality Tools | ESLint
It would be great if you could do this with the keyboard or menu item. And receive an occasional reminder that you've turned it off. Since you want it on, but in the initial stages of coding it gets in the way. It doesn't help that IntelliJ / Webstorms default markers for this make prettier issues look like syntax errors.
Found this question via Google because I ran into the same thing. It is incredibly annoying for this to be a thing. What's weird is I created several projects that had ESLint enabled but did not spam prettier errors. I guess it depends on the flavor of create-react-app you are using.
I got rid of the errors by adding a .prettierignore file with the following contents: