0.1.2 • Published 6 years ago

@worldia/stylelint-config v0.1.2

Weekly downloads
-
License
MIT
Repository
-
Last release
6 years ago

@worldia/stylelint-config

This package includes the shareable stylelint configuration used at Worldia.

Installation

$ yarn add @worldia/stylelint-config -D

or if you use npm

$ npm install @worldia/stylelint-config --save-dev

Usage

Create a .stylelintrc file with the following basic configuration:

{
  "extends": "@worldia/stylelint-config"
}

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": "@worldia/stylelint-config",
  "rules": {
    "indentation": "tab",
    "number-leading-zero": null
  }
}