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)!
Version 8.10.0 (2023-08-03)
Added: [max-statements-per-line]. Thanks to @Zamiell!
Fix cursor positioning for a special case (#14812 by @fisker)
// <|> is the cursor position
/* Input */
// All messages are represented in JSON.
// So, the prettier.py controls a subprocess which spawns "node {this_file}".
import {<|> } from "fs"
/* Prettier 3.0.0 */
// All messages are represented in JSON.
// So, the prettier.py <|>controls a subprocess which spawns "node {this_file}".
import {} from "fs"
/* Prettier 3.0.1 */
// All messages are represented in JSON.
// So, the prettier.py controls a subprocess which spawns "node {this_file}".
import {<|>} from "fs"
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
Bumps the all-dependencies group with 4 updates: @typescript-eslint/eslint-plugin, @typescript-eslint/parser, eslint-config-prettier and prettier.
Updates
@typescript-eslint/eslint-plugin
from 6.2.0 to 6.2.1Release notes
Sourced from
@typescript-eslint/eslint-plugin
's releases.Changelog
Sourced from
@typescript-eslint/eslint-plugin
's changelog.Commits
948b061
chore: publish v6.2.103df26d
docs: explain no-unused-vars advantages over TypeScript (#7347)abbb6c2
fix(scope-manager): correct decorators(.length) check in ClassVisitor for met...67f93b1
fix(eslint-plugin): [no-inferrable-types] apply also for parameter properties...6addee9
docs: remove unnecessary Examples headings from extension rule docs (#7345)1b8e0bc
chore: enabled no-else-return internally (#7340)a56af12
chore(deps): update dependency@eslint-community/regexpp
to v4.6.0 (#7311)695b9b4
docs: add await keyword in correct example of no-floating-promises.md (#7302)Updates
@typescript-eslint/parser
from 6.2.0 to 6.2.1Release notes
Sourced from
@typescript-eslint/parser
's releases.Changelog
Sourced from
@typescript-eslint/parser
's changelog.Commits
948b061
chore: publish v6.2.1Updates
eslint-config-prettier
from 8.9.0 to 9.0.0Changelog
Sourced from eslint-config-prettier's changelog.
Commits
1982680
eslint-config-prettier v9.0.0f197969
Do not disable unicode-bom (#250)a8bc57e
Flat config: CLI, tests, docs (#261)baab944
eslint-config-prettier v8.10.0552483b
feat: max-statements-per-line (#263)Updates
prettier
from 3.0.0 to 3.0.1Release notes
Sourced from prettier's releases.
Changelog
Sourced from prettier's changelog.
... (truncated)
Commits
afee0db
Release 3.0.1c3d53dc
FixrunYarn
function in release script (#15200)825425c
chore(deps): update dependency eslint-plugin-import to v2.28.0 (#15184)448217d
chore(deps): update dependency eslint to v8.46.0 (#15182)f35e9e6
chore(deps): update dependency@angular/compiler
to v16.1.7 (#15173)d14e893
chore(deps): update dependency c8 to v8.0.1 (#15174)c44d4b7
chore(deps): update dependency eslint-plugin-react to v7.33.1 (#15176)57e8c87
chore(deps): update dependency esbuild to v0.18.17 (#15175)36c3738
chore(deps): update dependency eslint-plugin-unicorn to v48.0.1 (#15177)2d274df
chore(deps): update dependency flow-parser to v0.213.1 (#15178)Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually