@uva-glass/stylelint-config
v1.1.0
Published
Glass stylelint configuration
Downloads
13
Readme
GLASS-stylelint
Stylelint configuration for the Glass frontend
Installation and usage
Installing
Note
Make sure Node >= 18 is installed
npm i @uva-glass/stylelint-config --save-dev
Using
Create a .stylelintrc.json
file in the root of your project and add the following:
{
"extends": ["@uva-glass/stylelint-config"]
}
Overriding
Some rules might not be too specific or limiting for your code. In those cases, the default configuration can be extended or overwritten. For instance for files that are used on the command line by Jest, but are included in the regular code base:
{
"extends": ["@uva-glass/stylelint-config"],
"overrides": [
{
"rules": {
"order/properties-alphabetical-order": false
}
}
]
}