# @stylistic/stylelint-plugin

> A collection of stylistic/formatting Stylelint rules

Latest version **5.3.0** (published 2026-08-09) · MIT license · 0 weekly downloads

## Install

```sh
npm install @stylistic/stylelint-plugin
pnpm add @stylistic/stylelint-plugin
yarn add @stylistic/stylelint-plugin
bun add @stylistic/stylelint-plugin
```

## Health

**Score 65/100 (B)** — status: active.

Positive: esm support; no vulnerabilities; has provenance; recently updated; high maintenance score.

Warnings: low downloads; no types.

## Facts

| | |
|---|---|
| Version | 5.3.0 |
| Published | 2026-08-09 |
| First published | 2023-12-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM |
| Dependencies | 7 |
| Unpacked size | 343.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 107 |
| Author | Sergey Artemov |
| Maintainers | firefoxic |
| Keywords | codeguide, css, csslint, formatting, lint, linter, stylelint, stylelint-plugin, stylistic |

## Links

- npm: https://www.npmjs.com/package/@stylistic/stylelint-plugin
- Repository: https://github.com/stylelint-stylistic/stylelint-stylistic
- Homepage: https://github.com/stylelint-stylistic/stylelint-stylistic#readme
- Issues: https://github.com/stylelint-stylistic/stylelint-stylistic/issues
- npm.io page: https://npm.io/package/@stylistic/stylelint-plugin

## Dependencies (7)

- [postcss](https://npm.io/package/postcss.md) ^8.5.26
- [style-search](https://npm.io/package/style-search.md) ^0.1.0
- [postcss-value-parser](https://npm.io/package/postcss-value-parser.md) ^4.2.0
- [@csstools/css-tokenizer](https://npm.io/package/@csstools/css-tokenizer.md) ^4.0.0
- [postcss-selector-parser](https://npm.io/package/postcss-selector-parser.md) ^7.1.5
- [@csstools/css-parser-algorithms](https://npm.io/package/@csstools/css-parser-algorithms.md) ^4.0.0
- [@csstools/media-query-list-parser](https://npm.io/package/@csstools/media-query-list-parser.md) ^5.0.0

## 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.3.0 (latest) — 2026-08-09
- 5.2.1 — 2026-07-01
- 5.2.0 — 2026-05-20
- 5.1.0 — 2026-03-28
- 5.0.1 — 2026-01-22
- 5.0.0 — 2026-01-15
- 4.0.1 — 2026-01-15
- 4.0.0 — 2025-07-22
- 3.1.3 — 2025-06-25
- 3.1.2 — 2025-02-05
- 3.1.1 — 2024-10-04
- 3.1.0 — 2024-09-23
- 3.0.1 — 2024-08-18
- 3.0.0 — 2024-07-30
- 2.1.3 — 2024-07-29
- … 4 more at https://npm.io/package/@stylistic/stylelint-plugin/versions

## README

# Stylelint Stylistic

[![License: MIT][license-image]][license-url]
[![Changelog][changelog-image]][changelog-url]
[![Test Status][test-image]][test-url]

An updatable collection of stylistic rules for [Stylelint](https://github.com/stylelint/stylelint) (in plugin form).

## About and purpose

[Stylelint has removed 76 rules](https://stylelint.io/migration-guide/to-16#removed-deprecated-stylistic-rules) that enforce stylistic conventions. This project returns these rules to keep styles consistent with your codeguide. In addition, new rules may be added in the future.

## Installation and usage

Add `@stylistic/stylelint-plugin` and `stylelint` itself to your project:

```shell
npm add -D stylelint @stylistic/stylelint-plugin
```

Create the `.stylelintrc` config file (or open the existing one), add `@stylistic/stylelint-plugin` to the plugins array and the rules you need to the rules list. [All rules from `@stylistic/stylelint-plugin`](https://github.com/stylelint-stylistic/stylelint-stylistic/blob/main/docs/user-guide/rules.md) need to be namespaced with `@stylistic/`:

```json
{
	"plugins": [
		"@stylistic/stylelint-plugin"
	],
	"rules": {
		// syntax rules from stylelint:
		"color-function-notation": "modern",
		"selector-max-compound-selectors": 2,

		// stylistic rules from @stylistic/stylelint-plugin:
		"@stylistic/color-hex-case": "lower",
		"@stylistic/number-leading-zero": "always",
		"@stylistic/unit-case": "lower"
	}
}
```

To avoid listing a lot of rules, you can use [`@stylistic/stylelint-config`](https://www.npmjs.com/package/@stylistic/stylelint-config), which returns the stylistic rules removed in [`stylelint-config-standard`](https://github.com/stylelint/stylelint-config-standard/releases/tag/30.0.0) and [`stylelint-config-recommended`](https://github.com/stylelint/stylelint-config-recommended/releases/tag/10.0.1).

---

Please refer to [Stylelint docs](https://stylelint.io/user-guide/get-started) for detailed info on using this linter.

## Need more?

ESLint deprecates stylistic rules, too. But you can continue to use them thanks to [ESLint Stylistic](https://eslint.style).

## Important documents

- [Rule list](https://github.com/stylelint-stylistic/stylelint-stylistic/blob/main/docs/user-guide/rules.md)
- [Contributing](https://github.com/stylelint-stylistic/stylelint-stylistic/blob/main/CONTRIBUTING.md)

[license-url]: https://github.com/stylelint-stylistic/stylelint-stylistic/blob/main/LICENSE.md
[license-image]: https://img.shields.io/badge/License-MIT-limegreen.svg

[changelog-url]: https://github.com/stylelint-stylistic/stylelint-stylistic/blob/main/CHANGELOG.md
[changelog-image]: https://img.shields.io/badge/Change-log-limegreen

[test-url]: https://github.com/stylelint-stylistic/stylelint-stylistic/actions
[test-image]: https://github.com/stylelint-stylistic/stylelint-stylistic/actions/workflows/test.yaml/badge.svg?branch=main

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