@broxus/stylelint-config
v1.9.0
Published
Broxus base configuration for Stylelint
Readme
Broxus Stylelint config
Recommended Stylelint configuration to create formatted code with best practices.
Installation
Install the package as development dependency, alongside stylelint package
npm i @broxus/stylelint-config stylelint -Dyarn add @broxus/stylelint-config stylelint -Dpnpm add @broxus/stylelint-config stylelint -Dbun add @broxus/stylelint-config stylelint -DUsage
You can add the following to your .stylelintrc.js or stylelint.config.js file:
module.exports = {
extends: [
// ...other configs
'@broxus/stylelint-config',
// ...other configs
],
rules: {
// ...your own custom rules and overrides
},
};or create the .stylelintrc file in the root directory of your project and put code below to the file:
{
"extends": [
...
"@broxus/stylelint-config",
...
],
"rules": {
// ...your own custom rules and overrides
}
}or add code below to the package.json:
{
...
"stylelint": {
"extends": ["@broxus/stylelint-config"],
"rules": {}
},
...
}Choose which method you prefer, but do not use them all at the same time.
Disable properties order
If you want to disable properties order, you can add the following rule to your .stylelintrc.js, stylelint.config.js or package.json:
{
"rules": {
"order/properties-order": null
}
}