# stylelint-suitcss

> A collection of stylelint plugins for SUIT CSS

Latest version **5.0.0** (published 2022-01-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install stylelint-suitcss
pnpm add stylelint-suitcss
yarn add stylelint-suitcss
bun add stylelint-suitcss
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 5.0.0 |
| Published | 2022-01-17 |
| First published | 2017-03-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=4 |
| Dependencies | 3 |
| Unpacked size | 18.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 21 |
| Author | Simon Smith |
| Maintainers | alecrust, simonsmith |
| Keywords | stylelint-plugin, stylelint, css, lint, suitcss |

## Links

- npm: https://www.npmjs.com/package/stylelint-suitcss
- Repository: https://github.com/suitcss/stylelint-suitcss
- Issues: https://github.com/suitcss/stylelint-suitcss/issues
- npm.io page: https://npm.io/package/stylelint-suitcss

## Dependencies (3)

- [stylelint](https://npm.io/package/stylelint.md) ^14.2.0
- [lodash.find](https://npm.io/package/lodash.find.md) ^4.6.0
- [postcss-selector-parser](https://npm.io/package/postcss-selector-parser.md) ^6.0.8

## 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

- 5.0.0 (latest) — 2022-01-17
- 4.0.0 — 2021-08-03
- 3.0.0 — 2018-02-24
- 2.0.0 — 2018-01-10
- 1.0.0 — 2017-03-01

## README

# stylelint-suitcss

[![NPM version](http://img.shields.io/npm/v/stylelint-suitcss.svg)](https://www.npmjs.com/package/stylelint-suitcss) [![Build Status](https://github.com/suitcss/stylelint-suitcss/actions/workflows/ci.yml/badge.svg)](https://github.com/suitcss/stylelint-suitcss/actions/workflows/ci.yml)

A collection of [stylelint](https://stylelint.io/) plugins for SUIT CSS.

## Installation

```
npm install stylelint-suitcss --save-dev

# or

yarn add stylelint-suitcss --dev
```

## Usage

Add `stylelint-suitcss` to your stylelint config plugins array, then add rules
you need to the `rules` object.

```js
// .stylelintrc
{
  "plugins": [
    "stylelint-suitcss"
  ],
  "rules": {
    "suitcss/custom-property-no-outside-root": true,
    "suitcss/root-no-standard-properties": true,
    "suitcss/selector-root-no-composition": true
  }
}
```

## Available rules

* [`custom-property-no-outside-root`](./rules/custom-property-no-outside-root/README.md) - Disallow custom properties outside of `:root` rules.
* [`root-no-standard-properties`](./rules/root-no-standard-properties/README.md) - Disallow standard properties inside `:root` rules.
* [`selector-root-no-composition`](./rules/selector-root-no-composition/README.md) - Disallow the composition of `:root` in selectors.

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