# stylelint-config-prettier

> Turns off all rules that are unnecessary or might conflict with Prettier.

Latest version **9.0.5** (published 2023-02-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install stylelint-config-prettier
pnpm add stylelint-config-prettier
yarn add stylelint-config-prettier
bun add stylelint-config-prettier
```

Provides the commands `stylelint-config-prettier`, `stylelint-config-prettier-check`.

## 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 | 9.0.5 |
| Published | 2023-02-10 |
| First published | 2017-10-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 12 |
| Dependencies | 0 |
| Unpacked size | 11.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 371 |
| Author | Shannon Moeller |
| Maintainers | shannonmoeller |
| Keywords | stylelint, prettier, config, lint, css |

## Links

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

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

- 9.0.5 (latest) — 2023-02-10
- 9.0.4 — 2022-11-08
- 9.0.3 — 2021-10-14
- 9.0.2 — 2021-10-11
- 9.0.1 — 2021-10-11
- 9.0.0 — 2021-10-11
- 8.0.2 — 2020-06-19
- 8.0.1 — 2020-01-13
- 8.0.0 — 2019-12-05
- 7.0.0 — 2019-11-28
- 6.0.0 — 2019-09-23
- 5.3.0 — 2019-09-23
- 5.2.0 — 2019-05-16
- 5.1.0 — 2019-04-18
- 5.0.0 — 2019-02-23
- … 12 more at https://npm.io/package/stylelint-config-prettier/versions

## README

# stylelint-config-prettier

> **Note**  
> As of Stylelint v15 [all style-related rules have been deprecated](https://stylelint.io/migration-guide/to-15#deprecated-stylistic-rules). If you are using v15 or higher and are not making use of these deprecated rules, [this plugin is no longer necessary](https://stylelint.io/migration-guide/to-15#:~:text=Additionally%2C%20you%20may%20no%20longer%20need%20to%20extend%20Prettier%27s%20Stylelint%20config).

[![NPM version][npm-img]][npm-url] [![Downloads][downloads-img]][npm-url]

Turns off all rules that are unnecessary or might conflict with Prettier. This lets you use your favorite shareable config without letting its stylistic choices get in the way when using Prettier.

## Installation

Install `stylelint-config-prettier`:

```
npm install --save-dev stylelint-config-prettier
```

Then, append `stylelint-config-prettier` to the [`extends` array](https://stylelint.io/user-guide/configuration/#extends) in your `.stylelintrc.*` file. Make sure to put it **last,** so it will override other configs.

```js
{
  "extends": [
    // other configs ...
    "stylelint-config-prettier"
  ]
}
```

## CLI helper tool

`stylelint-config-prettier` is shipped with a little CLI tool to help you check if your configuration contains any rules that are in conflict with Prettier.

In order to execute the CLI tool, first add a script for it to `package.json`:

```json
{
  "scripts": {
    "stylelint-check": "stylelint-config-prettier-check"
  }
}
```

Then run `npm run stylelint-check`.

## Attribution

- Inspired by [`eslint-config-prettier`](https://npm.im/eslint-config-prettier).
- CLI helper inspired by [`tslint-config-prettier`](https://github.com/alexjoverm/tslint-config-prettier).
- Original disabled ruleset copied from [`prettier-stylelint`](https://npm.im/prettier-stylelint).

----

[MIT](license)

[downloads-img]: https://img.shields.io/npm/dm/stylelint-config-prettier.svg?style=flat-square
[npm-img]:       https://img.shields.io/npm/v/stylelint-config-prettier.svg?style=flat-square
[npm-url]:       https://npmjs.org/package/stylelint-config-prettier

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