0.0.1 • Published 9 years ago
stylelint-config-polymer v0.0.1
stylelint-config-polymer
The shareable stylelint config for Polymer elements.
Installation
$ npm install stylelint-config-polymerUsage
Set your stylelint config to::
{
"extends": "stylelint-config-polymer"
}Extending the config
Simply add a "rules" key to your config, then add your overrides and additions there.
For example, to change the indentation to tabs and turn off the number-leading-zero rule:
{
"extends": "stylelint-config-polymer",
"rules": {
"indentation": "tab",
"number-leading-zero": null
}
}Used additions
stylelint-config-polymer is based on stylelint-config-standard with some additions:
- selector-type-no-unknown is configured to match Custom Elements selectors
- selector-pseudo-class-no-unknown is configured to ignore
:hostselector - selector-pseudo-element-no-unknown is configured to ignore
::contentand::shadowselectors
Changelog
License
0.0.1
9 years ago