Skip to content
This repository was archived by the owner on Aug 29, 2025. It is now read-only.
This repository was archived by the owner on Aug 29, 2025. It is now read-only.

Incorrect Quotation in SCSS @functions #342

Description

@a-coox

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!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions