Skip to content

spartDev/stylelint-config-spartdev

Repository files navigation

stylelint-config-spartdev

Build Status GitHub license

A simple stylelint config for your project.

Installation

$ npm install stylelint-config-spartdev --save-dev

or

$ yarn add stylelint-config-spartdev -D

Usage

Create a .stylelintrc file with the following basic configuration:

{
  "extends": "stylelint-config-spartdev"
}

Extending the config

Simply add a "rules" key to your config and add your overrides there.

For example, to change the indentation to tabs and turn off the number-leading-zero rule:

{
  "extends": "stylelint-config-spartdev",
  "rules": {
    "indentation": "tab",
    "number-leading-zero": null
  }
}