0.0.1 • Published 8 years ago
stylelint-config-polymer v0.0.1
stylelint-config-polymer
The shareable stylelint config for Polymer elements.
Installation
$ npm install stylelint-config-polymer
Usage
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
:host
selector - selector-pseudo-element-no-unknown is configured to ignore
::content
and::shadow
selectors
Changelog
License
0.0.1
8 years ago