Prettier integration by ESlint rules

Hi, I have a question.  I created the rules in ESlint, how can I make Prettier format the code according to the rules specified in ESlint.

after saving, Prettier automatically formats the code.

I want to use Prettier and ESlint. without using .prettierrc.js -> singleQuote: true,. in order for Prettier to format the file according to the ESlint rules, before saving, Prettier takes the rules specified in eslintrc.js and formats the code
How can i do this
4 comments

In VSCode User Settings, set "prettier.eslintIntegration": true

what about webstorm

0

I'm afraid it won't solve my problem.

0

But this is what VSCode is using when prettier.eslintIntegration is enabled: https://github.com/prettier/prettier-vscode#vscode-specific-settings

1

Please sign in to leave a comment.