stylelint-config-strict-scss
Strict shareable config for stylelint
and SCSS.
Features
- Extends
stylelint-standard
config - Turns on almost all rules from
stylelint-scss
- Protects you from common mistakes
- Handles how
$variables
are defined and enforces to use them - Handles how
@mixins
,%placeholders
, and@functions
should be defined - Also checks
@imports
, declarations,url()
s, and other minor things - Enforces to use
autoprefixer
by restricting vendor prefixes - Maintains consistent declarations order with
stylelint-order
- Has sensible defaults
- Is opened for further extension!
Installation
npm install --save-dev stylelint-config-strict-scss
Code example
This code is considered valid (and beautiful):
; %absctract-div div
Do you want to see it in action?
Take a look at our Vue
template!
License
MIT.