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.
source
share