# stylelint-max-root-rules

> Limit the count of root rules.

Latest version **0.1.0** (published 2020-07-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install stylelint-max-root-rules
pnpm add stylelint-max-root-rules
yarn add stylelint-max-root-rules
bun add stylelint-max-root-rules
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2020-07-07 |
| First published | 2020-07-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | dkrnl |
| Maintainers | dkrnl |
| Keywords | stylelint, stylelint-plugin, css, scss, linter |

## Links

- npm: https://www.npmjs.com/package/stylelint-max-root-rules
- Repository: https://github.com/dkrnl/stylelint-max-root-rules
- Homepage: https://github.com/dkrnl/stylelint-max-root-rules#readme
- Issues: https://github.com/dkrnl/stylelint-max-root-rules/issues
- npm.io page: https://npm.io/package/stylelint-max-root-rules

## Alternatives

- [eslint-plugin-sonarjs](https://npm.io/package/eslint-plugin-sonarjs.md) — 2.9M weekly downloads
- [eslint-config-expo](https://npm.io/package/eslint-config-expo.md) — 1.5M weekly downloads
- [@matter/protocol](https://npm.io/package/@matter/protocol.md) — 63.5K weekly downloads
- [@eventcatalog/linter](https://npm.io/package/@eventcatalog/linter.md) — 24.8K weekly downloads
- [@inrupt/eslint-config-base](https://npm.io/package/@inrupt/eslint-config-base.md) — 4.5K weekly downloads

## Recent versions

- 0.1.0 (latest) — 2020-07-07

## README

# stylelint-max-root-rules
Limit the count of root rules.

For example, the following patterns are considered violations:

```scss
.foo { }

.foo-bar { }
```

The following patterns are not considered violations:

```scss
.foo { 
    &-bar { }
}
```

## Installation

1. If you haven't, install [stylelint]:

```
npm install stylelint --save-dev
```

2.  Install `stylelint-max-root-rules`:

```
npm install stylelint-max-root-rules --save-dev
```

## Usage

Add `stylelint-max-root-rules` to your stylelint config `plugins` array, then add rules you need to the rules list. All rules from stylelint-max-root-rules need to be namespaced with `pitcher`.

```json
{
    "plugins": [
        "stylelint-max-root-rules"
    ],
    "rules": {
        "pitcher/max-root-rules": 1
    }
}
```

---
_Source: https://npm.io/package/stylelint-max-root-rules · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
