chore(deps): update linting
This MR contains the following updates:
Package | Type | Update | Change |
---|---|---|---|
@typescript-eslint/eslint-plugin | devDependencies | minor | ^5.47.1 -> ^5.48.2 |
@typescript-eslint/parser | devDependencies | minor | ^5.47.1 -> ^5.48.2 |
eslint (source) | devDependencies | minor | ^8.31.0 -> ^8.32.0 |
eslint-config-prettier | devDependencies | minor | ^8.5.0 -> ^8.6.0 |
eslint-plugin-import | devDependencies | minor | ^2.26.0 -> ^2.27.5 |
prettier (source) | devDependencies | patch | ^2.8.1 -> ^2.8.3 |
MR created with the help of gitlab-org/frontend/renovate-gitlab-bot
Release Notes
typescript-eslint/typescript-eslint (@typescript-eslint/eslint-plugin)
v5.48.2
Note: Version bump only for package @typescript-eslint/eslint-plugin
v5.48.1
Note: Version bump only for package @typescript-eslint/eslint-plugin
v5.48.0
Features
5.47.1 (2022-12-26)
Bug Fixes
typescript-eslint/typescript-eslint (@typescript-eslint/parser)
v5.48.2
Note: Version bump only for package @typescript-eslint/parser
v5.48.1
Note: Version bump only for package @typescript-eslint/parser
v5.48.0
Note: Version bump only for package @typescript-eslint/parser
5.47.1 (2022-12-26)
Note: Version bump only for package @typescript-eslint/parser
eslint/eslint
v8.32.0
Features
Bug Fixes
Documentation
-
17b65ad
docs: IA Update page URL move (#16665) (Ben Perlmutter) -
5981296
docs: fix theme switcher button (#16752) (Sam Chen) -
6669413
docs: deploy prerelease docs under the/docs/next/
path (#16541) (Nitin Kumar) -
78ecfe0
docs: use inline code for rule options name (#16768) (Percy Ma) -
fc2ea59
docs: Update README (GitHub Actions Bot) -
762a872
docs: Update README (GitHub Actions Bot)
Chores
import-js/eslint-plugin-import
v2.27.5
Fixed
- [
order]
: Fix group ranks order when alphabetizing ([#2674], thanks [@Pearce-Ropion])
v2.27.4
Fixed
-
semver
should be a prod dep ([#2668])
v2.27.3
Fixed
- [
no-empty-named-blocks
]: rewrite rule to only check import declarations ([#2666])
v2.27.2
Fixed
- [
no-duplicates
]: do not unconditionally requiretypescript
([#2665])
v2.27.1
Fixed
-
array.prototype.flatmap
should be a prod dep ([#2664], thanks [@cristobal])
v2.27.0
Added
- [
newline-after-import
]: addconsiderComments
option ([#2399], thanks [@pri1311]) - [
no-cycle
]: addallowUnsafeDynamicCyclicDependency
option ([#2387], thanks [@GerkinDev]) - [
no-restricted-paths
]: support arrays forfrom
andtarget
options ([#2466], thanks [@AdriAt360]) - [
no-anonymous-default-export
]: addallowNew
option ([#2505], thanks [@DamienCassou]) - [
order
]: AdddistinctGroup
option ([#2395], thanks [@hyperupcall]) - [
no-extraneous-dependencies
]: AddincludeInternal
option ([#2541], thanks [@bdwain]) - [
no-extraneous-dependencies
]: AddincludeTypes
option ([#2543], thanks [@bdwain]) - [
order
]: newalphabetize.orderImportKind
option to sort imports with same path based on their kind (type
,typeof
) ([#2544], thanks [@stropho]) - [
consistent-type-specifier-style
]: add rule ([#2473], thanks [@bradzacher]) - Add [
no-empty-named-blocks
] rule ([#2568], thanks [@guilhermelimak]) - [
prefer-default-export
]: add "target" option ([#2602], thanks [@azyzz228]) - [
no-absolute-path
]: add fixer ([#2613], thanks [@adipascu]) - [
no-duplicates
]: support inline type import withinlineTypeImport
option ([#2475], thanks [@snewcomer])
Fixed
- [
order
]: move nested imports closer to main import entry ([#2396], thanks [@pri1311]) - [
no-restricted-paths
]: fix an error message ([#2466], thanks [@AdriAt360]) - [
no-restricted-paths
]: useMinimatch.match
instead ofminimatch
to comply with Windows Native paths ([#2466], thanks [@AdriAt360]) - [
order
]: require with member expression could not be fixed if alphabetize.order was used ([#2490], thanks [@msvab]) - [
order
]: leave more space in rankings for consecutive path groups ([#2506], thanks [@Pearce-Ropion]) - [
no-cycle
]: add ExportNamedDeclaration statements to dependencies ([#2511], thanks [@BenoitZugmeyer]) - [
dynamic-import-chunkname
]: prevent false report on a valid webpack magic comment ([#2330], thanks [@mhmadhamster]) - [
export
]: do not error on TS export overloads ([#1590], thanks [@ljharb]) - [
no-unresolved
], [extensions
]: ignore type only exports ([#2436], thanks [@Lukas-Kullmann]) -
ExportMap
: add missing param to function ([#2589], thanks [@Fdawgs]) - [
no-unused-modules
]:checkPkgFieldObject
filters boolean fields from checks ([#2598], thanks [@mpint]) - [
no-cycle
]: accept Flowtypeof
imports, just liketype
([#2608], thanks [@gnprice]) - [
no-import-module-exports
]: avoid a false positive for import variables ([#2315], thanks [@BarryThePenguin])
Changed
- [Tests] [
named
]: Run all TypeScript test ([#2427], thanks [@ProdigySim]) - [readme] note use of typescript in readme
import/extensions
section ([#2440], thanks [@OutdatedVersion]) - [Docs] [
order
]: use correct default value ([#2392], thanks [@hyperupcall]) - [meta] replace git.io link in comments with the original URL ([#2444], thanks [@liby])
- [Docs] remove global install in readme ([#2412], thanks [@aladdin-add])
- [readme] clarify
eslint-import-resolver-typescript
usage ([#2503], thanks [@JounQin]) - [Refactor] [
no-cycle
]: Add per-run caching of traversed paths ([#2419], thanks [@nokel81]) - [Performance]
ExportMap
: add caching after parsing for an ambiguous module ([#2531], thanks [@stenin-nikita]) - [Docs] [
no-useless-path-segments
]: fix paths ([#2424], thanks [@s-h-a-d-o-w]) - [Tests] [
no-cycle
]: add passing test cases ([#2438], thanks [@georeith]) - [Refactor] [
no-extraneous-dependencies
] improve performance using cache ([#2374], thanks [@meowtec]) - [meta]
CONTRIBUTING.md
: mention inactive MRs ([#2546], thanks [@stropho]) - [readme] make json for setting groups multiline ([#2570], thanks [@bertyhell])
- [Tests] [
no-restricted-paths
]: Tests forimport type
statements ([#2459], thanks [@golergka]) - [Tests] [
no-restricted-paths
]: fix one failingimport type
test case, submitted by [@golergka], thanks [@azyzz228] - [Docs] automate docs with eslint-doc-generator ([#2582], thanks [@bmish])
- [readme] Increase clarity around typescript configuration ([#2588], thanks [@Nfinished])
- [Docs] update
eslint-doc-generator
to v1.0.0 ([#2605], thanks [@bmish]) - [Perf] [
no-cycle
], [no-internal-modules
], [no-restricted-paths
]: useanyOf
instead ofoneOf
(thanks [@ljharb], [@remcohaszing])
prettier/prettier
v2.8.3
#14170 by @fisker)
Allow self-closing tags on custom elements (See Angular v15.1.0 release note for details.
// Input
<app-test/>
// Prettier 2.8.2
SyntaxError: Only void and foreign elements can be self closed "app-test" (1:1)
> 1 | <app-test/>
| ^^^^^^^^^
2 |
// Prettier 2.8.3
<app-test />
v2.8.2
#13155 by @DerekNonGeneric & @fisker)
Don't lowercase link references (<!-- Input -->
We now don't strictly follow the release notes format suggested by [Keep a Changelog].
[Keep a Changelog]: https://example.com/
<!-- Prettier 2.8.1 -->
We now don't strictly follow the release notes format suggested by [Keep a Changelog].
[keep a changelog]: https://example.com/
<!--
^^^^^^^^^^^^^^^^^^ lowercased
-->
<!-- Prettier 2.8.2 -->
<Same as input>
#13691 by @dcyriller)
Preserve self-closing tags ({{! Input }}
<div />
<div></div>
<custom-component />
<custom-component></custom-component>
<i />
<i></i>
<Component />
<Component></Component>
{{! Prettier 2.8.1 }}
<div></div>
<div></div>
<custom-component></custom-component>
<custom-component></custom-component>
<i></i>
<i></i>
<Component />
<Component />
{{! Prettier 2.8.2 }}
<div />
<div></div>
<custom-component />
<custom-component></custom-component>
<i />
<i></i>
<Component />
<Component />
#13930 by @jamescdavis)
Allow custom "else if"-like blocks with block params (#13507 added support for custom block keywords used with else
, but failed to allow block params. This updates printer-glimmer to allow block params with custom "else if"-like blocks.
{{! Input }}
{{#when isAtWork as |work|}}
Ship that
{{work}}!
{{else when isReading as |book|}}
You can finish
{{book}}
eventually...
{{else}}
Go to bed!
{{/when}}
{{! Prettier 2.8.1 }}
{{#when isAtWork as |work|}}
Ship that
{{work}}!
{{else when isReading}}
You can finish
{{book}}
eventually...
{{else}}
Go to bed!
{{/when}}
{{! Prettier 2.8.2 }}
{{#when isAtWork as |work|}}
Ship that
{{work}}!
{{else when isReading as |book|}}
You can finish
{{book}}
eventually...
{{else}}
Go to bed!
{{/when}}
#13931 by @jneander)
Preserve empty lines between nested SCSS maps (/* Input */
$map: (
'one': (
'key': 'value',
),
'two': (
'key': 'value',
),
)
/* Prettier 2.8.1 */
$map: (
'one': (
'key': 'value',
),
'two': (
'key': 'value',
),
)
/* Prettier 2.8.2 */
$map: (
'one': (
'key': 'value',
),
'two': (
'key': 'value',
),
)
let[
(#14000, #14044 by @fisker, @thorn0)
Fix missing parentheses when an expression statement starts with // Input
(let[0] = 2);
// Prettier 2.8.1
let[0] = 2;
// Prettier 2.8.1 (second format)
SyntaxError: Unexpected token (1:5)
> 1 | let[0] = 2;
| ^
2 |
// Prettier 2.8.2
(let)[0] = 2;
#14007 by @mvorisek)
Fix semicolon duplicated at the end of LESS file (// Input
@​variable: {
field: something;
};
// Prettier 2.8.1
@​variable: {
field: something;
}; ;
// Prettier 2.8.2
@​variable: {
field: something;
};
#14008 by @mvorisek)
Fix no space after unary minus when followed by opening parenthesis in LESS (// Input
.unary_minus_single {
margin: -(@​a);
}
.unary_minus_multi {
margin: 0 -(@​a);
}
.binary_minus {
margin: 0 - (@​a);
}
// Prettier 2.8.1
.unary_minus_single {
margin: - (@​a);
}
.unary_minus_multi {
margin: 0 - (@​a);
}
.binary_minus {
margin: 0 - (@​a);
}
// Prettier 2.8.2
.unary_minus_single {
margin: -(@​a);
}
.unary_minus_multi {
margin: 0 -(@​a);
}
.binary_minus {
margin: 0 - (@​a);
}
#14034 by @mvorisek)
Do not change case of property name if inside a variable declaration in LESS (// Input
@​var: {
preserveCase: 0;
};
// Prettier 2.8.1
@​var: {
preservecase: 0;
};
// Prettier 2.8.2
@​var: {
preserveCase: 0;
};
#14038 by @fisker)
Fix formatting for auto-accessors with comments (// Input
class A {
@​dec()
// comment
accessor b;
}
// Prettier 2.8.1
class A {
@​dec()
accessor // comment
b;
}
// Prettier 2.8.1 (second format)
class A {
@​dec()
accessor; // comment
b;
}
// Prettier 2.8.2
class A {
@​dec()
// comment
accessor b;
}
#14042 by @onishi-kohei)
Add parentheses for TSTypeQuery to improve readability (// Input
a as (typeof node.children)[number]
a as (typeof node.children)[]
a as ((typeof node.children)[number])[]
// Prettier 2.8.1
a as typeof node.children[number];
a as typeof node.children[];
a as typeof node.children[number][];
// Prettier 2.8.2
a as (typeof node.children)[number];
a as (typeof node.children)[];
a as (typeof node.children)[number][];
#14047 by @thorn0)
Fix displacing of comments in default switch case (It was a regression in Prettier 2.6.0.
// Input
switch (state) {
default:
result = state; // no change
break;
}
// Prettier 2.8.1
switch (state) {
default: // no change
result = state;
break;
}
// Prettier 2.8.2
switch (state) {
default:
result = state; // no change
break;
}
babel-ts
(#14049 by @sosukesuzuki)
Support type annotations on auto accessors via The bug that @babel/parser
cannot parse auto accessors with type annotations has been fixed. So we now support it via babel-ts
parser.
class Foo {
accessor prop: number;
}
#14073 by @fisker)
Fix formatting of empty type parameters (// Input
const foo: bar</* comment */> = () => baz;
// Prettier 2.8.1
Error: Comment "comment" was not printed. Please report this error!
// Prettier 2.8.2
const foo: bar</* comment */> = () => baz;
ExpressionStatement
instead of the whole statement (#14077 by @fisker)
Add parentheses to head of // Input
({}).toString.call(foo) === "[object Array]"
? foo.forEach(iterateArray)
: iterateObject(foo);
// Prettier 2.8.1
({}.toString.call(foo) === "[object Array]"
? foo.forEach(iterateArray)
: iterateObject(foo));
// Prettier 2.8.2
({}).toString.call(foo.forEach) === "[object Array]"
? foo.forEach(iterateArray)
: iterateObject(foo);
#14081 by @fisker)
Fix comments after directive (// Input
"use strict" /* comment */;
// Prettier 2.8.1 (with other js parsers except `babel`)
Error: Comment "comment" was not printed. Please report this error!
// Prettier 2.8.2
<Same as input>
#14082 with by @fisker)
Fix formatting for comments inside JSX attribute (// Input
function MyFunctionComponent() {
<button label=/*old*/"new">button</button>
}
// Prettier 2.8.1
Error: Comment "old" was not printed. Please report this error!
// Prettier 2.8.2
function MyFunctionComponent() {
<button label=/*old*/ "new">button</button>;
}
#14083 by @fisker)
Quote numeric keys for json-stringify parser (// Input
{0: 'value'}
// Prettier 2.8.1
{
0: "value"
}
// Prettier 2.8.2
{
"0": "value"
}
#14089 by @sosukesuzuki)
Fix removing commas from function arguments in maps (/* Input */
$foo: map-fn(
(
"#{prop}": inner-fn($first, $second),
)
);
/* Prettier 2.8.1 */
$foo: map-fn(("#{prop}": inner-fn($first $second)));
/* Prettier 2.8.2 */
$foo: map-fn(
(
"#{prop}": inner-fn($first, $second),
)
);
#14103 by @fisker)
Do not insert space in LESS property access (// Input
a {
color: @​colors[@​white];
}
// Prettier 2.8.1
a {
color: @​colors[ @​white];
}
// Prettier 2.8.2
<Same as input>
Configuration
-
If you want to rebase/retry this MR, click this checkbox.
This MR has been generated by Renovate Bot.