1.0.1 • Published 3 years ago
stylelint-config-utility v1.0.1
stylelint-config-utility
This is a utility config that provides a custom .stylelintrc config.
Getting started
Installation:
npm i -D stylelint-config-utility@latestRun the following command and install packages provided as dev dependencies:
npm info "stylelint-config-utility@latest" peerDependenciesUsage
stylelint-config-utility
The exported config contains stylelint rules, which can be extended by adding additional rules.
Add "extends": "stylelint-config-utility" to your .stylelintrc.json.
{
"extends": ["stylelint-config-utility"],
}If you want, you can extend the rules, by adding additional rules, for example:
{
"extends": ["stylelint-config-utility"],
"rules": {
"selector-no-vendor-prefix": true,
},
}You can check that the package lints using:
npx stylelint **/*.scssor with the fix flag:
npx stylelint **/*.scss --fixMore information
See Github.