# @necrobox/stylelint-rules

[![npm](https://img.shields.io/npm/v/@necrobox/stylelint-rules.svg)](https://www.npmjs.com/package/@necrobox/stylelint-rules)

[Stylelint](https://stylelint.io/) plugin with custom rules.

[По-русски](./README.ru.md)

## Installation

```
npm install --save-dev @necrobox/stylelint-rules
```

Obviously Stylelint should be installed too.

## Rules

- [declarations-before-nesting](./docs/rules/declarations-before-nesting.md)  
  Forces block rules be placed above the nested blocks.

- [no-transition-all](./docs/rules/no-transition-all.md)  
  Prevents use `all` value for `transition` & `transition-property` props.

- [rgba-hex-color-only](./docs/rules/rgba-hex-color-only.md)  
  Prevents use `rgba` function with non-hex color as a first argument.

- [selector-max-type](./docs/rules/selector-max-type.md)  
  Limits the number of type selectors in a selector (compatible with [@necrobox/scss-vars-loader](https://github.com/necrobox/scss-vars-loader)).
