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
- `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore major version` will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself)
- `@dependabot ignore minor version` will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself)
- `@dependabot ignore dependency` will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself)
- `@dependabot unignore dependency` will remove all of the ignore conditions of the specified dependency
- `@dependabot unignore ` will remove the ignore condition of the specified dependency and ignore conditions
Bumps the dependencies group in /pkg/js with 6 updates:
Updates
@types/node
from 20.4.5 to 20.5.0Commits
Updates
@typescript-eslint/eslint-plugin
from 6.2.0 to 6.3.0Release notes
Sourced from
@typescript-eslint/eslint-plugin
's releases.Changelog
Sourced from
@typescript-eslint/eslint-plugin
's changelog.Commits
0a1de14
chore: publish v6.3.07891a06
Revert "chore(deps): update dependency marked to v6" (#7429)6a1437d
chore(deps): update dependency marked to v6 (#7422)38e5e4e
fix(eslint-plugin): [no-extra-parens] keep parens around call expression argu...56919e4
docs: explain return-await's name and existence in its docs (#7392)cc9a46d
fix(eslint-plugin): [no-restricted-imports] allow inline type qualifiers when...4087f48
chore: enable consistent-indexed-object-style and lint (#7353)8b17a25
docs: fix incorrect prefer-nullish-coercing documentation (#7408)dfcafae
feat(eslint-plugin): [prefer-nullish-coalescing] allowignorePrimitives
opt...948b061
chore: publish v6.2.1Updates
@typescript-eslint/parser
from 6.2.0 to 6.3.0Release notes
Sourced from
@typescript-eslint/parser
's releases.Changelog
Sourced from
@typescript-eslint/parser
's changelog.Commits
0a1de14
chore: publish v6.3.0948b061
chore: publish v6.2.1Updates
eslint
from 8.46.0 to 8.47.0Release notes
Sourced from eslint's releases.
Changelog
Sourced from eslint's changelog.
Commits
98b155f
8.47.0928cecc
Build: changelog update for 8.47.0bf69aa6
chore: Update dependencies (#17456)0e45760
chore: package.json update for@eslint/js
release631648e
fix: do not report on shadowed constructors inno-new-wrappers
(#17447)757bfe1
chore: Remove add-to-triage (#17450)b066640
chore: standardize npm script names (#17431)a766a48
docs: document lack of config file names (#17442)a1635d6
docs: Update README6b2410f
chore: Update add-to-triage.yml (#17444)Updates
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 - `@dependabot show