Skip to content
This repository has been archived by the owner on Jul 27, 2018. It is now read-only.

web-padawan/stylelint-config-polymer

Repository files navigation

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",
  "processors": [ "stylelint-processor-html" ]
}

Note: you need to install stylelint-processor-html to lint inline styles.

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",
  "processors": [ "stylelint-processor-html" ],
  "rules": {
    "indentation": "tab",
    "number-leading-zero": null
  }
}

Description of used additions

stylelint-config-polymer is based on stylelint-config-standard with some additions:

About

shareable stylelint config for Polymer elements

Resources

License

Stars

Watchers

Forks

Packages

No packages published