chore(deps): update linting
This MR contains the following updates:
Package | Type | Update | Change |
---|---|---|---|
@typescript-eslint/eslint-plugin | devDependencies | minor | ^6.2.0 -> ^6.4.1 |
@typescript-eslint/parser | devDependencies | minor | ^6.2.0 -> ^6.4.1 |
eslint (source) | devDependencies | minor | ^8.45.0 -> ^8.47.0 |
eslint-plugin-import | devDependencies | minor | ^2.27.5 -> ^2.28.1 |
prettier (source) | devDependencies | patch | ^3.0.0 -> ^3.0.2 |
MR created with the help of gitlab-org/frontend/renovate-gitlab-bot
Release Notes
typescript-eslint/typescript-eslint (@typescript-eslint/eslint-plugin)
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.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.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.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.