stylelint-config-standard-scss icon indicating copy to clipboard operation
stylelint-config-standard-scss copied to clipboard

Wrong kebab-case pattern for private members

Open pepa-linha opened this issue 2 years ago • 1 comments

Hi,

documentation Sass says https://sass-lang.com/documentation/at-rules/use/#private-members

"Sass makes it easy to define a private member by starting its name with either - or _ ."

but this regex ^(-?[a-z][a-z0-9]*)(-[a-z0-9]+)*$ does not support underscore in the beginning, only dash.

I don't take the _ prefix as part of "kebab-case", I don't think it's related.

pepa-linha avatar Sep 23 '23 19:09 pepa-linha

Sorry for the late answer, but there has been discussion about this already before: https://github.com/stylelint-scss/stylelint-config-standard-scss/issues/12

If you want it to change, please open a Pull Request with the change, and we can continue discussing it.

kristerkari avatar Dec 11 '23 17:12 kristerkari