stylelint-config-polymer
The shareable stylelint config for Polymer elements.
Installation
$ npm install stylelint-config-polymer
Usage
Set your stylelint config to::
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:
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