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

Nested property shorthand error #672

Open
rehberbey opened this issue Sep 13, 2022 · 0 comments
Open

Nested property shorthand error #672

rehberbey opened this issue Sep 13, 2022 · 0 comments

Comments

@rehberbey
Copy link

With SCSS we can write a shorthand property and write the rest of that property to the value of that property. That's fine, but Stylelint will throw an error if we assign a value to shorthand.

Input

button {
    border: none {
/*  ^? Unexpected nested property "border"
    (scss/declaration-nested-properties)
    Stylelintscss/declaration-nested-properties */
        block-end: 2px solid red;
    /*  ^? Unexpected unknown property "block-end"
        (property-no-unknown)
        Stylelintproperty-no-unknown */
    }
}

Output

button {
  border: none;
  border-block-end: 2px solid red;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant