https://github.com/levdbas/stylelint-basebuilder
https://github.com/levdbas/stylelint-basebuilder
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/levdbas/stylelint-basebuilder
- Owner: Levdbas
- Created: 2020-06-25T10:45:54.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2024-04-05T04:55:08.000Z (about 2 years ago)
- Last Synced: 2024-05-05T18:46:30.249Z (about 2 years ago)
- Language: JavaScript
- Size: 236 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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](https://github.com/stylelint/stylelint).
## Installation
You need to have `stylelint` and this config as part of your `devDependencies`.
`yarn add stylelint stylelint-basebuilder -D`
## Usage
### Load everything
To use all the rules all at once add `stylelint-basebuilder` to your
`extends` property in `.stylelintrc`.
```json
{
"extends": [
"stylelint-basebuilder"
]
}
```
### Override specific rules
To override the rules set by `stylelint-basebuilder` you need to define your
own rules and set them as shown below.
```json
{
"extends": [
"stylelint-basebuilder"
],
"rules": {
"indentation": 2
}
}
```