You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What did you expect to happen?
should not remove the double quotes in CSS string on editor save.
What actually happened?
removed double quotes in CSS sting on editor save, and added single quotes. I guess that .prettierrc has a rule single quote: true that actually for Javascript files.
questions
Is there a way to add rules for stylelint-prettier that enable double quotes?
The text was updated successfully, but these errors were encountered:
stylelint-config-prettier disables any stylelint rules that may conflict with prettier's formatting of the files. Prettier shall format your css files based upon the settings in your prettierrc. In this case it is honoring your singleQuotes setting.
If you want to use different prettier settings for different file types then you can use overrides as @j-f1 says. Change your .prettierrc to the following if you want to use single quotes for all files except css files:
Version:
prettier: 1.14.2
stylelint: 9.6.0
stylelint-prettier: 1.0.3
stylelint-config-prettier: 4.0.0
.stylelintrc
.prettierrc
What source code are you linting?
What did you expect to happen?
should not remove the double quotes in CSS string on editor save.
What actually happened?
removed double quotes in CSS sting on editor save, and added single quotes. I guess that .prettierrc has a rule
single quote: true
that actually for Javascript files.questions
Is there a way to add rules for
stylelint-prettier
that enable double quotes?The text was updated successfully, but these errors were encountered: