Skip to content

Commit 183f45c

Browse files
chore: release eslint-plugin-prettier (#604)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent 3856413 commit 183f45c

File tree

5 files changed

+27
-30
lines changed

5 files changed

+27
-30
lines changed

.changeset/five-tools-matter.md

-5
This file was deleted.

.changeset/mean-trees-judge.md

-7
This file was deleted.

.changeset/old-doors-kiss.md

-17
This file was deleted.

CHANGELOG.md

+26
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,31 @@
11
# Changelog
22

3+
## 5.1.0
4+
5+
### Minor Changes
6+
7+
- [#616](https://github.com/prettier/eslint-plugin-prettier/pull/616) [`3856413`](https://github.com/prettier/eslint-plugin-prettier/commit/3856413420d3d026e5ae84f29c4bd0d558697135) Thanks [@BPScott](https://github.com/BPScott)! - Add recommended config for the flat config format.
8+
9+
If you are using flat config, import the recommended config from `eslint-plugin-prettier/recommended`. Like the legacy format recommended config, this automatically includes the contents of `eslint-config-prettier`.
10+
11+
```js
12+
// eslint.config.js
13+
const eslintPluginPrettierRecommended = require('eslint-plugin-prettier/recommended');
14+
15+
module.exports = [
16+
// Any other config imports go at the top
17+
eslintPluginPrettierRecommended,
18+
];
19+
```
20+
21+
### Patch Changes
22+
23+
- [#614](https://github.com/prettier/eslint-plugin-prettier/pull/614) [`5270877`](https://github.com/prettier/eslint-plugin-prettier/commit/5270877d169bec05449861c8ad7e6338b0ad47c0) Thanks [@BPScott](https://github.com/BPScott)! - Add meta block to plugin. This improves debugging and cachebusting when using the new flat config
24+
25+
- [#603](https://github.com/prettier/eslint-plugin-prettier/pull/603) [`a63a570`](https://github.com/prettier/eslint-plugin-prettier/commit/a63a570f8f3e3d53b90b1cf35e06fd7e3c387a5a) Thanks [@filiptammergard](https://github.com/filiptammergard)! - fix: specify `eslint-config-prettier` as peer dependency
26+
27+
It's already added to `peerDependenciesMeta` as optional, which means it should also be specified in `peerDependencies`.
28+
329
## 5.0.1
430

531
### Patch Changes

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "eslint-plugin-prettier",
3-
"version": "5.0.1",
3+
"version": "5.1.0",
44
"description": "Runs prettier as an eslint rule",
55
"repository": "git+https://github.com/prettier/eslint-plugin-prettier.git",
66
"homepage": "https://github.com/prettier/eslint-plugin-prettier#readme",

0 commit comments

Comments
 (0)