Skip to content

Commit 068fd1b

Browse files
committed
eslint-config-prettier v7.0.0
1 parent 4d7347a commit 068fd1b

File tree

2 files changed

+49
-1
lines changed

2 files changed

+49
-1
lines changed

CHANGELOG.md

+48
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,51 @@
1+
### Version 7.0.0 (2020-12-05)
2+
3+
- Changed: At least ESLint 7.0.0 is now required.
4+
5+
- Changed: [arrow-body-style] and [prefer-arrow-callback] are no longer turned off by default. They only need to be turned off if you use [eslint-plugin-prettier]. If you do, add `"prettier/prettier"` to your `"extends"` array to turn them off again.
6+
7+
```json
8+
{
9+
"extends": ["prettier", "prettier/prettier"],
10+
"plugins": ["prettier"],
11+
"rules": {
12+
"prettier/prettier": "error"
13+
}
14+
}
15+
```
16+
17+
Alternatively, update [eslint-plugin-prettier] to version 3.2.0 or later which automatically turns off these two rules in its `"plugin:prettier/recommended"` config.
18+
19+
The CLI helper tool only warns about these rules if you have the `"prettier/prettier"` _rule_ enabled for a file.
20+
21+
- Changed: `no-tabs` is now a validatable rule. If you use it, you should enable `allowIndentationTabs` so that the rule works regardless of your Prettier config:
22+
23+
```json
24+
{
25+
"rules": {
26+
"no-tabs": ["error", { "allowIndentationTabs": true }]
27+
}
28+
}
29+
```
30+
31+
- Changed: The CLI helper tool is now called just `eslint-config-prettier` instead of `eslint-config-prettier-check`. This is so that `npx eslint-config-prettier` always works regardless of whether you have already installed `eslint-config-prettier` or not: If you have, the local installation is used; if you haven’t, `npx` downloads a temporary copy.
32+
33+
- Changed: The CLI helper tool no longer requires you to pipe the output of `eslint --print-config` to it. Instead, it does that automatically for you via ESLint API:s added in ESLint v7.
34+
35+
Before:
36+
37+
```
38+
npx eslint --print-config index.js | npx eslint-config-prettier-check
39+
```
40+
41+
After:
42+
43+
```
44+
npx eslint-config-prettier index.js
45+
```
46+
47+
- Improved: The npm package is now 75% smaller.
48+
149
### Version 6.15.0 (2020-10-27)
250

351
- Added: [@typescript-eslint/space-infix-ops]. Thanks to Masafumi Koba (@ybiquitous)!!

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": "6.15.0",
3+
"version": "7.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)