@skyscanner/stylelint-plugin-backpack
v4.0.0
Published
Stylelint configuration for Backpack development
Readme
stylelint-plugin-backpack
Stylelint plugin to prevent magic arbitrary values and promote the use of Backpack tokens.
Installation
npm install @skyscanner/stylelint-plugin-backpack --save-devUsage
Add @skyscanner/stylelint-plugin-backpack to your stylelint config plugins array,
{
"plugins": ["@skyscanner/stylelint-plugin-backpack"]
}Once you have added the plugin, you will need to add the rules you wish to use to your rules config. All rules from @skyscanner/stylelint-plugin-backpack need to be namespaced with backpack.
Like so:
// .stylelintrc
{
"rules": {
"backpack/use-typography-styles": true,
}
}