Skip to content

Commit 1982680

Browse files
committed
eslint-config-prettier v9.0.0
1 parent f197969 commit 1982680

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
### Version 9.0.0 (2023-08-05)
2+
3+
- Added: The CLI helper tool now works with eslint.config.js (flat config). Just like ESLint itself, the CLI tool automatically first tries eslint.config.js and then eslintrc, and you can force which one to use by setting the [ESLINT_USE_FLAT_CONFIG] environment variable. Note that the _config_ of eslint-config-prettier has always been compatible with eslint.config.js (flat config) – it was just the CLI tool that needed updating. On top of that, the docs have been updated to mention how to use both eslint.config.js (flat config) and eslintrc, and the tests now test both config systems.
4+
- Changed: [unicode-bom] is no longer turned off. Prettier preserves the BOM if you have one, and does not add one if missing. It was wrong of eslint-config-prettier to disable that rule. If you get ESLint errors after upgrading, either add `"unicode-bom": "off"` to your config to disable it again, or run ESLint with `--fix` to fix all files according to the rule (add or remove BOM). Thanks to Nicolas Stepien (@nstepien)!
5+
16
### Version 8.10.0 (2023-08-03)
27

38
- Added: [max-statements-per-line]. Thanks to @Zamiell!
@@ -465,6 +470,7 @@
465470
[end-of-line]: https://prettier.io/docs/en/options.html#end-of-line
466471
[eslint 4.0.0]: https://eslint.org/blog/2017/06/eslint-v4.0.0-released
467472
[eslint 4.6.0]: https://eslint.org/blog/2017/09/eslint-v4.6.0-released
473+
[ESLINT_USE_FLAT_CONFIG]: https://github.com/prettier/eslint-config-prettier#eslint_use_flat_config-environment-variable
468474
[eslint-plugin-babel]: https://github.com/babel/eslint-plugin-babel
469475
[eslint-plugin-flowtype]: https://github.com/gajus/eslint-plugin-flowtype
470476
[eslint-plugin-prettier]: https://github.com/prettier/eslint-plugin-prettier
@@ -511,6 +517,7 @@
511517
[semi-style]: https://eslint.org/docs/rules/semi-style
512518
[switch-colon-spacing]: https://eslint.org/docs/rules/switch-colon-spacing
513519
[template-tag-spacing]: https://eslint.org/docs/rules/template-tag-spacing
520+
[unicode-bom]: https://eslint.org/docs/rules/unicode-bom
514521
[unicorn/empty-brace-spaces]: https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/empty-brace-spaces.md
515522
[unicorn/no-nested-ternary]: https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/no-nested-ternary.md
516523
[vue/array-element-newline]: https://github.com/vuejs/eslint-plugin-vue/blob/master/docs/rules/array-element-newline.md

package-real.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "eslint-config-prettier",
3-
"version": "8.10.0",
3+
"version": "9.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)