chore(deps): update linting
This MR contains the following updates:
Package | Type | Update | Change |
---|---|---|---|
@typescript-eslint/eslint-plugin | devDependencies | minor | ^6.2.0 -> ^6.7.5 |
@typescript-eslint/parser | devDependencies | minor | ^6.2.0 -> ^6.7.5 |
eslint (source) | devDependencies | minor | ^8.45.0 -> ^8.51.0 |
eslint-plugin-import | devDependencies | minor | ^2.27.5 -> ^2.28.1 |
prettier (source) | devDependencies | patch | ^3.0.0 -> ^3.0.3 |
MR created with the help of gitlab-org/frontend/renovate-gitlab-bot
Release Notes
typescript-eslint/typescript-eslint (@typescript-eslint/eslint-plugin)
v6.7.5
Bug Fixes
- eslint-plugin: [prefer-string-starts-ends-with] only report slice/substring with correct range (#7712) (db40a0a)
You can read about our versioning strategy and releases on our website.
v6.7.4
Note: Version bump only for package @typescript-eslint/eslint-plugin
You can read about our versioning strategy and releases on our website.
v6.7.3
Note: Version bump only for package @typescript-eslint/eslint-plugin
You can read about our versioning strategy and releases on our website.
v6.7.2
Note: Version bump only for package @typescript-eslint/eslint-plugin
You can read about our versioning strategy and releases on our website.
v6.7.0
Bug Fixes
- eslint-plugin: [no-restricted-imports] disallow side effect imports when allowTypeImports is enabled (#7560) (4908905)
Features
You can read about our versioning strategy and releases on our website.
v6.6.0
Bug Fixes
You can read about our versioning strategy and releases on our website.
v6.5.0
Bug Fixes
- eslint-plugin: [consistent-type-assertions] wrap object return value with parentheses (#6885) (23ac499)
You can read about our versioning strategy and releases on our website.
6.4.1 (2023-08-21)
Bug Fixes
- eslint-plugin: [no-unnecessary-condition] false positives with branded types (#7466) (b52658f), closes #7293
You can read about our versioning strategy and releases on our website.
v6.4.1
Bug Fixes
- eslint-plugin: [no-unnecessary-condition] false positives with branded types (#7466) (b52658f), closes #7293
You can read about our versioning strategy and releases on our website.
v6.4.0
Bug Fixes
- eslint-plugin: [non-nullable-type-assertion-style] consider operator precedence when fixing (#7289) (bad37a2)
- eslint-plugin: [strict-boolean-expressions] replace dangerous fixer with suggestions (#7394) (ad8401a)
You can read about our versioning strategy and releases on our website.
v6.3.0
Bug Fixes
- eslint-plugin: [no-extra-parens] keep parens around call expression arguments when type arguments contain parens (#7375) (38e5e4e)
-
eslint-plugin: [no-restricted-imports] allow inline type qualifiers when
allowTypeImports
enabled (#7379) (cc9a46d)
Features
-
eslint-plugin: [prefer-nullish-coalescing] allow
ignorePrimitives
option to betrue
(#7331) (dfcafae)
Reverts
You can read about our versioning strategy and releases on our website.
6.2.1 (2023-07-31)
Bug Fixes
- eslint-plugin: [no-inferrable-types] apply also for parameter properties (#7288) (67f93b1)
- scope-manager: correct decorators(.length) check in ClassVisitor for methods (#7334) (abbb6c2)
You can read about our versioning strategy and releases on our website.
v6.2.1
Bug Fixes
- eslint-plugin: [no-inferrable-types] apply also for parameter properties (#7288) (67f93b1)
- scope-manager: correct decorators(.length) check in ClassVisitor for methods (#7334) (abbb6c2)
You can read about our versioning strategy and releases on our website.
typescript-eslint/typescript-eslint (@typescript-eslint/parser)
v6.7.5
Note: Version bump only for package @typescript-eslint/parser
You can read about our versioning strategy and releases on our website.
v6.7.4
Note: Version bump only for package @typescript-eslint/parser
You can read about our versioning strategy and releases on our website.
v6.7.3
Note: Version bump only for package @typescript-eslint/parser
You can read about our versioning strategy and releases on our website.
v6.7.2
Note: Version bump only for package @typescript-eslint/parser
You can read about our versioning strategy and releases on our website.
v6.7.0
Note: Version bump only for package @typescript-eslint/parser
You can read about our versioning strategy and releases on our website.
v6.6.0
Note: Version bump only for package @typescript-eslint/parser
You can read about our versioning strategy and releases on our website.
v6.5.0
Note: Version bump only for package @typescript-eslint/parser
You can read about our versioning strategy and releases on our website.
6.4.1 (2023-08-21)
Note: Version bump only for package @typescript-eslint/parser
You can read about our versioning strategy and releases on our website.
v6.4.1
Note: Version bump only for package @typescript-eslint/parser
You can read about our versioning strategy and releases on our website.
v6.4.0
Note: Version bump only for package @typescript-eslint/parser
You can read about our versioning strategy and releases on our website.
v6.3.0
Note: Version bump only for package @typescript-eslint/parser
You can read about our versioning strategy and releases on our website.
6.2.1 (2023-07-31)
Note: Version bump only for package @typescript-eslint/parser
You can read about our versioning strategy and releases on our website.
v6.2.1
Note: Version bump only for package @typescript-eslint/parser
You can read about our versioning strategy and releases on our website.
eslint/eslint
v8.51.0
Features
-
0a9c433
feat: Add--no-warn-ignored
CLI option for flat config (#17569) (Domantas Petrauskas) -
977e67e
feat: logical-assignment-operators to report expressions with 3 operands (#17600) (Yosuke Ota)
Bug Fixes
-
f976b2f
fix: make rule severity case-sensitive in flat config (#17619) (Milos Djermanovic) -
0edfe36
fix: Ensure crash error messages are not duplicated (#17584) (Nicholas C. Zakas) -
dd79abc
fix:eslint-disable
to be able to parse quoted rule names (#17612) (Yosuke Ota) -
d2f6801
fix: Ensure correct code path for && followed by ?? (#17618) (Nicholas C. Zakas)
Documentation
-
ee5be81
docs: default tosourceType: "module"
in rule examples (#17615) (Francesco Trotta) -
1aa26df
docs: Add more examples for multiline-ternary (#17610) (George Ashiotis) -
47d0b44
docs: Update README (GitHub Actions Bot) -
dbf831e
docs: use generated og image (#17601) (Percy Ma) -
1866da5
docs: Update README (GitHub Actions Bot)
Chores
-
1ef39ea
chore: upgrade @eslint/js@8.51.0 (#17624) (Milos Djermanovic) -
f8c7403
chore: package.json update for @eslint/js release (ESLint Jenkins) -
2665552
test: fix flat config linter tests to use Linter in flat config mode (#17616) (Milos Djermanovic) -
7b77bcc
chore: Refactor CodePathState (#17510) (Nicholas C. Zakas) -
bc77c9a
chore: Document and refactor ForkContext (#17566) (Nicholas C. Zakas) -
24e1f14
chore: Refactor and document CodePath (#17558) (Nicholas C. Zakas)
v8.50.0
Features
-
27d5a9e
feat: add suggestions to array-callback-return (#17590) (Tanuj Kanti) -
f9082ff
feat: flat-rule-tester make sure default config always matches (#17585) (fnx) -
83914ad
feat: Implement SourceCode#applyInlineConfig() (#17351) (Nicholas C. Zakas) -
22a5582
feat: add ruleno-object-constructor
, deprecateno-new-object
(#17576) (Francesco Trotta) -
85a3d9e
feat: allowVoid option in array-callback-return (#17564) (Tanuj Kanti)
Bug Fixes
-
cc4d26b
fix: Ensure deprecated context.parserServices warns (#17593) (Nicholas C. Zakas) -
1ea4cfb
fix: Ensure all RuleTester tests all deprecated context methods (#17587) (Nicholas C. Zakas) -
aa1b657
fix: wrong suggestion and message inno-misleading-character-class
(#17571) (Yosuke Ota)
Documentation
-
1800537
docs: Fix and standardize JSX code examples (#17591) (Francesco Trotta) -
48a44a7
docs: Add correct/incorrect tags toprefer-arrow-callback
(#17589) (Francesco Trotta) -
20893d4
docs: fix incorrect tag's place (#17575) (Tanuj Kanti) -
bd7a71f
docs: Update README (GitHub Actions Bot)
Chores
-
f8a8a2d
chore: upgrade @eslint/js@8.50.0 (#17599) (Milos Djermanovic) -
38ada6d
chore: package.json update for @eslint/js release (ESLint Jenkins)
v8.49.0
Features
-
da09f4e
feat: Implement onUnreachableCodePathStart/End (#17511) (Nicholas C. Zakas) -
32b2327
feat: Emit deprecation warnings in RuleTester (#17527) (Nicholas C. Zakas) -
acb7df3
feat: add newenforce
option tolines-between-class-members
(#17462) (Nitin Kumar)
Documentation
-
ecfb54f
docs: Update README (GitHub Actions Bot) -
de86b3b
docs: updateno-promise-executor-return
examples (#17529) (Nitin Kumar) -
032c4b1
docs: add typescript template (#17500) (James) -
cd7da5c
docs: Update README (GitHub Actions Bot)
Chores
-
b7621c3
chore: remove browser test fromnpm test
(#17550) (Milos Djermanovic) -
cac45d0
chore: upgrade @eslint/js@8.49.0 (#17549) (Milos Djermanovic) -
cd39508
chore: package.json update for @eslint/js release (ESLint Jenkins) -
203a971
ci: bump actions/checkout from 3 to 4 (#17530) (dependabot[bot]) -
a40fa50
chore: use eslint-plugin-jsdoc's flat config (#17516) (Milos Djermanovic) -
926a286
test: replace Karma with Webdriver.IO (#17126) (Christian Bromann) -
f591d2c
chore: Upgrade config-array (#17512) (Nicholas C. Zakas)
v8.48.0
Features
-
1fbb3b0
feat: correct update direction infor-direction
(#17483) (Francesco Trotta) -
d73fbf2
feat: rule tester do not create empty valid or invalid test suites (#17475) (fnx) -
ee2f718
feat: Allowvoid
in ruleno-promise-executor-return
(#17282) (nopeless)
Bug Fixes
Documentation
-
7a51d77
docs: no-param-reassign mention strict mode (#17494) (Stephen Hardy) -
9cd7ac2
docs: addfetch
script to package.json conventions (#17459) (Nitin Kumar) -
cab21e6
docs: advice for inline disabling of rules (#17458) (Ashish Yadav) -
056499d
docs: fix example of flat config from plugin (#17482) (Francesco Trotta) -
9e9edf9
docs: update documentation URL in error message (#17465) (Nitin Kumar)
Chores
-
8dd3cec
chore: upgrade @eslint/js@8.48.0 (#17501) (Milos Djermanovic) -
6d0496e
chore: package.json update for @eslint/js release (ESLint Jenkins) -
9d4216d
chore: Refactor and document CodePathSegment (#17474) (Nicholas C. Zakas)
v8.47.0
Features
Bug Fixes
Documentation
-
a766a48
docs: document lack of config file names (#17442) (James) -
a1635d6
docs: Update README (GitHub Actions Bot) -
47a0859
docs: updaterequire-unicode-regexp.md
as following up #17402 (#17441) (SUZUKI Sosuke) -
fcdc85d
docs: Update README (GitHub Actions Bot) -
2a92b6c
docs: update with "Specifying Parser Options" (#17435) (Cheol-Won) -
d743ed3
docs: add metadata for parser/processor (#17438) (Huáng Jùnliàng) -
224376c
docs: Update README (GitHub Actions Bot) -
a41a8e4
docs: update script names in README (#17432) (Nitin Kumar)
Chores
-
bf69aa6
chore: Update dependencies (#17456) (Nicholas C. Zakas) -
0e45760
chore: package.json update for @eslint/js release (ESLint Jenkins) -
757bfe1
chore: Remove add-to-triage (#17450) (Nicholas C. Zakas) -
b066640
chore: standardize npm script names (#17431) (Nitin Kumar) -
6b2410f
chore: Update add-to-triage.yml (#17444) (Nicholas C. Zakas)
v8.46.0
Features
-
8a93438
feat:require-unicode-regexp
supportv
flag (#17402) (SUZUKI Sosuke) -
1a2f966
feat:no-useless-escape
supportv
flag (#17420) (Yosuke Ota) -
ee68d1d
feat:no-empty-character-class
supportv
flag (#17419) (Milos Djermanovic) -
853d32b
feat: deprecate no-return-await (#17417) (Carlos Lopez) -
d4f02e4
feat:no-control-regex
supportv
flag (#17405) (Yosuke Ota) -
2a35f3e
feat:prefer-named-capture-group
supportv
flag (#17409) (Yosuke Ota) -
8ca8b50
feat: Better error message for flat config plugins (#17399) (Nicholas C. Zakas) -
509f753
feat:no-misleading-character-class
supportv
flag (#17406) (Yosuke Ota) -
3caf514
feat:no-regex-spaces
supportv
flag (#17407) (Yosuke Ota) -
b7fad2b
feat:prefer-regex-literals
supportv
flag (#17410) (Yosuke Ota) -
a6a3ad4
feat:no-useless-backreference
supportv
flag (#17408) (Yosuke Ota) -
94954a7
feat:no-invalid-regexp
supportv
flag (#17404) (Yosuke Ota) -
1af6eac
feat: adds option for allowing empty object patterns as parameter (#17365) (Tanuj Kanti) -
cf03104
feat: Improve config error messages (#17385) (Nicholas C. Zakas)
Bug Fixes
-
9803c7c
fix: FlatESLint#getRulesMetaForResults shouldn't throw on unknown rules (#17393) (Milos Djermanovic) -
42faa17
fix: Update no-loop-func to not overlap with no-undef (#17358) (Matt Wilkinson)
Documentation
-
4d474e3
docs: update with TypeScript info (#17423) (James) -
091f44e
docs: File extension named processor deprecation (#17362) (Matt Wilkinson) -
9254a6c
docs: Update README (GitHub Actions Bot) -
6d6dc51
docs: fix overlapping ofopen in playground
button (#17403) (Tanuj Kanti) -
7fc3a2c
docs: Add private class features info to no-underscore-dangle (#17386) (Matt Wilkinson) -
da73e58
docs: Migratingeslint-env
configuration comments (#17390) (Francesco Trotta) -
80dffed
docs: fix Ignoring Files section in config migration guide (#17392) (Milos Djermanovic) -
8a9abb7
docs: Update README (GitHub Actions Bot) -
7e9be4b
docs: Update README (GitHub Actions Bot) -
0b0bbe0
docs: Update README (GitHub Actions Bot)
Chores
-
d1eb7e4
chore: Update ecosystem dependencies (#17427) (Nicholas C. Zakas) -
fab9e97
chore: package.json update for eslint-config-eslint release (ESLint Jenkins) -
6246711
chore: package.json update for @eslint/js release (ESLint Jenkins) -
0aa0bc3
chore: Add MRs to triage project (#17421) (Nicholas C. Zakas)
import-js/eslint-plugin-import
v2.28.1
Fixed
Changed
v2.28.0
Fixed
- [
no-duplicates
]: remove duplicate identifiers in duplicate imports ([#2577], thanks [@joe-matsec]) - [
consistent-type-specifier-style
]: fix accidental removal of comma in certain cases ([#2754], thanks [@bradzacher]) - [Perf]
ExportMap
: ImproveExportMap.for
performance on larger codebases ([#2756], thanks [@leipert]) - [
no-extraneous-dependencies
]/TypeScript: do not error when importing inline type from dev dependencies ([#1820], thanks [@andyogo]) - [
newline-after-import
]/TypeScript: do not error when re-exporting a namespaced import ([#2832], thanks [@laurens-dg]) - [
order
]: partial fix for [#2687] (thanks [@ljharb]) - [
no-duplicates
]: Detect across type and regular imports ([#2835], thanks [@benkrejci]) - [
extensions
]: handle.
and..
properly ([#2778], thanks [@benasher44]) - [
no-unused-modules
]: improve schema (thanks [@ljharb]) - [
no-unused-modules
]: report error on binding instead of parent export ([#2842], thanks [@Chamion])
Changed
- [Docs] [
no-duplicates
]: fix example schema ([#2684], thanks [@simmo]) - [Docs] [
group-exports
]: fix syntax highlighting ([#2699], thanks [@devinrhode2]) - [Docs] [
extensions
]: reference node ESM behavior ([#2748], thanks [@xM8WVqaG]) - [Refactor] [
exports-last
]: usearray.prototype.findlastindex
(thanks [@ljharb]) - [Refactor] [
no-anonymous-default-export
]: useobject.fromentries
(thanks [@ljharb]) - [Refactor] [
no-unused-modules
]: usearray.prototype.flatmap
(thanks [@ljharb])
prettier/prettier
v3.0.3
preferUnplugged: true
to package.json
(#15169 by @fisker and @so1ve)
Add Prettier v3 uses dynamic imports, user will need to unplug Prettier when Yarn's PnP mode is enabled, add preferUnplugged: true
to package.json
, so Yarn will install Prettier as unplug by default.
require()
(#15233 by @fisker)
Support shared config that forbids If an external shared config package is used, and the package exports
don't have require
or default
export.
In Prettier 3.0.2 Prettier fails when attempt to require()
the package, and throws an error.
Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: No "exports" main defined in <packageName>/package.json
require()
to break (#15256 by @fisker)
Allow argument of // Input
const plugin = require(
global.STANDALONE
? path.join(__dirname, "../standalone.js")
: path.join(__dirname, "..")
);
// Prettier 3.0.2
const plugin = require(global.STANDALONE
? path.join(__dirname, "../standalone.js")
: path.join(__dirname, ".."));
// Prettier 3.0.3
const plugin = require(
global.STANDALONE
? path.join(__dirname, "../standalone.js")
: path.join(__dirname, "..")
);
ts
code blocks (#15286 by @sosukesuzuki)
Do not print trailing commas in arrow function type parameter lists in <!-- Input -->
```ts
const foo = <T>() => {}
```
<!-- Prettier 3.0.2 -->
```ts
const foo = <T,>() => {}
```
<!-- Prettier 3.0.3 -->
```ts
const foo = <T>() => {}
```
using
/ await using
declaration (#15321 by @sosukesuzuki)
Support TypeScript 5.2 Support for the upcoming Explicit Resource Management feature in ECMAScript. using
/ await using
declaration
{
using foo = new Foo();
await using bar = new Bar();
}
v3.0.2
=
of assignment if RHS is poorly breakable AwaitExpression or YieldExpression (#15204 by @seiyab)
Break after // Input
const { section, rubric, authors, tags } = await utils.upsertCommonData(mainData);
// Prettier 3.0.1
const { section, rubric, authors, tags } = await utils.upsertCommonData(
mainData,
);
// Prettier 3.0.2
const { section, rubric, authors, tags } =
await utils.upsertCommonData(mainData);
#15217 by @auvred)
Do not add trailing comma for grouped scss comments (/* Input */
$foo: (
'property': (),
// comment 1
// comment 2
)
/* Prettier 3.0.1 */
$foo: (
"property": (),
// comment 1
// comment 2,
);
/* Prettier 3.0.2 */
$foo: (
"property": (),
// comment 1
// comment 2
);
declare
and export
keywords for nested namespace (#15249 by @sosukesuzuki)
Print // Input
declare namespace abc1.def {}
export namespace abc2.def {}
// Prettier 3.0.1
namespace abc1.def {}
namespace abc2.def {}
// Prettier 3.0.2
declare namespace abc1.def {}
export namespace abc2.def {}
v3.0.1
#14812 by @fisker)
Fix cursor positioning for a special case (// <|> 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"
#15018 by @kingyue737)
Fix plugins/estree.d.ts to make it a module (Add export {}
in plugins/estree.d.ts
to fix the "File is not a module" error
#15037 by @auvred)
Add parenthesis around leading multiline comment in return statement (// Input
function fn() {
return (
/**
* @​type {...}
*/ expresssion
)
}
// Prettier 3.0.0
function fn() {
return /**
* @​type {...}
*/ expresssion;
}
// Prettier 3.0.1
function fn() {
return (
/**
* @​type {...}
*/ expresssion
);
}
#15066 by @auvred)
Add support for Vue "Generic Components" (https://blog.vuejs.org/posts/vue-3-3#generic-components
<!-- Input -->
<script setup lang="ts" generic="T extends Type1 & Type2 & (Type3 | Type4), U extends string | number | boolean"></script>
<!-- Prettier 3.0.0 -->
<script
setup
lang="ts"
generic="T extends Type1 & Type2 & (Type3 | Type4), U extends string | number | boolean"
></script>
<!-- Prettier 3.0.1 -->
<script
setup
lang="ts"
generic="
T extends Type1 & Type2 & (Type3 | Type4),
U extends string | number | boolean
"
></script>
IfStatement
(#15076 by @fisker)
Fix comments print in function a(b) {
if (b) return 1; // comment
else return 2;
}
/* Prettier 3.0.0 */
Error: Comment "comment" was not printed. Please report this error!
/* Prettier 3.0.1 */
function a(b) {
if (b) return 1; // comment
else return 2;
}
printer.preprocess
(#15123 by @so1ve)
Add missing type definition for export interface Printer<T = any> {
// ...
+ preprocess?:
+ | ((ast: T, options: ParserOptions<T>) => T | Promise<T>)
+ | undefined;
}
getVisitorKeys
method type definition for Printer
(#15125 by @auvred)
Add missing const printer: Printer = {
print: () => [],
getVisitorKeys(node, nonTraversableKeys) {
return ["body"];
},
};
readonly
array properties of AST Node (#15127 by @auvred)
Add typing to support // Input
interface TestNode {
readonlyArray: readonly string[];
}
declare const path: AstPath<TestNode>;
path.map(() => "", "readonlyArray");
// Prettier 3.0.0
interface TestNode {
readonlyArray: readonly string[];
}
declare const path: AstPath<TestNode>;
path.map(() => "", "readonlyArray");
// ^ Argument of type '"readonlyArray"' is not assignable to parameter of type '"regularArray"'. ts(2345)
// Prettier 3.0.1
interface TestNode {
readonlyArray: readonly string[];
}
declare const path: AstPath<TestNode>;
path.map(() => "", "readonlyArray");
#15129 by @pamelalozano)
Add space before unary minus followed by a function call (// Input
div {
margin: - func();
}
// Prettier 3.0.0
div {
margin: -func();
}
// Prettier 3.0.1
div {
margin: - func();
}
Configuration
-
If you want to rebase/retry this MR, check this box
This MR has been generated by Renovate Bot.