Added: [unicorn/template-indent], (as a [special rule][unicorn/template-indent-special]). Thanks to Gürgün Dayıoğlu (@gurgunday)!
Changed: All the [formatting rules that were deprecated in ESLint 8.53.0][deprecated-8.53.0] are now excluded if you set the ESLINT_CONFIG_PRETTIER_NO_DEPRECATED environment variable.
Version 9.0.0 (2023-08-05)
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.
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)!
#6238210e44 Thanks @BPScott! - Add exports mapping to package.json, to allow import eslintPluginRecommended from 'eslint-plugin-prettier/recommended' to work as expected.
Strictly speaking this is a breaking change as it removes the ability for people to import from "eslint-plugin-prettier/eslint-plugin-prettier.js" and "eslint-plugin-prettier/recommended.js" but the former was never recommended in the first place and the latter has only been available for a few days.
#6212b09e7f Thanks @JounQin! - feat: support parsing markdown via eslint-mdx natively
What means the following is unnecessary anymore when using with eslint-mdx/eslint-plugin-mdx!
#6163856413 Thanks @BPScott! - Add recommended config for the flat config format.
If you are using flat config, import the recommended config from eslint-plugin-prettier/recommended. Like the legacy format recommended config, this automatically includes the contents of eslint-config-prettier.
#6238210e44 Thanks @BPScott! - Add exports mapping to package.json, to allow import eslintPluginRecommended from 'eslint-plugin-prettier/recommended' to work as expected.
Strictly speaking this is a breaking change as it removes the ability for people to import from "eslint-plugin-prettier/eslint-plugin-prettier.js" and "eslint-plugin-prettier/recommended.js" but the former was never recommended in the first place and the latter has only been available for a few days.
#6212b09e7f Thanks @JounQin! - feat: support parsing markdown via eslint-mdx natively
What means the following is unnecessary anymore when using with eslint-mdx/eslint-plugin-mdx!
#6163856413 Thanks @BPScott! - Add recommended config for the flat config format.
If you are using flat config, import the recommended config from eslint-plugin-prettier/recommended. Like the legacy format recommended config, this automatically includes the contents of eslint-config-prettier.
#142431a1f95 Thanks @iiroj! - Allow approximately equivalent versions of direct dependencies by using the "~" character in the version ranges. This means a more recent patch version of a dependency is allowed if available.
#142391abea0 Thanks @iiroj! - Improve error logging when failing to read or parse a configuration file
Bumps the eslint group with 9 updates:
12.20.55
20.14.2
4.33.0
7.12.0
4.33.0
7.12.0
7.32.0
9.4.0
8.10.0
9.1.0
3.4.1
5.1.3
6.0.0
9.0.11
13.3.0
15.2.5
2.8.8
3.3.1
Updates
@types/node
from 12.20.55 to 20.14.2Commits
Updates
@typescript-eslint/eslint-plugin
from 4.33.0 to 7.12.0Release notes
Sourced from
@typescript-eslint/eslint-plugin
's releases.... (truncated)
Changelog
Sourced from
@typescript-eslint/eslint-plugin
's changelog.... (truncated)
Commits
7e93b28
chore(release): publish 7.12.0d0adcf1
docs: clarify what require-await does (#9200)04990d5
feat(eslint-plugin): [no-floating-promises] add option 'allowForKnownSafeProm...ad85249
docs: mention related ESLint rules in no-unused-vars page (#9198)e80a8d6
docs: improve description for no-dynamic-delete (#9195)9f92b30
docs: explicitly mention unbound-method limitation with thisArg (#9197)08a9448
docs: add example with PascalCase function components (#9196)5ca7f6e
feat(rule-tester): portcheckDuplicateTestCases
from ESLint (#9026)a9dd526
fix(eslint-plugin): [member-ordering] also TSMethodSignature can be get/set (...2619c3b
fix(eslint-plugin): [return-await] clean up in-try-catch detection and make a...Updates
@typescript-eslint/parser
from 4.33.0 to 7.12.0Release notes
Sourced from
@typescript-eslint/parser
's releases.... (truncated)
Changelog
Sourced from
@typescript-eslint/parser
's changelog.... (truncated)
Commits
7e93b28
chore(release): publish 7.12.02bbf656
fix(types): correct typing ParserOptions (#9202)e360541
chore(release): publish 7.11.0c18226e
chore(release): publish 7.10.077fc366
chore(release): publish 7.9.0f53fece
chore: add knip (#8192)ee677f6
chore(release): publish 7.8.03e19436
chore(release): publish 7.7.1e44a1a2
chore(release): publish 7.7.0e1db872
chore(release): publish 7.6.0Updates
eslint
from 7.32.0 to 9.4.0Release notes
Sourced from eslint's releases.
... (truncated)
Changelog
Sourced from eslint's changelog.
... (truncated)
Commits
a5f7e58
9.4.08c6d0c3
Build: changelog update for 9.4.0010dd2e
chore: upgrade to@eslint/js@9.4.0
(#18534)5e1b5dc
chore: package.json update for@eslint/js
released7ab6f5
docs: update theme when whenprefers-color-scheme
changes (#18510)594145f
refactor: switch to@eslint/config-array
(#18527)525fdff
docs: fix components files (#18519)89a4a0a
feat: ignore IIFE's in theno-loop-func
rule (#17528)80747d2
docs: refactorprefer-destructuring
rule (#18472)f6534d1
fix: skip processor code blocks that match only universal patterns (#18507)Updates
eslint-config-prettier
from 8.10.0 to 9.1.0Changelog
Sourced from eslint-config-prettier's changelog.
Commits
40c7f3d
eslint-config-prettier v9.1.04110dff
Merge pull request #271 from prettier/deprecated6d0bd92
Update tests to handle newly deprecated rules4c876b9
Move rules deprecated in ESLint 8.53.0 to the deprecated section24445c0
Use specialRule constant7827196
Group deprecated and removed rules by version48f804c
Roll back to ESLint 8.52.0 for now16f03b8
Update Prettierb06d618
Update npm packages25fc427
turn offunicorn/template-indent
(#269)Updates
eslint-plugin-prettier
from 3.4.1 to 5.1.3Release notes
Sourced from eslint-plugin-prettier's releases.
... (truncated)
Changelog
Sourced from eslint-plugin-prettier's changelog.
... (truncated)
Commits
Maintainer changes
This version was pushed to npm by jounqin, a new releaser for eslint-plugin-prettier since your current version.
Updates
husky
from 6.0.0 to 9.0.11Release notes
Sourced from husky's releases.
... (truncated)
Commits
a9c6584
9.0.1129056db
fix: husky=0 in init (#1395)095a4fe
docs: update how-to.mdd2e831d
docs: update how-to.mdd1a8ed1
chore: update package-lock.json (#1383)c042d9b
9.0.10e529368
fix: rename index.d.ts to index.d.mts (#1379)6219cac
9.0.9d8377fe
refactor: rename files (#1378)211b80a
9.0.8Updates
lint-staged
from 13.3.0 to 15.2.5Release notes
Sourced from lint-staged's releases.