I created the rules in ESLint, how can I make Prettier format the code according to the rules specified in ESLint.
.eslintrc.js
module.exports = {
rules: {
quotes: ["error", "single"]
}
};
Before saving:
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?
In VSCode User Settings, set "prettier.eslintIntegration": true
what about WebStorm?