Skip to content

Commit 05a8edd

Browse files
authored
Create angry-kangaroos-sleep.md
1 parent 62bb284 commit 05a8edd

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
"eslint-config-prettier": patch
3+
---
4+
5+
fix: separate the `/flat` entry for compatibility
6+
7+
For flat config users, the previous `"eslint-config-prettier"` entry still works, but `"eslint-config-prettier/flat"` adds a new `name` property for [config-inspector](https://eslint.org/blog/2024/04/eslint-config-inspector/), we just can't add it for the default entry for compatibility.
8+
9+
See also <https://github.com/prettier/eslint-config-prettier/issues/308>
10+
11+
```ts
12+
// before
13+
import eslintConfigPrettier from "eslint-config-prettier";
14+
15+
// after
16+
import eslintConfigPrettier from "eslint-config-prettier/flat";
17+
```

0 commit comments

Comments
 (0)