diff --git a/CHANGELOG.md b/CHANGELOG.md
index 7fbfc4bba22a..a1e2bc105286 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -3,6 +3,12 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+# [5.47.0](https://github.com/typescript-eslint/typescript-eslint/compare/v5.46.1...v5.47.0) (2022-12-19)
+
+### Features
+
+- **eslint-plugin:** [no-floating-promises] add suggestion fixer to add an 'await' ([#5943](https://github.com/typescript-eslint/typescript-eslint/issues/5943)) ([9e35ef9](https://github.com/typescript-eslint/typescript-eslint/commit/9e35ef9af3ec51ab2dd49336699f3a94528bb4b1))
+
## [5.46.1](https://github.com/typescript-eslint/typescript-eslint/compare/v5.46.0...v5.46.1) (2022-12-12)
**Note:** Version bump only for package @typescript-eslint/typescript-eslint
diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md
index ff1a7dbe9a4c..2dcd4d3f847e 100644
--- a/CONTRIBUTORS.md
+++ b/CONTRIBUTORS.md
@@ -48,21 +48,21 @@ Thanks goes to these wonderful people:
diff --git a/lerna.json b/lerna.json
index 05ae3263abca..7ce39a5b95bc 100644
--- a/lerna.json
+++ b/lerna.json
@@ -1,5 +1,5 @@
{
- "version": "5.46.1",
+ "version": "5.47.0",
"npmClient": "yarn",
"useWorkspaces": true,
"stream": true
diff --git a/package.json b/package.json
index 021f9250bef7..ead2b34ea820 100644
--- a/package.json
+++ b/package.json
@@ -28,7 +28,7 @@
"check-docs": "nx run-many --target=check-docs --all --parallel",
"check-format": "prettier --list-different .",
"check-spelling": "cspell --config=.cspell.json \"**/*.{md,mdx,ts,mts,cts,js,cjs,mjs,tsx,jsx}\"",
- "clean": "lerna clean && lerna run clean",
+ "clean": "lerna clean -y && nx run-many --target=clean",
"format": "prettier --write .",
"generate-contributors": "yarn ts-node --transpile-only ./tools/generate-contributors.ts",
"generate-sponsors": "yarn ts-node --transpile-only ./tools/generate-sponsors.ts",
@@ -55,7 +55,8 @@
"@babel/parser": "^7.20.3",
"@babel/types": "^7.20.2",
"@nrwl/nx-cloud": "15.0.2",
- "@nrwl/workspace": "15.2.4",
+ "@nrwl/jest": "15.3.2",
+ "@nrwl/workspace": "15.3.2",
"@swc/core": "^1.3.1",
"@swc/jest": "^0.2.21",
"@types/babel__code-frame": "^7.0.3",
@@ -98,7 +99,7 @@
"make-dir": "^3.1.0",
"markdownlint-cli": "^0.32.0",
"ncp": "^2.0.0",
- "nx": "15.2.4",
+ "nx": "15.3.2",
"patch-package": "^6.4.7",
"prettier": "2.8.0",
"pretty-format": "^29.0.3",
diff --git a/packages/ast-spec/CHANGELOG.md b/packages/ast-spec/CHANGELOG.md
index 8b8f051a142a..94c27b4b05ba 100644
--- a/packages/ast-spec/CHANGELOG.md
+++ b/packages/ast-spec/CHANGELOG.md
@@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+# [5.47.0](https://github.com/typescript-eslint/typescript-eslint/compare/v5.46.1...v5.47.0) (2022-12-19)
+
+**Note:** Version bump only for package @typescript-eslint/ast-spec
+
## [5.46.1](https://github.com/typescript-eslint/typescript-eslint/compare/v5.46.0...v5.46.1) (2022-12-12)
**Note:** Version bump only for package @typescript-eslint/ast-spec
diff --git a/packages/ast-spec/package.json b/packages/ast-spec/package.json
index dd8390cfc5dd..43d55d737a88 100644
--- a/packages/ast-spec/package.json
+++ b/packages/ast-spec/package.json
@@ -1,6 +1,6 @@
{
"name": "@typescript-eslint/ast-spec",
- "version": "5.46.1",
+ "version": "5.47.0",
"description": "Complete specification for the TypeScript-ESTree AST",
"private": true,
"keywords": [
diff --git a/packages/eslint-plugin-internal/CHANGELOG.md b/packages/eslint-plugin-internal/CHANGELOG.md
index 84d3ba163725..0ef4d5949bab 100644
--- a/packages/eslint-plugin-internal/CHANGELOG.md
+++ b/packages/eslint-plugin-internal/CHANGELOG.md
@@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+# [5.47.0](https://github.com/typescript-eslint/typescript-eslint/compare/v5.46.1...v5.47.0) (2022-12-19)
+
+**Note:** Version bump only for package @typescript-eslint/eslint-plugin-internal
+
## [5.46.1](https://github.com/typescript-eslint/typescript-eslint/compare/v5.46.0...v5.46.1) (2022-12-12)
**Note:** Version bump only for package @typescript-eslint/eslint-plugin-internal
diff --git a/packages/eslint-plugin-internal/package.json b/packages/eslint-plugin-internal/package.json
index 1d3a61a74ea4..150d4b07bff5 100644
--- a/packages/eslint-plugin-internal/package.json
+++ b/packages/eslint-plugin-internal/package.json
@@ -1,6 +1,6 @@
{
"name": "@typescript-eslint/eslint-plugin-internal",
- "version": "5.46.1",
+ "version": "5.47.0",
"private": true,
"main": "dist/index.js",
"scripts": {
@@ -14,9 +14,9 @@
},
"dependencies": {
"@types/prettier": "*",
- "@typescript-eslint/scope-manager": "5.46.1",
- "@typescript-eslint/type-utils": "5.46.1",
- "@typescript-eslint/utils": "5.46.1",
+ "@typescript-eslint/scope-manager": "5.47.0",
+ "@typescript-eslint/type-utils": "5.47.0",
+ "@typescript-eslint/utils": "5.47.0",
"prettier": "*"
}
}
diff --git a/packages/eslint-plugin-tslint/CHANGELOG.md b/packages/eslint-plugin-tslint/CHANGELOG.md
index 037d1977639c..96bf9ea8c4a3 100644
--- a/packages/eslint-plugin-tslint/CHANGELOG.md
+++ b/packages/eslint-plugin-tslint/CHANGELOG.md
@@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+# [5.47.0](https://github.com/typescript-eslint/typescript-eslint/compare/v5.46.1...v5.47.0) (2022-12-19)
+
+**Note:** Version bump only for package @typescript-eslint/eslint-plugin-tslint
+
## [5.46.1](https://github.com/typescript-eslint/typescript-eslint/compare/v5.46.0...v5.46.1) (2022-12-12)
**Note:** Version bump only for package @typescript-eslint/eslint-plugin-tslint
diff --git a/packages/eslint-plugin-tslint/package.json b/packages/eslint-plugin-tslint/package.json
index ade2a2808923..bea2cd2728ca 100644
--- a/packages/eslint-plugin-tslint/package.json
+++ b/packages/eslint-plugin-tslint/package.json
@@ -1,6 +1,6 @@
{
"name": "@typescript-eslint/eslint-plugin-tslint",
- "version": "5.46.1",
+ "version": "5.47.0",
"main": "dist/index.js",
"typings": "src/index.ts",
"description": "ESLint plugin that wraps a TSLint configuration and lints the whole source using TSLint",
@@ -38,7 +38,7 @@
"typecheck": "tsc -p tsconfig.json --noEmit"
},
"dependencies": {
- "@typescript-eslint/utils": "5.46.1",
+ "@typescript-eslint/utils": "5.47.0",
"lodash": "^4.17.21"
},
"peerDependencies": {
@@ -48,6 +48,6 @@
},
"devDependencies": {
"@types/lodash": "*",
- "@typescript-eslint/parser": "5.46.1"
+ "@typescript-eslint/parser": "5.47.0"
}
}
diff --git a/packages/eslint-plugin/CHANGELOG.md b/packages/eslint-plugin/CHANGELOG.md
index 74ddd9d67c61..90c2058884c9 100644
--- a/packages/eslint-plugin/CHANGELOG.md
+++ b/packages/eslint-plugin/CHANGELOG.md
@@ -3,6 +3,12 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+# [5.47.0](https://github.com/typescript-eslint/typescript-eslint/compare/v5.46.1...v5.47.0) (2022-12-19)
+
+### Features
+
+- **eslint-plugin:** [no-floating-promises] add suggestion fixer to add an 'await' ([#5943](https://github.com/typescript-eslint/typescript-eslint/issues/5943)) ([9e35ef9](https://github.com/typescript-eslint/typescript-eslint/commit/9e35ef9af3ec51ab2dd49336699f3a94528bb4b1))
+
## [5.46.1](https://github.com/typescript-eslint/typescript-eslint/compare/v5.46.0...v5.46.1) (2022-12-12)
**Note:** Version bump only for package @typescript-eslint/eslint-plugin
diff --git a/packages/eslint-plugin/docs/rules/no-non-null-assertion.md b/packages/eslint-plugin/docs/rules/no-non-null-assertion.md
index d8ac3bd31048..874e01605c8e 100644
--- a/packages/eslint-plugin/docs/rules/no-non-null-assertion.md
+++ b/packages/eslint-plugin/docs/rules/no-non-null-assertion.md
@@ -22,7 +22,7 @@ interface Example {
}
declare const example: Example;
-const includesBaz = foo.property!.includes('baz');
+const includesBaz = example.property!.includes('baz');
```
### ✅ Correct
@@ -33,7 +33,7 @@ interface Example {
}
declare const example: Example;
-const includesBaz = foo.property?.includes('baz') ?? false;
+const includesBaz = example.property?.includes('baz') ?? false;
```
## When Not To Use It
diff --git a/packages/eslint-plugin/package.json b/packages/eslint-plugin/package.json
index 31cf59e366d0..97e1846ffe3e 100644
--- a/packages/eslint-plugin/package.json
+++ b/packages/eslint-plugin/package.json
@@ -1,6 +1,6 @@
{
"name": "@typescript-eslint/eslint-plugin",
- "version": "5.46.1",
+ "version": "5.47.0",
"description": "TypeScript plugin for ESLint",
"keywords": [
"eslint",
@@ -44,9 +44,9 @@
"typecheck": "tsc -p tsconfig.json --noEmit"
},
"dependencies": {
- "@typescript-eslint/scope-manager": "5.46.1",
- "@typescript-eslint/type-utils": "5.46.1",
- "@typescript-eslint/utils": "5.46.1",
+ "@typescript-eslint/scope-manager": "5.47.0",
+ "@typescript-eslint/type-utils": "5.47.0",
+ "@typescript-eslint/utils": "5.47.0",
"debug": "^4.3.4",
"ignore": "^5.2.0",
"natural-compare-lite": "^1.4.0",
diff --git a/packages/eslint-plugin/src/rules/no-floating-promises.ts b/packages/eslint-plugin/src/rules/no-floating-promises.ts
index 05f0954e305d..61829743e81b 100644
--- a/packages/eslint-plugin/src/rules/no-floating-promises.ts
+++ b/packages/eslint-plugin/src/rules/no-floating-promises.ts
@@ -1,7 +1,7 @@
import type { TSESLint, TSESTree } from '@typescript-eslint/utils';
import { AST_NODE_TYPES } from '@typescript-eslint/utils';
import * as tsutils from 'tsutils';
-import type * as ts from 'typescript';
+import * as ts from 'typescript';
import * as util from '../util';
@@ -12,7 +12,11 @@ type Options = [
},
];
-type MessageId = 'floating' | 'floatingVoid' | 'floatingFixVoid';
+type MessageId =
+ | 'floating'
+ | 'floatingVoid'
+ | 'floatingFixVoid'
+ | 'floatingFixAwait';
export default util.createRule({
name: 'no-floating-promises',
@@ -27,6 +31,7 @@ export default util.createRule({
messages: {
floating:
'Promises must be awaited, end with a call to .catch, or end with a call to .then with a rejection handler.',
+ floatingFixAwait: 'Add await operator.',
floatingVoid:
'Promises must be awaited, end with a call to .catch, end with a call to .then with a rejection handler' +
' or be explicitly marked as ignored with the `void` operator.',
@@ -95,12 +100,54 @@ export default util.createRule({
context.report({
node,
messageId: 'floating',
+ suggest: [
+ {
+ messageId: 'floatingFixAwait',
+ fix(fixer): TSESLint.RuleFix | TSESLint.RuleFix[] {
+ if (
+ expression.type === AST_NODE_TYPES.UnaryExpression &&
+ expression.operator === 'void'
+ ) {
+ return fixer.replaceTextRange(
+ [expression.range[0], expression.range[0] + 4],
+ 'await',
+ );
+ }
+ const tsNode = parserServices.esTreeNodeToTSNodeMap.get(
+ node.expression,
+ );
+ if (isHigherPrecedenceThanAwait(tsNode)) {
+ return fixer.insertTextBefore(node, 'await ');
+ } else {
+ return [
+ fixer.insertTextBefore(node, 'await ('),
+ fixer.insertTextAfterRange(
+ [expression.range[1], expression.range[1]],
+ ')',
+ ),
+ ];
+ }
+ },
+ },
+ ],
});
}
}
},
};
+ function isHigherPrecedenceThanAwait(node: ts.Node): boolean {
+ const operator = tsutils.isBinaryExpression(node)
+ ? node.operatorToken.kind
+ : ts.SyntaxKind.Unknown;
+ const nodePrecedence = util.getOperatorPrecedence(node.kind, operator);
+ const awaitPrecedence = util.getOperatorPrecedence(
+ ts.SyntaxKind.AwaitExpression,
+ ts.SyntaxKind.Unknown,
+ );
+ return nodePrecedence > awaitPrecedence;
+ }
+
function isAsyncIife(node: TSESTree.ExpressionStatement): boolean {
if (node.expression.type !== AST_NODE_TYPES.CallExpression) {
return false;
diff --git a/packages/eslint-plugin/tests/rules/no-floating-promises.test.ts b/packages/eslint-plugin/tests/rules/no-floating-promises.test.ts
index 17ec0bb61986..a80acab989ae 100644
--- a/packages/eslint-plugin/tests/rules/no-floating-promises.test.ts
+++ b/packages/eslint-plugin/tests/rules/no-floating-promises.test.ts
@@ -656,6 +656,147 @@ async function test() {
{
line: 3,
messageId: 'floating',
+ suggestions: [
+ {
+ messageId: 'floatingFixAwait',
+ output: `
+async function test() {
+ await Promise.resolve();
+}
+ `,
+ },
+ ],
+ },
+ ],
+ },
+ {
+ code: `
+async function test() {
+ const promise = new Promise((resolve, reject) => resolve('value'));
+ promise;
+}
+ `,
+ options: [{ ignoreVoid: false }],
+ errors: [
+ {
+ line: 4,
+ messageId: 'floating',
+ suggestions: [
+ {
+ messageId: 'floatingFixAwait',
+ output: `
+async function test() {
+ const promise = new Promise((resolve, reject) => resolve('value'));
+ await promise;
+}
+ `,
+ },
+ ],
+ },
+ ],
+ },
+ {
+ code: `
+async function returnsPromise() {
+ return 'value';
+}
+void returnsPromise();
+ `,
+ options: [{ ignoreVoid: false }],
+ errors: [
+ {
+ line: 5,
+ messageId: 'floating',
+ suggestions: [
+ {
+ messageId: 'floatingFixAwait',
+ output: `
+async function returnsPromise() {
+ return 'value';
+}
+await returnsPromise();
+ `,
+ },
+ ],
+ },
+ ],
+ },
+ {
+ // eslint-disable-next-line @typescript-eslint/internal/plugin-test-formatting
+ code: `
+async function returnsPromise() {
+ return 'value';
+}
+void /* ... */ returnsPromise();
+ `,
+ options: [{ ignoreVoid: false }],
+ errors: [
+ {
+ line: 5,
+ messageId: 'floating',
+ suggestions: [
+ {
+ messageId: 'floatingFixAwait',
+ output: `
+async function returnsPromise() {
+ return 'value';
+}
+await /* ... */ returnsPromise();
+ `,
+ },
+ ],
+ },
+ ],
+ },
+ {
+ code: `
+async function returnsPromise() {
+ return 'value';
+}
+1, returnsPromise();
+ `,
+ options: [{ ignoreVoid: false }],
+ errors: [
+ {
+ line: 5,
+ messageId: 'floating',
+ suggestions: [
+ {
+ messageId: 'floatingFixAwait',
+ output: `
+async function returnsPromise() {
+ return 'value';
+}
+await (1, returnsPromise());
+ `,
+ },
+ ],
+ },
+ ],
+ },
+ {
+ code: `
+async function returnsPromise() {
+ return 'value';
+}
+bool ? returnsPromise() : null;
+ `,
+ options: [{ ignoreVoid: false }],
+ errors: [
+ {
+ line: 5,
+ messageId: 'floating',
+ suggestions: [
+ {
+ messageId: 'floatingFixAwait',
+ output: `
+async function returnsPromise() {
+ return 'value';
+}
+await (bool ? returnsPromise() : null);
+ `,
+ },
+ ],
},
],
},
diff --git a/packages/experimental-utils/CHANGELOG.md b/packages/experimental-utils/CHANGELOG.md
index d958d1436812..64691834bd7b 100644
--- a/packages/experimental-utils/CHANGELOG.md
+++ b/packages/experimental-utils/CHANGELOG.md
@@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+# [5.47.0](https://github.com/typescript-eslint/typescript-eslint/compare/v5.46.1...v5.47.0) (2022-12-19)
+
+**Note:** Version bump only for package @typescript-eslint/experimental-utils
+
## [5.46.1](https://github.com/typescript-eslint/typescript-eslint/compare/v5.46.0...v5.46.1) (2022-12-12)
**Note:** Version bump only for package @typescript-eslint/experimental-utils
diff --git a/packages/experimental-utils/package.json b/packages/experimental-utils/package.json
index 4030b20dcb4b..036ead227f23 100644
--- a/packages/experimental-utils/package.json
+++ b/packages/experimental-utils/package.json
@@ -1,6 +1,6 @@
{
"name": "@typescript-eslint/experimental-utils",
- "version": "5.46.1",
+ "version": "5.47.0",
"description": "(Experimental) Utilities for working with TypeScript + ESLint together",
"keywords": [
"eslint",
@@ -38,7 +38,7 @@
"typecheck": "tsc -p tsconfig.json --noEmit"
},
"dependencies": {
- "@typescript-eslint/utils": "5.46.1"
+ "@typescript-eslint/utils": "5.47.0"
},
"peerDependencies": {
"eslint": "^6.0.0 || ^7.0.0 || ^8.0.0"
diff --git a/packages/parser/CHANGELOG.md b/packages/parser/CHANGELOG.md
index ab637d405ae4..408dee37efc5 100644
--- a/packages/parser/CHANGELOG.md
+++ b/packages/parser/CHANGELOG.md
@@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+# [5.47.0](https://github.com/typescript-eslint/typescript-eslint/compare/v5.46.1...v5.47.0) (2022-12-19)
+
+**Note:** Version bump only for package @typescript-eslint/parser
+
## [5.46.1](https://github.com/typescript-eslint/typescript-eslint/compare/v5.46.0...v5.46.1) (2022-12-12)
**Note:** Version bump only for package @typescript-eslint/parser
diff --git a/packages/parser/package.json b/packages/parser/package.json
index e2361a139ed5..2cc90048c4d5 100644
--- a/packages/parser/package.json
+++ b/packages/parser/package.json
@@ -1,6 +1,6 @@
{
"name": "@typescript-eslint/parser",
- "version": "5.46.1",
+ "version": "5.47.0",
"description": "An ESLint custom parser which leverages TypeScript ESTree",
"main": "dist/index.js",
"types": "dist/index.d.ts",
@@ -45,9 +45,9 @@
"eslint": "^6.0.0 || ^7.0.0 || ^8.0.0"
},
"dependencies": {
- "@typescript-eslint/scope-manager": "5.46.1",
- "@typescript-eslint/types": "5.46.1",
- "@typescript-eslint/typescript-estree": "5.46.1",
+ "@typescript-eslint/scope-manager": "5.47.0",
+ "@typescript-eslint/types": "5.47.0",
+ "@typescript-eslint/typescript-estree": "5.47.0",
"debug": "^4.3.4"
},
"devDependencies": {
diff --git a/packages/scope-manager/CHANGELOG.md b/packages/scope-manager/CHANGELOG.md
index 7af026248532..271fd09c38f3 100644
--- a/packages/scope-manager/CHANGELOG.md
+++ b/packages/scope-manager/CHANGELOG.md
@@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+# [5.47.0](https://github.com/typescript-eslint/typescript-eslint/compare/v5.46.1...v5.47.0) (2022-12-19)
+
+**Note:** Version bump only for package @typescript-eslint/scope-manager
+
## [5.46.1](https://github.com/typescript-eslint/typescript-eslint/compare/v5.46.0...v5.46.1) (2022-12-12)
**Note:** Version bump only for package @typescript-eslint/scope-manager
diff --git a/packages/scope-manager/package.json b/packages/scope-manager/package.json
index 933add59f670..022e85421683 100644
--- a/packages/scope-manager/package.json
+++ b/packages/scope-manager/package.json
@@ -1,6 +1,6 @@
{
"name": "@typescript-eslint/scope-manager",
- "version": "5.46.1",
+ "version": "5.47.0",
"description": "TypeScript scope analyser for ESLint",
"keywords": [
"eslint",
@@ -38,12 +38,12 @@
"typecheck": "nx typecheck"
},
"dependencies": {
- "@typescript-eslint/types": "5.46.1",
- "@typescript-eslint/visitor-keys": "5.46.1"
+ "@typescript-eslint/types": "5.47.0",
+ "@typescript-eslint/visitor-keys": "5.47.0"
},
"devDependencies": {
"@types/glob": "*",
- "@typescript-eslint/typescript-estree": "5.46.1",
+ "@typescript-eslint/typescript-estree": "5.47.0",
"glob": "*",
"jest-specific-snapshot": "*",
"make-dir": "*",
diff --git a/packages/shared-fixtures/CHANGELOG.md b/packages/shared-fixtures/CHANGELOG.md
index 8954c99d3f82..d3b2426d3d07 100644
--- a/packages/shared-fixtures/CHANGELOG.md
+++ b/packages/shared-fixtures/CHANGELOG.md
@@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+# [5.47.0](https://github.com/typescript-eslint/typescript-eslint/compare/v5.46.1...v5.47.0) (2022-12-19)
+
+**Note:** Version bump only for package @typescript-eslint/shared-fixtures
+
## [5.46.1](https://github.com/typescript-eslint/typescript-eslint/compare/v5.46.0...v5.46.1) (2022-12-12)
**Note:** Version bump only for package @typescript-eslint/shared-fixtures
diff --git a/packages/shared-fixtures/package.json b/packages/shared-fixtures/package.json
index fe37cc399219..14d1cd304f3a 100644
--- a/packages/shared-fixtures/package.json
+++ b/packages/shared-fixtures/package.json
@@ -1,6 +1,6 @@
{
"description": "Code fixtures used to test the typescript-estree parser.",
"name": "@typescript-eslint/shared-fixtures",
- "version": "5.46.1",
+ "version": "5.47.0",
"private": true
}
diff --git a/packages/type-utils/CHANGELOG.md b/packages/type-utils/CHANGELOG.md
index 8ef63cde40ce..6e671c9045e4 100644
--- a/packages/type-utils/CHANGELOG.md
+++ b/packages/type-utils/CHANGELOG.md
@@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+# [5.47.0](https://github.com/typescript-eslint/typescript-eslint/compare/v5.46.1...v5.47.0) (2022-12-19)
+
+**Note:** Version bump only for package @typescript-eslint/type-utils
+
## [5.46.1](https://github.com/typescript-eslint/typescript-eslint/compare/v5.46.0...v5.46.1) (2022-12-12)
**Note:** Version bump only for package @typescript-eslint/type-utils
diff --git a/packages/type-utils/package.json b/packages/type-utils/package.json
index 6b4acb042baf..5aabf4256106 100644
--- a/packages/type-utils/package.json
+++ b/packages/type-utils/package.json
@@ -1,6 +1,6 @@
{
"name": "@typescript-eslint/type-utils",
- "version": "5.46.1",
+ "version": "5.47.0",
"description": "Type utilities for working with TypeScript + ESLint together",
"keywords": [
"eslint",
@@ -39,13 +39,13 @@
"typecheck": "tsc -p tsconfig.json --noEmit"
},
"dependencies": {
- "@typescript-eslint/typescript-estree": "5.46.1",
- "@typescript-eslint/utils": "5.46.1",
+ "@typescript-eslint/typescript-estree": "5.47.0",
+ "@typescript-eslint/utils": "5.47.0",
"debug": "^4.3.4",
"tsutils": "^3.21.0"
},
"devDependencies": {
- "@typescript-eslint/parser": "5.46.1",
+ "@typescript-eslint/parser": "5.47.0",
"typescript": "*"
},
"peerDependencies": {
diff --git a/packages/types/CHANGELOG.md b/packages/types/CHANGELOG.md
index 3350b0f54706..948a70f26916 100644
--- a/packages/types/CHANGELOG.md
+++ b/packages/types/CHANGELOG.md
@@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+# [5.47.0](https://github.com/typescript-eslint/typescript-eslint/compare/v5.46.1...v5.47.0) (2022-12-19)
+
+**Note:** Version bump only for package @typescript-eslint/types
+
## [5.46.1](https://github.com/typescript-eslint/typescript-eslint/compare/v5.46.0...v5.46.1) (2022-12-12)
**Note:** Version bump only for package @typescript-eslint/types
diff --git a/packages/types/package.json b/packages/types/package.json
index 68258118ae17..9e19e30b07b9 100644
--- a/packages/types/package.json
+++ b/packages/types/package.json
@@ -1,6 +1,6 @@
{
"name": "@typescript-eslint/types",
- "version": "5.46.1",
+ "version": "5.47.0",
"description": "Types for the TypeScript-ESTree AST spec",
"keywords": [
"eslint",
diff --git a/packages/typescript-estree/CHANGELOG.md b/packages/typescript-estree/CHANGELOG.md
index 7c12eb686ebb..5e5539b5181e 100644
--- a/packages/typescript-estree/CHANGELOG.md
+++ b/packages/typescript-estree/CHANGELOG.md
@@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+# [5.47.0](https://github.com/typescript-eslint/typescript-eslint/compare/v5.46.1...v5.47.0) (2022-12-19)
+
+**Note:** Version bump only for package @typescript-eslint/typescript-estree
+
## [5.46.1](https://github.com/typescript-eslint/typescript-eslint/compare/v5.46.0...v5.46.1) (2022-12-12)
**Note:** Version bump only for package @typescript-eslint/typescript-estree
diff --git a/packages/typescript-estree/package.json b/packages/typescript-estree/package.json
index f03bb3eeecf2..4afe3c9e0922 100644
--- a/packages/typescript-estree/package.json
+++ b/packages/typescript-estree/package.json
@@ -1,6 +1,6 @@
{
"name": "@typescript-eslint/typescript-estree",
- "version": "5.46.1",
+ "version": "5.47.0",
"description": "A parser that converts TypeScript source code into an ESTree compatible form",
"main": "dist/index.js",
"types": "dist/index.d.ts",
@@ -42,8 +42,8 @@
"typecheck": "tsc -p tsconfig.json --noEmit"
},
"dependencies": {
- "@typescript-eslint/types": "5.46.1",
- "@typescript-eslint/visitor-keys": "5.46.1",
+ "@typescript-eslint/types": "5.47.0",
+ "@typescript-eslint/visitor-keys": "5.47.0",
"debug": "^4.3.4",
"globby": "^11.1.0",
"is-glob": "^4.0.3",
@@ -59,7 +59,7 @@
"@types/is-glob": "*",
"@types/semver": "*",
"@types/tmp": "*",
- "@typescript-eslint/shared-fixtures": "5.46.1",
+ "@typescript-eslint/shared-fixtures": "5.47.0",
"glob": "*",
"jest-specific-snapshot": "*",
"make-dir": "*",
diff --git a/packages/utils/CHANGELOG.md b/packages/utils/CHANGELOG.md
index 408534815441..638f079f478a 100644
--- a/packages/utils/CHANGELOG.md
+++ b/packages/utils/CHANGELOG.md
@@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+# [5.47.0](https://github.com/typescript-eslint/typescript-eslint/compare/v5.46.1...v5.47.0) (2022-12-19)
+
+**Note:** Version bump only for package @typescript-eslint/utils
+
## [5.46.1](https://github.com/typescript-eslint/typescript-eslint/compare/v5.46.0...v5.46.1) (2022-12-12)
**Note:** Version bump only for package @typescript-eslint/utils
diff --git a/packages/utils/package.json b/packages/utils/package.json
index f0c35d911e13..cab6e3db60d0 100644
--- a/packages/utils/package.json
+++ b/packages/utils/package.json
@@ -1,6 +1,6 @@
{
"name": "@typescript-eslint/utils",
- "version": "5.46.1",
+ "version": "5.47.0",
"description": "Utilities for working with TypeScript + ESLint together",
"keywords": [
"eslint",
@@ -41,9 +41,9 @@
"dependencies": {
"@types/json-schema": "^7.0.9",
"@types/semver": "^7.3.12",
- "@typescript-eslint/scope-manager": "5.46.1",
- "@typescript-eslint/types": "5.46.1",
- "@typescript-eslint/typescript-estree": "5.46.1",
+ "@typescript-eslint/scope-manager": "5.47.0",
+ "@typescript-eslint/types": "5.47.0",
+ "@typescript-eslint/typescript-estree": "5.47.0",
"eslint-scope": "^5.1.1",
"eslint-utils": "^3.0.0",
"semver": "^7.3.7"
@@ -52,7 +52,7 @@
"eslint": "^6.0.0 || ^7.0.0 || ^8.0.0"
},
"devDependencies": {
- "@typescript-eslint/parser": "5.46.1",
+ "@typescript-eslint/parser": "5.47.0",
"typescript": "*"
},
"funding": {
diff --git a/packages/visitor-keys/CHANGELOG.md b/packages/visitor-keys/CHANGELOG.md
index d3c1d03fde29..262c208eb6ac 100644
--- a/packages/visitor-keys/CHANGELOG.md
+++ b/packages/visitor-keys/CHANGELOG.md
@@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+# [5.47.0](https://github.com/typescript-eslint/typescript-eslint/compare/v5.46.1...v5.47.0) (2022-12-19)
+
+**Note:** Version bump only for package @typescript-eslint/visitor-keys
+
## [5.46.1](https://github.com/typescript-eslint/typescript-eslint/compare/v5.46.0...v5.46.1) (2022-12-12)
**Note:** Version bump only for package @typescript-eslint/visitor-keys
diff --git a/packages/visitor-keys/package.json b/packages/visitor-keys/package.json
index 57f71eee1557..ef02c5ea731b 100644
--- a/packages/visitor-keys/package.json
+++ b/packages/visitor-keys/package.json
@@ -1,6 +1,6 @@
{
"name": "@typescript-eslint/visitor-keys",
- "version": "5.46.1",
+ "version": "5.47.0",
"description": "Visitor keys used to help traverse the TypeScript-ESTree AST",
"keywords": [
"eslint",
@@ -39,7 +39,7 @@
"typecheck": "tsc -p tsconfig.json --noEmit"
},
"dependencies": {
- "@typescript-eslint/types": "5.46.1",
+ "@typescript-eslint/types": "5.47.0",
"eslint-visitor-keys": "^3.3.0"
},
"devDependencies": {
diff --git a/packages/website-eslint/CHANGELOG.md b/packages/website-eslint/CHANGELOG.md
index 1006fd2ea831..7f40d31a4bcd 100644
--- a/packages/website-eslint/CHANGELOG.md
+++ b/packages/website-eslint/CHANGELOG.md
@@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+# [5.47.0](https://github.com/typescript-eslint/typescript-eslint/compare/v5.46.1...v5.47.0) (2022-12-19)
+
+**Note:** Version bump only for package @typescript-eslint/website-eslint
+
## [5.46.1](https://github.com/typescript-eslint/typescript-eslint/compare/v5.46.0...v5.46.1) (2022-12-12)
**Note:** Version bump only for package @typescript-eslint/website-eslint
diff --git a/packages/website-eslint/package.json b/packages/website-eslint/package.json
index b95f12310273..42db85050bbf 100644
--- a/packages/website-eslint/package.json
+++ b/packages/website-eslint/package.json
@@ -1,6 +1,6 @@
{
"name": "@typescript-eslint/website-eslint",
- "version": "5.46.1",
+ "version": "5.47.0",
"private": true,
"description": "ESLint which works in browsers.",
"engines": {
@@ -16,19 +16,19 @@
"format": "prettier --write \"./**/*.{ts,mts,cts,tsx,js,mjs,cjs,jsx,json,md,css}\" --ignore-path ../../.prettierignore"
},
"dependencies": {
- "@typescript-eslint/types": "5.46.1",
- "@typescript-eslint/utils": "5.46.1"
+ "@typescript-eslint/types": "5.47.0",
+ "@typescript-eslint/utils": "5.47.0"
},
"devDependencies": {
"@rollup/plugin-commonjs": "^23.0.0",
"@rollup/plugin-json": "^5.0.0",
"@rollup/plugin-node-resolve": "^15.0.0",
"@rollup/pluginutils": "^5.0.0",
- "@typescript-eslint/eslint-plugin": "5.46.1",
- "@typescript-eslint/parser": "5.46.1",
- "@typescript-eslint/scope-manager": "5.46.1",
- "@typescript-eslint/typescript-estree": "5.46.1",
- "@typescript-eslint/visitor-keys": "5.46.1",
+ "@typescript-eslint/eslint-plugin": "5.47.0",
+ "@typescript-eslint/parser": "5.47.0",
+ "@typescript-eslint/scope-manager": "5.47.0",
+ "@typescript-eslint/typescript-estree": "5.47.0",
+ "@typescript-eslint/visitor-keys": "5.47.0",
"eslint": "*",
"rollup": "^2.75.4",
"rollup-plugin-terser": "^7.0.2",
diff --git a/packages/website/CHANGELOG.md b/packages/website/CHANGELOG.md
index b0a49ca4a19f..844add200d15 100644
--- a/packages/website/CHANGELOG.md
+++ b/packages/website/CHANGELOG.md
@@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+# [5.47.0](https://github.com/typescript-eslint/typescript-eslint/compare/v5.46.1...v5.47.0) (2022-12-19)
+
+**Note:** Version bump only for package website
+
## [5.46.1](https://github.com/typescript-eslint/typescript-eslint/compare/v5.46.0...v5.46.1) (2022-12-12)
**Note:** Version bump only for package website
diff --git a/packages/website/data/sponsors.json b/packages/website/data/sponsors.json
index 83e40bf42b27..d550faf83f85 100644
--- a/packages/website/data/sponsors.json
+++ b/packages/website/data/sponsors.json
@@ -132,6 +132,13 @@
"totalDonations": 15500,
"website": "https://blacksheepcode.com"
},
+ {
+ "id": "THANKS.DEV",
+ "image": "https://images.opencollective.com/thanks-dev/ed78b39/logo.png",
+ "name": "THANKS.DEV",
+ "totalDonations": 14761,
+ "website": "https://thanks.dev"
+ },
{
"id": "Joe Alden",
"image": "https://images.opencollective.com/joealden/44a6738/avatar.png",
diff --git a/packages/website/package.json b/packages/website/package.json
index f2e254b7fd07..2dcab6631347 100644
--- a/packages/website/package.json
+++ b/packages/website/package.json
@@ -1,6 +1,6 @@
{
"name": "website",
- "version": "5.46.1",
+ "version": "5.47.0",
"private": true,
"scripts": {
"build": "docusaurus build",
@@ -21,8 +21,8 @@
"@docusaurus/remark-plugin-npm2yarn": "~2.2.0",
"@docusaurus/theme-common": "~2.2.0",
"@mdx-js/react": "1.6.22",
- "@typescript-eslint/parser": "5.46.1",
- "@typescript-eslint/website-eslint": "5.46.1",
+ "@typescript-eslint/parser": "5.47.0",
+ "@typescript-eslint/website-eslint": "5.47.0",
"clsx": "^1.1.1",
"eslint": "*",
"json-schema": "^0.4.0",
@@ -48,7 +48,7 @@
"@types/react": "^18.0.9",
"@types/react-helmet": "^6.1.5",
"@types/react-router-dom": "^5.3.3",
- "@typescript-eslint/eslint-plugin": "5.46.1",
+ "@typescript-eslint/eslint-plugin": "5.47.0",
"copy-webpack-plugin": "^11.0.0",
"eslint-plugin-jsx-a11y": "^6.5.1",
"eslint-plugin-react": "^7.29.4",
diff --git a/packages/website/src/components/FinancialContributors/index.tsx b/packages/website/src/components/FinancialContributors/index.tsx
index e0f83e34293b..d71bd0650045 100644
--- a/packages/website/src/components/FinancialContributors/index.tsx
+++ b/packages/website/src/components/FinancialContributors/index.tsx
@@ -10,8 +10,8 @@ export function FinancialContributors(): JSX.Element {
return (
<>
- The typescript-estlint project would not be possible without the
- generous support of our financial contributors.
+ The typescript-eslint project would not be possible without the generous
+ support of our financial contributors.
{description}
Get Started
@@ -136,11 +136,12 @@ function Home(): JSX.Element {