@pangolinjs/stylelint-config
v4.0.0
Published
Shareable stylelint config for Pangolin.js
Downloads
101
Maintainers
Readme
Pangolin.js stylelint config
Shareable stylelint config for Pangolin.js based on stylelint-config-sass-guidelines.
The class name pattern follows the Suit CSS naming convention.
Installation
Install the configuration and all peer dependencies with one command:
npm install --save-dev @pangolinjs/stylelint-config stylelint
Usage
Create a config
Create a stylelint configuration either as a JSON or a JavaScript file:
.stylelintrc.json
{
"extends": [
"@pangolinjs/stylelint-config"
]
}
stylelint.config.js
module.exports = {
extends: [
'@pangolinjs/stylelint-config'
]
}
Modifying config and rules
Overwrite rules from the default config:
JSON configuration file
{
"extends": [
"@pangolinjs/stylelint-config"
],
"rules": {
"number-leading-zero": false
}
}
JavaScript configuration file
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: