Skip to content

Commit 0dd2a7e

Browse files
committed
eslint-config-prettier v8.0.0
1 parent 03c79b9 commit 0dd2a7e

File tree

2 files changed

+44
-1
lines changed

2 files changed

+44
-1
lines changed

CHANGELOG.md

+43
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,45 @@
1+
### Version 8.0.0 (2021-02-21)
2+
3+
- Changed: All configs have been merged into one!
4+
5+
To upgrade, change:
6+
7+
```json
8+
{
9+
"extends": [
10+
"some-other-config-you-use",
11+
"prettier",
12+
"prettier/@typescript-eslint",
13+
"prettier/babel",
14+
"prettier/flowtype",
15+
"prettier/react",
16+
"prettier/standard",
17+
"prettier/unicorn",
18+
"prettier/vue"
19+
]
20+
}
21+
```
22+
23+
Into:
24+
25+
<!-- prettier-ignore -->
26+
```json
27+
{
28+
"extends": [
29+
"some-other-config-you-use",
30+
"prettier"
31+
]
32+
}
33+
```
34+
35+
The `"prettier"` config now includes not just ESLint core rules, but also rules from all plugins. Much simpler!
36+
37+
So … what’s the catch? Why haven’t we done this earlier? Turns out it’s just a sad mistake. I (@lydell) was confused when testing, and thought that turning off unknown rules in a config was an error. Thanks to Georgii Dolzhykov (@thorn0) for pointing this out!
38+
39+
(The ["prettier/prettier" config][prettier-prettier-config] still exists separately. It’s the odd one out. The main `"prettier"` config does _not_ include the rules from it.)
40+
41+
- Changed: The CLI helper tool now only prints warnings for [arrow-body-style] and [prefer-arrow-callback], just like other “special rules.” This means that if you’ve decided to use those rules and [eslint-plugin-prettier] at the same time, you’ll get warnings but exit code zero (success).
42+
143
### Version 7.2.0 (2021-01-18)
244

345
- Added: [@typescript-eslint/object-curly-spacing].
@@ -391,6 +433,7 @@
391433
[nonblock-statement-body-position]: https://eslint.org/docs/rules/nonblock-statement-body-position
392434
[one-var-declaration-per-line]: https://eslint.org/docs/rules/one-var-declaration-per-line
393435
[prefer-arrow-callback]: https://eslint.org/docs/rules/prefer-arrow-callback
436+
[prettier-prettier-config]: https://github.com/prettier/eslint-config-prettier/tree/03c79b9306892d4dbc828ce723813ef015baabc5#arrow-body-style-and-prefer-arrow-callback
394437
[prettier-self-closing]: https://prettier.io/blog/2019/06/06/1.18.0.html#stop-converting-empty-jsx-elements-to-self-closing-elements-6127-by-duailibe
395438
[prettier]: https://github.com/prettier
396439
[quotes-special]: https://github.com/prettier/eslint-config-prettier/blob/8d264cd0a7f06c12e2e05415e0282a4f8f21ebc9/README.md#quotes

package-real.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "eslint-config-prettier",
3-
"version": "7.2.0",
3+
"version": "8.0.0",
44
"license": "MIT",
55
"author": "Simon Lydell",
66
"description": "Turns off all rules that are unnecessary or might conflict with Prettier.",

0 commit comments

Comments
 (0)