mirror of
https://github.com/bigchaindb/stylelint-config-bigchaindb.git
synced 2025-02-14 21:10:28 +01:00
42 lines
1.2 KiB
Markdown
42 lines
1.2 KiB
Markdown
|
# [](https://www.bigchaindb.com)
|
||
|
|
||
|
> 💅 For consistent CSS across BigchainDB, IPDB & ascribe's repos. Extends on [stylelint-config-standard](https://github.com/stylelint/stylelint-config-standard)
|
||
|
|
||
|
[](https://www.npmjs.com/package/stylelint-config-bigchaindb)
|
||
|
[](https://travis-ci.org/bigchaindb/stylelint-config-bigchaindb)
|
||
|
[](https://greenkeeper.io/)
|
||
|
|
||
|
This cat clearly forgot to lint her CSS before deployment:
|
||
|
|
||
|

|
||
|
|
||
|
Don't be like that cat.
|
||
|
|
||
|
## Installation
|
||
|
|
||
|
```bash
|
||
|
npm install stylelint-config-bigchaindb
|
||
|
```
|
||
|
|
||
|
## Usage
|
||
|
|
||
|
Add this to your `.stylelintrc` file:
|
||
|
|
||
|
```json
|
||
|
{
|
||
|
"extends": "stylelint-config-bigchaindb"
|
||
|
}
|
||
|
```
|
||
|
|
||
|
Then use `stylelint` against your css files, e.g.:
|
||
|
|
||
|
```bash
|
||
|
stylelint *.scss
|
||
|
```
|
||
|
|
||
|
Or lint in your editor with one of the many editor plugins for [stylelint](https://stylelint.io), e.g. for Atom:
|
||
|
|
||
|
```bash
|
||
|
apm install linter-stylelint
|
||
|
```
|