DEV Community

Discussion on: How to make ESLint work with Prettier avoiding conflicts and problems

Collapse
 
fyfirman profile image
Firmansyah Yanuar

You saved me! I was annoyed when i format my code with ALT+SHIFT+F in my vscode that formatting to Prettier rules and when saving my files it execute ESLint and prettier give me a warning. Now i just set my ALT+SHIFT+F to ESLint cause it will formatting to Prettier too.

ANW, if anyone occurred this problem in ESLint console:

Request textDocument/formatting failed with message: Cannot find module 'prettier'
Require stack:
...
Enter fullscreen mode Exit fullscreen mode

Dont forget to install prettier ( yarn add -D prettier )