Package Exports
- stylelint-suitcss
- stylelint-suitcss/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (stylelint-suitcss) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
stylelint-suitcss
A collection of stylelint plugins for SUIT CSS.
Installation
npm install stylelint-suitcss --save-dev
# or
yarn add stylelint-suitcss --devUsage
Add stylelint-suitcss to your stylelint config plugins array, then add rules
you need to the rules object.
// .stylelintrc
{
"plugins": [
"stylelint-suitcss"
],
"rules": {
"suitcss/custom-property-no-outside-root": true,
"suitcss/root-no-standard-properties": true,
"suitcss/selector-root-no-composition": true
}
}Available rules
custom-property-no-outside-root- Disallow custom properties outside of:rootrules.root-no-standard-properties- Disallow standard properties inside:rootrules.selector-root-no-composition- Disallow the composition of:rootin selectors.