Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect Quotation in SCSS @functions #342

Open
a-coox opened this issue Oct 15, 2018 · 1 comment
Open

Incorrect Quotation in SCSS @functions #342

a-coox opened this issue Oct 15, 2018 · 1 comment

Comments

@a-coox
Copy link

a-coox commented Oct 15, 2018

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

  1. Create a new project with the following .stylelintrc file:
    { "rules": { "string-quotes": "single" } }

  2. Add the following scss file to the project:
    @function temp() { @warn 'This is a warning'; @error 'This is an error'; }

  3. 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!

ronilaukkarinen added a commit to developer-stylechain/stylefmt that referenced this issue Oct 21, 2020
@ronilaukkarinen
Copy link

Hey @Belgiumese, this has been fixed in my active fork. Also feel free to use my version of vscode-stylefmt. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants