Shareable stylelint config for Pangolin.js based on stylelint-config-sass-guidelines.
The class name pattern follows the Suit CSS naming convention.
Install the configuration and all peer dependencies with one command:
npm install --save-dev @pangolinjs/stylelint-config stylelint
Create a stylelint configuration either as a JSON or a JavaScript file:
{
"extends": [
"@pangolinjs/stylelint-config"
]
}
module.exports = {
extends: [
'@pangolinjs/stylelint-config'
]
}
Overwrite rules from the default config:
{
"extends": [
"@pangolinjs/stylelint-config"
],
"rules": {
"number-leading-zero": false
}
}
module.exports = {
extends: [
'@pangolinjs/stylelint-config'
],
rules: {
'number-leading-zero': false
}
}
stylelint has an extensive list of rules. Additional rules are provided by the following plugins: