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
Actual Behavior string-quotes: single is set in my stylelintrc file. Most code is auto-formatted correctly, except for in SCSS functions, where @warn, @error, and @debug directives are formatted to double quotes. This then logs as an error with stylelint.
Expected Behavior
Formatting with stylefmt should consistently change this code to single quotes.
Steps to Reproduce
Create a new project with the following .stylelintrc file: { "rules": { "string-quotes": "single" } }
Add the following scss file to the project: @function temp() { @warn 'This is a warning'; @error 'This is an error'; }
Trigger a stylefmt format, either through format on save or right click > format. This will format into the following: @function temp() { @warn "This is a warning"; @error "This is an error"; }
Thanks for your help!
The text was updated successfully, but these errors were encountered:
Environment
Visual Studio Code 1.28.1
Actual Behavior
string-quotes: single
is set in my stylelintrc file. Most code is auto-formatted correctly, except for in SCSS functions, where@warn
,@error
, and@debug
directives are formatted to double quotes. This then logs as an error with stylelint.Expected Behavior
Formatting with stylefmt should consistently change this code to single quotes.
Steps to Reproduce
Create a new project with the following .stylelintrc file:
{ "rules": { "string-quotes": "single" } }
Add the following scss file to the project:
@function temp() { @warn 'This is a warning'; @error 'This is an error'; }
Trigger a stylefmt format, either through format on save or right click > format. This will format into the following:
@function temp() { @warn "This is a warning"; @error "This is an error"; }
Thanks for your help!
The text was updated successfully, but these errors were encountered: