How to use the stylelint specification css class name

recently, the team needs to integrate a development specification when they are working on review code, in which the css check uses stylelint.
the restrictions on class names are based on dashes rather than underscores or humps. For example, eslint is restricted by the rule of camelcase. I wonder if there is a similar rule in stylelint.

or if not, can restrictions be made in other ways?

Css
May.07,2021

well missed a rule: the selector-class-pattern
pattern uses this to match.
the following question is also written in detail on the official website: ide/faq/-sharphow-do-i-configure-the--pattern-rules-for-common-css-naming-conventions-like-kebab-case" rel=" nofollow noreferrer "> https://stylelint.io/user-gui.

Menu