Prettier does not work to change double quote to single quote in visual code

I work with EsLint and Prettier in visual code. Everything works well without a single and double request.

This is my .eslintrc file: { "parser": "babel-eslint", "plugins": ["prettier"], "rules": { "prettier/prettier": [ "error", { "singleQuote": true } ] } } When I use ctr + shift + P and click on "Document Format". double quote has not changed to one quote. If I use autofix, it changes, but when I save it, a single quote turns into a double quote.

How can I fix this problem.

+4
source share

Source: https://habr.com/ru/post/1681540/


All Articles