D
D
Denis Oleshkevich2015-07-29 22:45:46
css
Denis Oleshkevich, 2015-07-29 22:45:46

How to automatically check the quality of less/scss code?

What tools are there to automatically check less/scss code?
This is not a validation check, but a quality check. For example, to avoid "magic" numbers, duplication of values ​​in different places, checking for BEM usage, using !important, etc.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Denis Malinochkin, 2015-07-30
@DiAsCrafts

The easiest method is to compile to CSS and run it through CSSLint. If you want perversions, then you can drive through LessLint. Both solutions are available, for example, for Grunt. The first option is better, because, for example, plugins were recently added to Less and the same directory imports or user-defined functions (added by plugins) can cause errors.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question