stylelint-config
Endouble's CSS Stylelint configuration
Install
Make sure you have Node (>=8) installed
npm install stylelint @endouble.com/stylelint-config-endouble --save-dev
# or
yarn add --dev stylelint @endouble.com/stylelint-config-endouble
Using
Create a .stylelint.json
file at the root of your project and add the following configuration:
{
"extends": "@endouble.com/stylelint-config-endouble"
}
Add to package.json
a script to lint your desired files:
{
"scripts": {
"lint": "stylelint css/*.scss"
}
}
For more information, please follow the official guide.
Rules
Check the rules folder for examples of this configuration rules' applied.
For more information about how the rules work and more examples, please refer to the official stylelint docs. Don't forget to check the plugins docs too.
If by any reason you need to turn of stylelint, you should follow this guide.
Tests
npm test
# or
yarn test
Maintainers
License
MIT