Skip to content

Commit

Permalink
docs: update badges
Browse files Browse the repository at this point in the history
  • Loading branch information
rodoabad committed Apr 3, 2016
1 parent f9d4d92 commit 4d32e9f
Showing 1 changed file with 4 additions and 23 deletions.
27 changes: 4 additions & 23 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
[![npm](https://img.shields.io/npm/v/stylelint-config-semantic.svg)](https://www.npmjs.com/package/stylelint-config-semantic)
[![Build Status](https://travis-ci.org/rodoabad/stylelint-config-semantic.svg?branch=master)](https://travis-ci.org/rodoabad/stylelint-config-semantic)
[![npm](https://img.shields.io/npm/v/stylelint-config-semantic.svg?style=flat-square)](https://www.npmjs.com/package/stylelint-config-semantic)
[![npm](https://img.shields.io/npm/dm/stylelint-config-semantic.svg?style=flat-square)](https://www.npmjs.com/package/stylelint-config-semantic)
[![Travis](https://img.shields.io/travis/rodoabad/stylelint-config-semantic.svg?style=flat-square)](https://travis-ci.org/rodoabad/stylelint-config-semantic)

# Semantic rules for your CSS

Expand All @@ -13,9 +14,7 @@ You need to have `stylelint` and this config as part of your `devDependencies`.

## Usage

### Load everything

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

```json
{
Expand All @@ -25,24 +24,6 @@ To use all the rules all at once add `stylelint-config-semantic` to your `extend
}
```

### 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.

```json
{
"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.

```json
Expand Down

0 comments on commit 4d32e9f

Please sign in to comment.