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 code consistent.
In the following sections, you will learn how to apply a linter for SCSS and TypeScript files.
...