chore(deps): update linting
This MR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| @typescript-eslint/eslint-plugin | devDependencies | minor | ^5.51.0 -> ^5.52.0 |
| @typescript-eslint/parser | devDependencies | minor | ^5.51.0 -> ^5.52.0 |
| eslint (source) | devDependencies | minor | ^8.33.0 -> ^8.34.0 |
| prettier (source) | devDependencies | patch | ^2.8.3 -> ^2.8.4 |
MR created with the help of gitlab-org/frontend/renovate-gitlab-bot
Release Notes
typescript-eslint/typescript-eslint (@typescript-eslint/eslint-plugin)
v5.52.0
Bug Fixes
- eslint-plugin: [no-import-type-side-effects] correctly ignore zero-specifier imports (#6444) (d5a6688)
- eslint-plugin: [no-unnecessary-condition] account for optional chaining on potentially void values (#6432) (e1d9c67), closes #5255
- eslint-plugin: [no-unnecessary-condition] fix false positive when checking indexed access types (#6452) (d569924)
- eslint-plugin: fix key-spacing when type starts on next line (#6412) (3eb2eed)
Features
typescript-eslint/typescript-eslint (@typescript-eslint/parser)
v5.52.0
Note: Version bump only for package @typescript-eslint/parser
eslint/eslint
v8.34.0
Features
Bug Fixes
Documentation
-
f0a9883docs: split rules documentation (#16797) (Ben Perlmutter) -
67aa37bdocs: fix typo in command-line-interface.md (#16871) (Kevin Rouchut) -
337f7eddocs: fix width of language input (#16849) (Tanuj Kanti) -
71349a1docs: Configure a Parser page (#16803) (Ben Perlmutter) -
de7e925docs: remove extra line numbers in example (#16848) (jonz94) -
ad38d77docs: Update README (GitHub Actions Bot)
Chores
prettier/prettier
v2.8.4
Fix leading comments in mapped types with readonly (#13427 by @thorn0, @sosukesuzuki)
// Input
type Type = {
// comment
readonly [key in Foo];
};
// Prettier 2.8.3
type Type = {
readonly // comment
[key in Foo];
};
// Prettier 2.8.4
type Type = {
// comment
readonly [key in Foo];
};
Group params in opening block statements (#14067 by @jamescdavis)
This is a follow-up to #13930 to establish wrapping consistency between opening block statements and else blocks by grouping params in opening blocks. This causes params to break to a new line together and not be split across lines unless the length of params exceeds the print width. This also updates the else block wrapping to behave exactly the same as opening blocks.
{{! Input }}
{{#block param param param param param param param param param param as |blockParam|}}
Hello
{{else block param param param param param param param param param param as |blockParam|}}
There
{{/block}}
{{! Prettier 2.8.3 }}
{{#block
param
param
param
param
param
param
param
param
param
param
as |blockParam|
}}
Hello
{{else block param
param
param
param
param
param
param
param
param
param}}
There
{{/block}}
{{! Prettier 2.8.4 }}
{{#block
param param param param param param param param param param
as |blockParam|
}}
Hello
{{else block
param param param param param param param param param param
as |blockParam|
}}
There
{{/block}}
Ignore files in .sl/ (#14206 by @bolinfest)
In Sapling SCM, .sl/ is the folder where it stores its state, analogous to .git/ in Git. It should be ignored in Prettier like the other SCM folders.
Recognize @satisfies in Closure-style type casts (#14262 by @fisker)
// Input
const a = /** @​satisfies {Record<string, string>} */ ({hello: 1337});
const b = /** @​type {Record<string, string>} */ ({hello: 1337});
// Prettier 2.8.3
const a = /** @​satisfies {Record<string, string>} */ { hello: 1337 };
const b = /** @​type {Record<string, string>} */ ({ hello: 1337 });
// Prettier 2.8.4
const a = /** @​satisfies {Record<string, string>} */ ({hello: 1337});
const b = /** @​type {Record<string, string>} */ ({hello: 1337});
Fix parens in inferred function return types with extends (#14279 by @fisker)
// Input
type Foo<T> = T extends ((a) => a is infer R extends string) ? R : never;
// Prettier 2.8.3 (First format)
type Foo<T> = T extends (a) => a is infer R extends string ? R : never;
// Prettier 2.8.3 (Second format)
SyntaxError: '?' expected.
// Prettier 2.8.4
type Foo<T> = T extends ((a) => a is infer R extends string) ? R : never;
Configuration
-
If you want to rebase/retry this MR, click this checkbox.
This MR has been generated by Renovate Bot.