@samuelmeuli/stylelint-config
v3.0.0
Published
My Stylelint configuration
Downloads
714
Maintainers
Readme
stylelint-config
This is my personal configuration for Stylelint. It includes rules for CSS and SCSS and enforces a reasonable property order.
Overview
The rules are based on the sass-guidelines and rational-order configurations and include a couple of custom additions and deletions.
The configuration is designed to be used together with Prettier.
Usage
- Install the required packages:
yarn add --dev stylelint @samuelmeuli/stylelint-config
- Create the following entry in your
package.json
file:
{
// ...
"stylelint": {
"extends": "@samuelmeuli/stylelint-config"
}
}
- Add a linting script to your
package.json
file:
{
"scripts": {
"lint": "stylelint --fix --max-warnings 0 '**/*.{css,sass,scss}'"
}
}