Meesta
Meesta

Reputation: 89

Is there any tool to forcing the naming convention of css classes in less files?

I was wondering if there is any library for makes you force to respect a regex convention for css classes in less files, for example my-class-container. For javascript code we have eslint who checks, but I want also a convention for the style of the app.

We are using yarn as a package manager and reactjs for the frontend

Upvotes: 1

Views: 238

Answers (1)

Ryan Le
Ryan Le

Reputation: 8412

There is also a linter for style is StyleLint

You also have several rules to config including regex convention for CSS classes.

Remember to install stylelint extension

You could also try some demo here:

Upvotes: 1

Related Questions