stylelint-config-case

0.1.0 • Public • Published

stylelint-config-case

Travis Build Status

The case shareable config for stylelint.

Example

.selector-1::before {
  background: linear-gradient(#fff, rgba(0, 0, 0, 0.8));
  box-sizing: border-box;
  display: block;
  color: #333;
}

.selector-x {
  width: 10%;
}
.selector-y {
  width: 20%;
}
.selector-z {
  width: 30%;
}

Note: the config is tested against this example, as such the example contains plenty of CSS syntax, formatting and features.

Installation

$ npm i stylelint-config-case

Usage

Set your stylelint config to:

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

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-case",
  "rules": {
    "indentation": "tab",
    "number-leading-zero": null
  }
}

MIT © Bogdan Chadkin

Dependencies (0)

    Dev Dependencies (6)

    Package Sidebar

    Install

    npm i stylelint-config-case

    Weekly Downloads

    0

    Version

    0.1.0

    License

    MIT

    Last publish

    Collaborators

    • trysound