stylelint-scss / stylelint-config-standard-scss

The standard shareable SCSS config for Stylelint.
MIT License
121 stars 19 forks source link

Wrong kebab-case pattern for private members #127

Open pepa-linha opened 1 year ago

pepa-linha commented 1 year ago

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.

kristerkari commented 11 months ago

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.