stylelint-config-standard-scss
stylelint-config-standard-scss copied to clipboard
Wrong kebab-case pattern for private members
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.
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.