Adding stylelint for SCSS files

We will be using stylelint, a mighty, modern style sheet linter, supporting CSS, LESS, and SASS. stylelint has a lot of rules, available by default, and it is very easy to extend with our own rules, it's totally un-opinionated. Another advantage is that all rules are disabled by default, and we only enable the ones that we want to use. Let's see it in practice.

Open Terminal window inside of the ./Client folder, and type the following commands:

 npm install stylelint --save-dev &&
 npm install stylelint-config-standard --save-dev &&
 npm install stylelint-scss --save-dev

The preceding commands are very clear, right? We are installing the default configuration standard plugin, along with the SCSS plugin.

You

Get Hands-On Full Stack Web Development with Angular 6 and Laravel 5 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.