@dg-scripts/stylelint-config
Version:
StyleLint configuration used by dg-scripts.
64 lines (44 loc) • 2.64 kB
Markdown
# @dg-scripts/stylelint-config
[](https://github.com/sabertazimi)
[](https://raw.githubusercontent.com/sabertazimi/bod/main/LICENSE)
[](https://www.npmjs.com/package/@dg-scripts/stylelint-config)
[](https://www.npmjs.com/package/@dg-scripts/stylelint-config)
[](https://cdn.jsdelivr.net/npm/@dg-scripts/stylelint-config@latest/)
[](https://github.com/sabertazimi/bod/actions/workflows/ci.yml)
[](https://codecov.io/gh/sabertazimi/bod)
[](https://github.com/sabertazimi/bod/actions/workflows/ci.yml)
This package includes the shareable StyleLint configuration used by [Bod CLI](https://github.com/sabertazimi/bod).
## Installation
```bash
npm install -D @dg-scripts/stylelint-config
```
## Usage
Set `.stylelintrc.json` to:
```json
{
"extends": "@dg-scripts/stylelint-config"
}
```
### 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:
```json
{
"extends": "@dg-scripts/stylelint-config",
"rules": {
"indentation": "tab",
"number-leading-zero": null
}
}
```
## Features
- Based on [`stylelint-config-bod`](https://npmjs.com/package/stylelint-config-bod).
- Prettier Support.
## Reference
- [CSS Standard](https://github.com/stylelint/stylelint-config-standard)
- [CSS Order](https://github.com/stormwarning/stylelint-config-recess-order)
## Contact
[](mailto:sabertazimi@gmail.com)
[](https://twitter.com/sabertazimi)
[](https://github.com/sabertazimi)