@@ -47,7 +47,10 @@ Note that this config _only_ turns rules _off,_ so it only makes sense using it
4747 <!-- prettier-ignore -->
4848 ```js
4949 import someConfig from "some-other-config-you-use";
50- import eslintConfigPrettier from "eslint-config-prettier";
50+ // Note the `/flat` suffix here, the difference from default entry is that
51+ // `/flat` added `name` property to the exported object to improve
52+ // [config-inspector](https://eslint.org/blog/2024/04/eslint-config-inspector/) experience.
53+ import eslintConfigPrettier from "eslint-config-prettier/flat";
5154
5255 export default [
5356 someConfig,
@@ -81,7 +84,7 @@ With flat config, _you_ get to decide the plugin name! For example:
8184
8285```js
8386import typescriptEslint from "@typescript-eslint/eslint-plugin";
84- import eslintConfigPrettier from "eslint-config-prettier";
87+ import eslintConfigPrettier from "eslint-config-prettier/flat ";
8588
8689export default [
8790 {
@@ -153,7 +156,7 @@ For eslintrc, while the `"prettier"` config can disable problematic rules in `"s
153156
154157``` js
155158import someConfig from " some-other-config-you-use" ;
156- import eslintConfigPrettier from " eslint-config-prettier" ;
159+ import eslintConfigPrettier from " eslint-config-prettier/flat " ;
157160
158161export default [
159162 someConfig,
@@ -170,7 +173,7 @@ With the new ESLint “flat config” format, you can control what things overri
170173
171174``` js
172175import someConfig from " some-other-config-you-use" ;
173- import eslintConfigPrettier from " eslint-config-prettier" ;
176+ import eslintConfigPrettier from " eslint-config-prettier/flat " ;
174177
175178export default [
176179 someConfig,
0 commit comments