|
| 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 | + |
1 | 43 | ### Version 7.2.0 (2021-01-18)
|
2 | 44 |
|
3 | 45 | - Added: [@typescript-eslint/object-curly-spacing].
|
|
391 | 433 | [nonblock-statement-body-position]: https://eslint.org/docs/rules/nonblock-statement-body-position
|
392 | 434 | [one-var-declaration-per-line]: https://eslint.org/docs/rules/one-var-declaration-per-line
|
393 | 435 | [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 |
394 | 437 | [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
|
395 | 438 | [prettier]: https://github.com/prettier
|
396 | 439 | [quotes-special]: https://github.com/prettier/eslint-config-prettier/blob/8d264cd0a7f06c12e2e05415e0282a4f8f21ebc9/README.md#quotes
|
|
0 commit comments