3.0.0 • Published 8 years ago

stylelint-config-semantic v3.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

npm npm Travis

Semantic rules for your CSS

Code should always be written in such a way that makes it look like a single person wrote it, no matter how many people have contributed and that is the purpose of this set of rules powered by stylelint.

Installation

You need to have stylelint and this config as part of your devDependencies.

npm i stylelint stylelint-config-semantic -D

Usage

Load everything

To use all the rules all at once add stylelint-config-semantic to your extends property in .stylelintrc.

{
  "extends": [
    "stylelint-config-semantic"
  ]
}

Load a specific rule

Each rule for stylelint-config-semantic can be loaded individually if you only want to load a specific rule. They are all located in the lib folder.

Load the color and general rule set.

{
  "extends": [
    "stylelint-config-semantic/lib/color",
    "stylelint-config-semantic/lib/general"
  ]
}

Override specific rules

To override the rules set by stylelint-config-semantic you need to define your own rules and set them as you see fit.

{
  "extends": [
    "stylelint-config-semantic"
  ],
  "rules": {
    "indentation": 2
  }
}
3.0.0

8 years ago

2.1.0

8 years ago

2.0.0

8 years ago

1.10.0

8 years ago

1.9.0

8 years ago

1.8.0

8 years ago

1.7.0

8 years ago

1.6.0

8 years ago

1.5.0

8 years ago

1.4.0

8 years ago

1.3.0

8 years ago

1.2.1

8 years ago

1.2.0

8 years ago

1.1.0

8 years ago

1.0.0

8 years ago