@kevinmarrec/cloudstack-stylelint-config
Version:
Opinionated Stylelint config.
41 lines (25 loc) • 1.14 kB
Markdown
# @kevinmarrec/cloudstack-stylelint-config
## Description
Opinionated [Stylelint](https://stylelint.io) config.
## Opinions
- Extends the following configs:
- [stylelint-config-recommended-scss](https://github.com/stylelint-scss/stylelint-config-recommended-scss)
- [stylelint-config-html](https://github.com/ota-meshi/stylelint-config-html)
- [stylelint-config-recess-order](https://github.com/stormwarning/stylelint-config-recess-order)
- Enforces the following rules:
- [declaration-block-no-duplicate-properties](https://stylelint.io/user-guide/rules/list/declaration-block-no-duplicate-properties)
- [length-zero-no-unit](https://stylelint.io/user-guide/rules/list/length-zero-no-unit)
- Supports all [Stylelint config](https://stylelint.io/user-guide/configure) options
## Usage
> Requires [Stylelint](https://stylelint.io) v16 _or later_.
### Default
```ts
// stylelint.config.ts
export { default } from '@kevinmarrec/cloudstack-stylelint-config'
```
### Extended
```ts
// stylelint.config.ts
import { useConfig } from '@kevinmarrec/cloudstack-stylelint-config'
export default useConfig({ /* options */ })
```