Setting application linters
All of us want a clean and consistent code base. Independent of the programming language adopted, it is very common to use linters for JavaScript and other languages. But, when we discuss CSS or SCSS/LESS, this practice is not very common; we rarely use a linter for our style sheets.
A linter is a tool that analyzes code and reports errors. We set the rules, and when a piece of code doesn't pass the rules defined in the linter's configuration, the linter reports an error. This feature is very useful when a team is growing and needs to keep the code base consistent.
If you don't have strict rules for coding style, code can become a mess very quickly. Even if you work alone, it is always a good practice to keep your ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access