Quantcast
Channel: Active questions tagged visual-studio-code - Stack Overflow
Viewing all articles
Browse latest Browse all 99267

Prettier doesn't work for changing double quote to single quote in visual code

$
0
0

I work with EsLint and Prettier in visual code. Everything work well without singlequote and doublequote.

This is my .eslintrc file: { "parser": "babel-eslint", "plugins": ["prettier"], "rules": { "prettier/prettier": [ "error", { "singleQuote": true } ] } } When I use ctr+ shift+P and type "format Document". the double quote didn't change to single quote. If I use autofix, it changes but when I save it, the single quote turn into double quote.

How can I fix that problem.


Viewing all articles
Browse latest Browse all 99267

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>