({
}
// Reports.
- context.report({
- node: reference.identifier,
- messageId: 'noUseBeforeDefine',
- data: {
- name: reference.identifier.name,
- },
- });
+ report();
});
scope.childScopes.forEach(findVariablesInScope);
diff --git a/packages/eslint-plugin/tests/rules/no-use-before-define.test.ts b/packages/eslint-plugin/tests/rules/no-use-before-define.test.ts
index 32924973a5c2..676704fb2799 100644
--- a/packages/eslint-plugin/tests/rules/no-use-before-define.test.ts
+++ b/packages/eslint-plugin/tests/rules/no-use-before-define.test.ts
@@ -326,6 +326,92 @@ enum Foo {
`,
options: [{ enums: false }],
},
+
+ // "allowNamedExports" option
+ {
+ code: `
+export { a };
+const a = 1;
+ `,
+ options: [{ allowNamedExports: true }],
+ parserOptions,
+ },
+ {
+ code: `
+export { a as b };
+const a = 1;
+ `,
+ options: [{ allowNamedExports: true }],
+ parserOptions,
+ },
+ {
+ code: `
+export { a, b };
+let a, b;
+ `,
+ options: [{ allowNamedExports: true }],
+ parserOptions,
+ },
+ {
+ code: `
+export { a };
+var a;
+ `,
+ options: [{ allowNamedExports: true }],
+ parserOptions,
+ },
+ {
+ code: `
+export { f };
+function f() {}
+ `,
+ options: [{ allowNamedExports: true }],
+ parserOptions,
+ },
+ {
+ code: `
+export { C };
+class C {}
+ `,
+ options: [{ allowNamedExports: true }],
+ parserOptions,
+ },
+ {
+ code: `
+export { Foo };
+
+enum Foo {
+ BAR,
+}
+ `,
+ options: [{ allowNamedExports: true }],
+ parserOptions,
+ },
+ {
+ code: `
+export { Foo };
+
+namespace Foo {
+ export let bar = () => console.log('bar');
+}
+ `,
+ options: [{ allowNamedExports: true }],
+ parserOptions,
+ },
+ {
+ code: `
+export { Foo, baz };
+
+enum Foo {
+ BAR,
+}
+
+let baz: Enum;
+enum Enum {}
+ `,
+ options: [{ allowNamedExports: true }],
+ parserOptions,
+ },
// https://github.com/typescript-eslint/typescript-eslint/issues/2502
{
code: `
@@ -1094,6 +1180,237 @@ enum Foo {
},
],
},
+ // "allowNamedExports" option
+ {
+ code: `
+export { a };
+const a = 1;
+ `,
+ parserOptions,
+ errors: [
+ {
+ messageId: 'noUseBeforeDefine',
+ data: { name: 'a' },
+ },
+ ],
+ },
+ {
+ code: `
+export { a };
+const a = 1;
+ `,
+ options: [{}],
+ parserOptions,
+ errors: [
+ {
+ messageId: 'noUseBeforeDefine',
+ data: { name: 'a' },
+ },
+ ],
+ },
+ {
+ code: `
+export { a };
+const a = 1;
+ `,
+ options: [{ allowNamedExports: false }],
+ parserOptions,
+ errors: [
+ {
+ messageId: 'noUseBeforeDefine',
+ data: { name: 'a' },
+ },
+ ],
+ },
+ {
+ code: `
+export { a };
+const a = 1;
+ `,
+ options: ['nofunc'],
+ parserOptions,
+ errors: [
+ {
+ messageId: 'noUseBeforeDefine',
+ data: { name: 'a' },
+ },
+ ],
+ },
+ {
+ code: `
+export { a as b };
+const a = 1;
+ `,
+ parserOptions,
+ errors: [
+ {
+ messageId: 'noUseBeforeDefine',
+ data: { name: 'a' },
+ },
+ ],
+ },
+ {
+ code: `
+export { a, b };
+let a, b;
+ `,
+ parserOptions,
+ errors: [
+ {
+ messageId: 'noUseBeforeDefine',
+ data: { name: 'a' },
+ },
+ {
+ messageId: 'noUseBeforeDefine',
+ data: { name: 'b' },
+ },
+ ],
+ },
+ {
+ code: `
+export { a };
+var a;
+ `,
+ parserOptions,
+ errors: [
+ {
+ messageId: 'noUseBeforeDefine',
+ data: { name: 'a' },
+ },
+ ],
+ },
+ {
+ code: `
+export { f };
+function f() {}
+ `,
+ parserOptions,
+ errors: [
+ {
+ messageId: 'noUseBeforeDefine',
+ data: { name: 'f' },
+ },
+ ],
+ },
+ {
+ code: `
+export { C };
+class C {}
+ `,
+ parserOptions,
+ errors: [
+ {
+ messageId: 'noUseBeforeDefine',
+ data: { name: 'C' },
+ },
+ ],
+ },
+ {
+ code: `
+export const foo = a;
+const a = 1;
+ `,
+ options: [{ allowNamedExports: true }],
+ parserOptions,
+ errors: [
+ {
+ messageId: 'noUseBeforeDefine',
+ data: { name: 'a' },
+ },
+ ],
+ },
+ {
+ code: `
+export function foo() {
+ return a;
+}
+const a = 1;
+ `,
+ options: [{ allowNamedExports: true }],
+ parserOptions,
+
+ errors: [
+ {
+ messageId: 'noUseBeforeDefine',
+ data: { name: 'a' },
+ },
+ ],
+ },
+ {
+ code: `
+export class C {
+ foo() {
+ return a;
+ }
+}
+const a = 1;
+ `,
+ options: [{ allowNamedExports: true }],
+ parserOptions,
+
+ errors: [
+ {
+ messageId: 'noUseBeforeDefine',
+ data: { name: 'a' },
+ },
+ ],
+ },
+ {
+ code: `
+export { Foo };
+
+enum Foo {
+ BAR,
+}
+ `,
+ parserOptions,
+ errors: [
+ {
+ messageId: 'noUseBeforeDefine',
+ data: { name: 'Foo' },
+ },
+ ],
+ },
+ {
+ code: `
+export { Foo };
+
+namespace Foo {
+ export let bar = () => console.log('bar');
+}
+ `,
+ parserOptions,
+ errors: [
+ {
+ messageId: 'noUseBeforeDefine',
+ data: { name: 'Foo' },
+ },
+ ],
+ },
+ {
+ code: `
+export { Foo, baz };
+
+enum Foo {
+ BAR,
+}
+
+let baz: Enum;
+enum Enum {}
+ `,
+ options: [{ ignoreTypeReferences: true, allowNamedExports: false }],
+ parserOptions,
+ errors: [
+ {
+ messageId: 'noUseBeforeDefine',
+ data: { name: 'Foo' },
+ },
+ {
+ messageId: 'noUseBeforeDefine',
+ data: { name: 'baz' },
+ },
+ ],
+ },
{
code: `
f();
diff --git a/packages/experimental-utils/CHANGELOG.md b/packages/experimental-utils/CHANGELOG.md
index bcbfe2782b05..41236fb9bd9c 100644
--- a/packages/experimental-utils/CHANGELOG.md
+++ b/packages/experimental-utils/CHANGELOG.md
@@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+# [5.32.0](https://github.com/typescript-eslint/typescript-eslint/compare/v5.31.0...v5.32.0) (2022-08-01)
+
+**Note:** Version bump only for package @typescript-eslint/experimental-utils
+
+
+
+
+
# [5.31.0](https://github.com/typescript-eslint/typescript-eslint/compare/v5.30.7...v5.31.0) (2022-07-25)
**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 b7d3d70cda79..17f09a73f54d 100644
--- a/packages/experimental-utils/package.json
+++ b/packages/experimental-utils/package.json
@@ -1,6 +1,6 @@
{
"name": "@typescript-eslint/experimental-utils",
- "version": "5.31.0",
+ "version": "5.32.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.31.0"
+ "@typescript-eslint/utils": "5.32.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 1827897fa5f9..d9b615225873 100644
--- a/packages/parser/CHANGELOG.md
+++ b/packages/parser/CHANGELOG.md
@@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+# [5.32.0](https://github.com/typescript-eslint/typescript-eslint/compare/v5.31.0...v5.32.0) (2022-08-01)
+
+**Note:** Version bump only for package @typescript-eslint/parser
+
+
+
+
+
# [5.31.0](https://github.com/typescript-eslint/typescript-eslint/compare/v5.30.7...v5.31.0) (2022-07-25)
**Note:** Version bump only for package @typescript-eslint/parser
diff --git a/packages/parser/package.json b/packages/parser/package.json
index a7a34bbdb921..9a41b02e9411 100644
--- a/packages/parser/package.json
+++ b/packages/parser/package.json
@@ -1,6 +1,6 @@
{
"name": "@typescript-eslint/parser",
- "version": "5.31.0",
+ "version": "5.32.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.31.0",
- "@typescript-eslint/types": "5.31.0",
- "@typescript-eslint/typescript-estree": "5.31.0",
+ "@typescript-eslint/scope-manager": "5.32.0",
+ "@typescript-eslint/types": "5.32.0",
+ "@typescript-eslint/typescript-estree": "5.32.0",
"debug": "^4.3.4"
},
"devDependencies": {
diff --git a/packages/scope-manager/CHANGELOG.md b/packages/scope-manager/CHANGELOG.md
index 8c1b32a851ce..fe15424d0a5c 100644
--- a/packages/scope-manager/CHANGELOG.md
+++ b/packages/scope-manager/CHANGELOG.md
@@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+# [5.32.0](https://github.com/typescript-eslint/typescript-eslint/compare/v5.31.0...v5.32.0) (2022-08-01)
+
+**Note:** Version bump only for package @typescript-eslint/scope-manager
+
+
+
+
+
# [5.31.0](https://github.com/typescript-eslint/typescript-eslint/compare/v5.30.7...v5.31.0) (2022-07-25)
diff --git a/packages/scope-manager/package.json b/packages/scope-manager/package.json
index cf66eeae3e34..21deb7e2057e 100644
--- a/packages/scope-manager/package.json
+++ b/packages/scope-manager/package.json
@@ -1,6 +1,6 @@
{
"name": "@typescript-eslint/scope-manager",
- "version": "5.31.0",
+ "version": "5.32.0",
"description": "TypeScript scope analyser for ESLint",
"keywords": [
"eslint",
@@ -38,12 +38,12 @@
"typecheck": "cd ../../ && nx typecheck @typescript-eslint/scope-manager"
},
"dependencies": {
- "@typescript-eslint/types": "5.31.0",
- "@typescript-eslint/visitor-keys": "5.31.0"
+ "@typescript-eslint/types": "5.32.0",
+ "@typescript-eslint/visitor-keys": "5.32.0"
},
"devDependencies": {
"@types/glob": "*",
- "@typescript-eslint/typescript-estree": "5.31.0",
+ "@typescript-eslint/typescript-estree": "5.32.0",
"glob": "*",
"jest-specific-snapshot": "*",
"make-dir": "*",
diff --git a/packages/shared-fixtures/CHANGELOG.md b/packages/shared-fixtures/CHANGELOG.md
index 9eb4fbd30758..f75148f1a1a3 100644
--- a/packages/shared-fixtures/CHANGELOG.md
+++ b/packages/shared-fixtures/CHANGELOG.md
@@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+# [5.32.0](https://github.com/typescript-eslint/typescript-eslint/compare/v5.31.0...v5.32.0) (2022-08-01)
+
+**Note:** Version bump only for package @typescript-eslint/shared-fixtures
+
+
+
+
+
# [5.31.0](https://github.com/typescript-eslint/typescript-eslint/compare/v5.30.7...v5.31.0) (2022-07-25)
**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 aaf5ae877894..bf82c1b1dd10 100644
--- a/packages/shared-fixtures/package.json
+++ b/packages/shared-fixtures/package.json
@@ -1,5 +1,5 @@
{
"name": "@typescript-eslint/shared-fixtures",
- "version": "5.31.0",
+ "version": "5.32.0",
"private": true
}
diff --git a/packages/type-utils/CHANGELOG.md b/packages/type-utils/CHANGELOG.md
index 5fb62320d696..07c084b9ecaf 100644
--- a/packages/type-utils/CHANGELOG.md
+++ b/packages/type-utils/CHANGELOG.md
@@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+# [5.32.0](https://github.com/typescript-eslint/typescript-eslint/compare/v5.31.0...v5.32.0) (2022-08-01)
+
+**Note:** Version bump only for package @typescript-eslint/type-utils
+
+
+
+
+
# [5.31.0](https://github.com/typescript-eslint/typescript-eslint/compare/v5.30.7...v5.31.0) (2022-07-25)
**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 f459f69c0511..8de709431cd2 100644
--- a/packages/type-utils/package.json
+++ b/packages/type-utils/package.json
@@ -1,6 +1,6 @@
{
"name": "@typescript-eslint/type-utils",
- "version": "5.31.0",
+ "version": "5.32.0",
"description": "Type utilities for working with TypeScript + ESLint together",
"keywords": [
"eslint",
@@ -39,12 +39,12 @@
"typecheck": "tsc -p tsconfig.json --noEmit"
},
"dependencies": {
- "@typescript-eslint/utils": "5.31.0",
+ "@typescript-eslint/utils": "5.32.0",
"debug": "^4.3.4",
"tsutils": "^3.21.0"
},
"devDependencies": {
- "@typescript-eslint/parser": "5.31.0",
+ "@typescript-eslint/parser": "5.32.0",
"typescript": "*"
},
"peerDependencies": {
diff --git a/packages/types/CHANGELOG.md b/packages/types/CHANGELOG.md
index a349101ec1f4..db9a8a1a3275 100644
--- a/packages/types/CHANGELOG.md
+++ b/packages/types/CHANGELOG.md
@@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+# [5.32.0](https://github.com/typescript-eslint/typescript-eslint/compare/v5.31.0...v5.32.0) (2022-08-01)
+
+**Note:** Version bump only for package @typescript-eslint/types
+
+
+
+
+
# [5.31.0](https://github.com/typescript-eslint/typescript-eslint/compare/v5.30.7...v5.31.0) (2022-07-25)
**Note:** Version bump only for package @typescript-eslint/types
diff --git a/packages/types/package.json b/packages/types/package.json
index 428f0a747077..e168a1f4048c 100644
--- a/packages/types/package.json
+++ b/packages/types/package.json
@@ -1,6 +1,6 @@
{
"name": "@typescript-eslint/types",
- "version": "5.31.0",
+ "version": "5.32.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 b2dd189b6a49..3baaea2b67ab 100644
--- a/packages/typescript-estree/CHANGELOG.md
+++ b/packages/typescript-estree/CHANGELOG.md
@@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+# [5.32.0](https://github.com/typescript-eslint/typescript-eslint/compare/v5.31.0...v5.32.0) (2022-08-01)
+
+**Note:** Version bump only for package @typescript-eslint/typescript-estree
+
+
+
+
+
# [5.31.0](https://github.com/typescript-eslint/typescript-eslint/compare/v5.30.7...v5.31.0) (2022-07-25)
**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 df745ec45e12..100a1f968804 100644
--- a/packages/typescript-estree/package.json
+++ b/packages/typescript-estree/package.json
@@ -1,6 +1,6 @@
{
"name": "@typescript-eslint/typescript-estree",
- "version": "5.31.0",
+ "version": "5.32.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.31.0",
- "@typescript-eslint/visitor-keys": "5.31.0",
+ "@typescript-eslint/types": "5.32.0",
+ "@typescript-eslint/visitor-keys": "5.32.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.31.0",
+ "@typescript-eslint/shared-fixtures": "5.32.0",
"glob": "*",
"jest-specific-snapshot": "*",
"make-dir": "*",
diff --git a/packages/utils/CHANGELOG.md b/packages/utils/CHANGELOG.md
index daa12050bc34..4afc13b637e2 100644
--- a/packages/utils/CHANGELOG.md
+++ b/packages/utils/CHANGELOG.md
@@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+# [5.32.0](https://github.com/typescript-eslint/typescript-eslint/compare/v5.31.0...v5.32.0) (2022-08-01)
+
+**Note:** Version bump only for package @typescript-eslint/utils
+
+
+
+
+
# [5.31.0](https://github.com/typescript-eslint/typescript-eslint/compare/v5.30.7...v5.31.0) (2022-07-25)
**Note:** Version bump only for package @typescript-eslint/utils
diff --git a/packages/utils/package.json b/packages/utils/package.json
index c0507bc0e84d..8e24365b0f34 100644
--- a/packages/utils/package.json
+++ b/packages/utils/package.json
@@ -1,6 +1,6 @@
{
"name": "@typescript-eslint/utils",
- "version": "5.31.0",
+ "version": "5.32.0",
"description": "Utilities for working with TypeScript + ESLint together",
"keywords": [
"eslint",
@@ -40,9 +40,9 @@
},
"dependencies": {
"@types/json-schema": "^7.0.9",
- "@typescript-eslint/scope-manager": "5.31.0",
- "@typescript-eslint/types": "5.31.0",
- "@typescript-eslint/typescript-estree": "5.31.0",
+ "@typescript-eslint/scope-manager": "5.32.0",
+ "@typescript-eslint/types": "5.32.0",
+ "@typescript-eslint/typescript-estree": "5.32.0",
"eslint-scope": "^5.1.1",
"eslint-utils": "^3.0.0"
},
diff --git a/packages/visitor-keys/CHANGELOG.md b/packages/visitor-keys/CHANGELOG.md
index 6cbcb6b7a475..1b9b29f26395 100644
--- a/packages/visitor-keys/CHANGELOG.md
+++ b/packages/visitor-keys/CHANGELOG.md
@@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+# [5.32.0](https://github.com/typescript-eslint/typescript-eslint/compare/v5.31.0...v5.32.0) (2022-08-01)
+
+**Note:** Version bump only for package @typescript-eslint/visitor-keys
+
+
+
+
+
# [5.31.0](https://github.com/typescript-eslint/typescript-eslint/compare/v5.30.7...v5.31.0) (2022-07-25)
**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 eccaeefe1f20..60f50685c1fd 100644
--- a/packages/visitor-keys/package.json
+++ b/packages/visitor-keys/package.json
@@ -1,6 +1,6 @@
{
"name": "@typescript-eslint/visitor-keys",
- "version": "5.31.0",
+ "version": "5.32.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.31.0",
+ "@typescript-eslint/types": "5.32.0",
"eslint-visitor-keys": "^3.3.0"
},
"devDependencies": {
diff --git a/packages/website-eslint/CHANGELOG.md b/packages/website-eslint/CHANGELOG.md
index 637e723e221d..fd4104b8151f 100644
--- a/packages/website-eslint/CHANGELOG.md
+++ b/packages/website-eslint/CHANGELOG.md
@@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+# [5.32.0](https://github.com/typescript-eslint/typescript-eslint/compare/v5.31.0...v5.32.0) (2022-08-01)
+
+**Note:** Version bump only for package @typescript-eslint/website-eslint
+
+
+
+
+
# [5.31.0](https://github.com/typescript-eslint/typescript-eslint/compare/v5.30.7...v5.31.0) (2022-07-25)
**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 28493ffc35ac..65c5d4a380da 100644
--- a/packages/website-eslint/package.json
+++ b/packages/website-eslint/package.json
@@ -1,6 +1,6 @@
{
"name": "@typescript-eslint/website-eslint",
- "version": "5.31.0",
+ "version": "5.32.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.31.0",
- "@typescript-eslint/utils": "5.31.0"
+ "@typescript-eslint/types": "5.32.0",
+ "@typescript-eslint/utils": "5.32.0"
},
"devDependencies": {
"@rollup/plugin-commonjs": "^22.0.0",
"@rollup/plugin-json": "^4.1.0",
"@rollup/plugin-node-resolve": "^13.3.0",
"@rollup/pluginutils": "^4.2.1",
- "@typescript-eslint/eslint-plugin": "5.31.0",
- "@typescript-eslint/parser": "5.31.0",
- "@typescript-eslint/scope-manager": "5.31.0",
- "@typescript-eslint/typescript-estree": "5.31.0",
- "@typescript-eslint/visitor-keys": "5.31.0",
+ "@typescript-eslint/eslint-plugin": "5.32.0",
+ "@typescript-eslint/parser": "5.32.0",
+ "@typescript-eslint/scope-manager": "5.32.0",
+ "@typescript-eslint/typescript-estree": "5.32.0",
+ "@typescript-eslint/visitor-keys": "5.32.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 f7a084c3dbeb..b388535fb5b8 100644
--- a/packages/website/CHANGELOG.md
+++ b/packages/website/CHANGELOG.md
@@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+# [5.32.0](https://github.com/typescript-eslint/typescript-eslint/compare/v5.31.0...v5.32.0) (2022-08-01)
+
+**Note:** Version bump only for package website
+
+
+
+
+
# [5.31.0](https://github.com/typescript-eslint/typescript-eslint/compare/v5.30.7...v5.31.0) (2022-07-25)
**Note:** Version bump only for package website
diff --git a/packages/website/package.json b/packages/website/package.json
index ee5a05772d95..749ebf998544 100644
--- a/packages/website/package.json
+++ b/packages/website/package.json
@@ -1,6 +1,6 @@
{
"name": "website",
- "version": "5.31.0",
+ "version": "5.32.0",
"private": true,
"scripts": {
"build": "docusaurus build",
@@ -20,7 +20,7 @@
"@docusaurus/remark-plugin-npm2yarn": "2.0.0-beta.21",
"@docusaurus/theme-common": "2.0.0-beta.21",
"@mdx-js/react": "1.6.22",
- "@typescript-eslint/website-eslint": "5.31.0",
+ "@typescript-eslint/website-eslint": "5.32.0",
"clsx": "^1.1.1",
"eslint": "*",
"json5": "^2.2.1",
@@ -37,7 +37,7 @@
"@types/react": "^18.0.9",
"@types/react-helmet": "^6.1.5",
"@types/react-router-dom": "^5.3.3",
- "@typescript-eslint/eslint-plugin": "5.31.0",
+ "@typescript-eslint/eslint-plugin": "5.32.0",
"copy-webpack-plugin": "^11.0.0",
"cypress": "8.3.0",
"cypress-axe": "^0.14.0",
diff --git a/packages/website/src/pages/index.tsx b/packages/website/src/pages/index.tsx
index 0d713efb8ac5..a4c454e54eaa 100644
--- a/packages/website/src/pages/index.tsx
+++ b/packages/website/src/pages/index.tsx
@@ -127,7 +127,10 @@ function Home(): JSX.Element {
{siteConfig.title}
{siteConfig.tagline}
-
+
Get Started
=14.4.3 < 16"
leven@^3.1.0:
version "3.1.0"
@@ -10209,7 +10253,7 @@ lodash@^4.17.15, lodash@^4.17.19, lodash@^4.17.20, lodash@^4.17.21, lodash@^4.7.
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.21.tgz#679591c564c3bffaae8454cf0b3df370c3d6911c"
integrity sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==
-log-symbols@^4.0.0:
+log-symbols@^4.0.0, log-symbols@^4.1.0:
version "4.1.0"
resolved "https://registry.yarnpkg.com/log-symbols/-/log-symbols-4.1.0.tgz#3fbdbb95b4683ac9fc785111e792e558d4abd503"
integrity sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg==
@@ -10609,6 +10653,13 @@ minimatch@3.0.4:
dependencies:
brace-expansion "^1.1.7"
+minimatch@3.0.5:
+ version "3.0.5"
+ resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.0.5.tgz#4da8f1290ee0f0f8e83d60ca69f8f134068604a3"
+ integrity sha512-tUpxzX0VAzJHjLu0xUfFv1gwVp9ba3IOuRAVH2EGuRW8a5emA2FlACLqiT/lDVtS1W+TGNwqz3sWaNyLgDJWuw==
+ dependencies:
+ brace-expansion "^1.1.7"
+
minimatch@^3.0.4, minimatch@^3.1.1, minimatch@^3.1.2:
version "3.1.2"
resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.1.2.tgz#19cd194bfd3e428f049a70817c038d89ab4be35b"
@@ -10832,7 +10883,7 @@ node-emoji@^1.10.0:
dependencies:
lodash "^4.17.21"
-node-fetch@2.6.7, node-fetch@^2.6.1:
+node-fetch@2.6.7, node-fetch@^2.6.1, node-fetch@^2.6.7:
version "2.6.7"
resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.6.7.tgz#24de9fba827e3b4ae44dc8b20256a379160052ad"
integrity sha512-ZjMPFEfVx5j+y2yF35Kzx5sF7kDzxuDj6ziH4FFbOp87zKDZNx8yExJIb05OGF4Nlt9IHFIMBkRl41VdvcNdbQ==
@@ -10974,16 +11025,6 @@ npm-package-arg@^9.0.0, npm-package-arg@^9.0.1:
semver "^7.3.5"
validate-npm-package-name "^4.0.0"
-npm-packlist@^2.1.4:
- version "2.2.2"
- resolved "https://registry.yarnpkg.com/npm-packlist/-/npm-packlist-2.2.2.tgz#076b97293fa620f632833186a7a8f65aaa6148c8"
- integrity sha512-Jt01acDvJRhJGthnUJVF/w6gumWOZxO7IkpY/lsX9//zqQgnF7OJaxgQXcerd4uQOLu7W5bkb4mChL9mdfm+Zg==
- dependencies:
- glob "^7.1.6"
- ignore-walk "^3.0.3"
- npm-bundled "^1.1.1"
- npm-normalize-package-bin "^1.0.1"
-
npm-packlist@^5.0.0:
version "5.0.4"
resolved "https://registry.yarnpkg.com/npm-packlist/-/npm-packlist-5.0.4.tgz#b8a0635964dbf72baeeb7e69ec32e822f1c26159"
@@ -10994,6 +11035,16 @@ npm-packlist@^5.0.0:
npm-bundled "^1.1.2"
npm-normalize-package-bin "^1.0.1"
+npm-packlist@^5.1.0, npm-packlist@^5.1.1:
+ version "5.1.1"
+ resolved "https://registry.yarnpkg.com/npm-packlist/-/npm-packlist-5.1.1.tgz#79bcaf22a26b6c30aa4dd66b976d69cc286800e0"
+ integrity sha512-UfpSvQ5YKwctmodvPPkK6Fwk603aoVsf8AEbmVKAEECrfvL8SSe1A2YIwrJ6xmTHAITKPwwZsWo7WwEbNk0kxw==
+ dependencies:
+ glob "^8.0.1"
+ ignore-walk "^5.0.1"
+ npm-bundled "^1.1.2"
+ npm-normalize-package-bin "^1.0.1"
+
npm-pick-manifest@^7.0.0:
version "7.0.1"
resolved "https://registry.yarnpkg.com/npm-pick-manifest/-/npm-pick-manifest-7.0.1.tgz#76dda30a7cd6b99be822217a935c2f5eacdaca4c"
@@ -11130,6 +11181,42 @@ nx@14.1.4:
yargs "^17.4.0"
yargs-parser "21.0.1"
+nx@14.4.3, "nx@>=14.4.3 < 16":
+ version "14.4.3"
+ resolved "https://registry.yarnpkg.com/nx/-/nx-14.4.3.tgz#27a1aea9ffaf143800c20006ed20f9a26f4610a3"
+ integrity sha512-XPaoEAfJI9056qdwTvkutQSwwA3iihqNDwhvk3dmgpT35j8Uzm/y67goACaCUBCjP2dIQqXfNfJVWQIpcG3MTw==
+ dependencies:
+ "@nrwl/cli" "14.4.3"
+ "@nrwl/tao" "14.4.3"
+ "@parcel/watcher" "2.0.4"
+ chalk "4.1.0"
+ chokidar "^3.5.1"
+ cli-cursor "3.1.0"
+ cli-spinners "2.6.1"
+ cliui "^7.0.2"
+ dotenv "~10.0.0"
+ enquirer "~2.3.6"
+ fast-glob "3.2.7"
+ figures "3.2.0"
+ flat "^5.0.2"
+ fs-extra "^10.1.0"
+ glob "7.1.4"
+ ignore "^5.0.4"
+ js-yaml "4.1.0"
+ jsonc-parser "3.0.0"
+ minimatch "3.0.5"
+ npm-run-path "^4.0.1"
+ open "^8.4.0"
+ semver "7.3.4"
+ string-width "^4.2.3"
+ tar-stream "~2.2.0"
+ tmp "~0.2.1"
+ tsconfig-paths "^3.9.0"
+ tslib "^2.3.0"
+ v8-compile-cache "2.3.0"
+ yargs "^17.4.0"
+ yargs-parser "21.0.1"
+
object-assign@^4.1.0, object-assign@^4.1.1:
version "4.1.1"
resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863"
@@ -11254,6 +11341,21 @@ optionator@^0.9.1:
type-check "^0.4.0"
word-wrap "^1.2.3"
+ora@^5.4.1:
+ version "5.4.1"
+ resolved "https://registry.yarnpkg.com/ora/-/ora-5.4.1.tgz#1b2678426af4ac4a509008e5e4ac9e9959db9e18"
+ integrity sha512-5b6Y85tPxZZ7QytO+BQzysW31HJku27cRIlkbAXaNx+BdcVi+LlRFmVXzeF6a7JCwJpyw5c4b+YSVImQIrBpuQ==
+ dependencies:
+ bl "^4.1.0"
+ chalk "^4.1.0"
+ cli-cursor "^3.1.0"
+ cli-spinners "^2.5.0"
+ is-interactive "^1.0.0"
+ is-unicode-supported "^0.1.0"
+ log-symbols "^4.1.0"
+ strip-ansi "^6.0.0"
+ wcwidth "^1.0.1"
+
os-tmpdir@~1.0.2:
version "1.0.2"
resolved "https://registry.yarnpkg.com/os-tmpdir/-/os-tmpdir-1.0.2.tgz#bbe67406c79aa85c5cfec766fe5734555dfa1274"
@@ -11395,7 +11497,7 @@ package-json@^6.3.0:
registry-url "^5.0.0"
semver "^6.2.0"
-pacote@^13.0.3, pacote@^13.0.5, pacote@^13.4.1:
+pacote@^13.0.3, pacote@^13.0.5:
version "13.4.1"
resolved "https://registry.yarnpkg.com/pacote/-/pacote-13.4.1.tgz#b6610bf8903abc075bfffa02a2cedafe81a97293"
integrity sha512-FqlSWlD8n+ejCE17GF/lf0yasztMGFl4UFzYQk5njaK/qPPWfVDWnfQwqmqeXObWLSmIBew+O+CFD24vxkVDjg==
@@ -11422,6 +11524,33 @@ pacote@^13.0.3, pacote@^13.0.5, pacote@^13.4.1:
ssri "^9.0.0"
tar "^6.1.11"
+pacote@^13.6.1:
+ version "13.6.1"
+ resolved "https://registry.yarnpkg.com/pacote/-/pacote-13.6.1.tgz#ac6cbd9032b4c16e5c1e0c60138dfe44e4cc589d"
+ integrity sha512-L+2BI1ougAPsFjXRyBhcKmfT016NscRFLv6Pz5EiNf1CCFJFU0pSKKQwsZTyAQB+sTuUL4TyFyp6J1Ork3dOqw==
+ dependencies:
+ "@npmcli/git" "^3.0.0"
+ "@npmcli/installed-package-contents" "^1.0.7"
+ "@npmcli/promise-spawn" "^3.0.0"
+ "@npmcli/run-script" "^4.1.0"
+ cacache "^16.0.0"
+ chownr "^2.0.0"
+ fs-minipass "^2.1.0"
+ infer-owner "^1.0.4"
+ minipass "^3.1.6"
+ mkdirp "^1.0.4"
+ npm-package-arg "^9.0.0"
+ npm-packlist "^5.1.0"
+ npm-pick-manifest "^7.0.0"
+ npm-registry-fetch "^13.0.1"
+ proc-log "^2.0.0"
+ promise-retry "^2.0.1"
+ read-package-json "^5.0.0"
+ read-package-json-fast "^2.0.3"
+ rimraf "^3.0.2"
+ ssri "^9.0.0"
+ tar "^6.1.11"
+
param-case@^3.0.4:
version "3.0.4"
resolved "https://registry.yarnpkg.com/param-case/-/param-case-3.0.4.tgz#7d17fe4aa12bde34d4a77d91acfb6219caad01c5"
@@ -12860,9 +12989,9 @@ rollup-plugin-terser@^7.0.2:
terser "^5.0.0"
rollup@^2.75.4:
- version "2.77.0"
- resolved "https://registry.yarnpkg.com/rollup/-/rollup-2.77.0.tgz#749eaa5ac09b6baa52acc076bc46613eddfd53f4"
- integrity sha512-vL8xjY4yOQEw79DvyXLijhnhh+R/O9zpF/LEgkCebZFtb6ELeN9H3/2T0r8+mp+fFTBHZ5qGpOpW2ela2zRt3g==
+ version "2.77.1"
+ resolved "https://registry.yarnpkg.com/rollup/-/rollup-2.77.1.tgz#63463ebdbc04232fc42630ec72d137cd4400975d"
+ integrity sha512-GhutNJrvTYD6s1moo+kyq7lD9DeR5HDyXo4bDFlDSkepC9kVKY+KK/NSZFzCmeXeia3kEzVuToQmHRdugyZHxw==
optionalDependencies:
fsevents "~2.3.2"
@@ -12908,7 +13037,7 @@ rxjs-for-await@0.0.2:
resolved "https://registry.yarnpkg.com/rxjs-for-await/-/rxjs-for-await-0.0.2.tgz#26598a1d6167147cc192172970e7eed4e620384b"
integrity sha512-IJ8R/ZCFMHOcDIqoABs82jal00VrZx8Xkgfe7TOKoaRPAW5nH/VFlG23bXpeGdrmtqI9UobFPgUKgCuFc7Lncw==
-rxjs@^6.5.4, rxjs@^6.6.0:
+rxjs@^6.5.4:
version "6.6.7"
resolved "https://registry.yarnpkg.com/rxjs/-/rxjs-6.6.7.tgz#90ac018acabf491bf65044235d5863c4dab804c9"
integrity sha512-hTdwr+7yYNIT5n4AMYp85KA6yw2Va0FLa3Rguvbpa4W3I5xynaBZo41cM3XM+4Q6fRMj3sBYIR1VAmZMXYJvRQ==
@@ -14500,10 +14629,10 @@ walker@^1.0.8:
dependencies:
makeerror "1.0.12"
-watchpack@^2.3.1:
- version "2.3.1"
- resolved "https://registry.yarnpkg.com/watchpack/-/watchpack-2.3.1.tgz#4200d9447b401156eeca7767ee610f8809bc9d25"
- integrity sha512-x0t0JuydIo8qCNctdDrn1OzH/qDzk2+rdCOC3YzumZ42fiMqmQ7T3xQurykYMhYfHaPHTp4ZxAx2NfUo1K6QaA==
+watchpack@^2.4.0:
+ version "2.4.0"
+ resolved "https://registry.yarnpkg.com/watchpack/-/watchpack-2.4.0.tgz#fa33032374962c78113f93c7f2fb4c54c9862a5d"
+ integrity sha512-Lcvm7MGST/4fup+ifyKi2hjyIAwcdI4HRgtvTpIUxBRhB+RFtUh8XtDOxUfctVCnhVi+QQj49i91OyvzkJl6cg==
dependencies:
glob-to-regexp "^0.4.1"
graceful-fs "^4.1.2"
@@ -14515,7 +14644,7 @@ wbuf@^1.1.0, wbuf@^1.7.3:
dependencies:
minimalistic-assert "^1.0.0"
-wcwidth@^1.0.0:
+wcwidth@^1.0.0, wcwidth@^1.0.1:
version "1.0.1"
resolved "https://registry.yarnpkg.com/wcwidth/-/wcwidth-1.0.1.tgz#f0b0dcf915bc5ff1528afadb2c0e17b532da2fe8"
integrity sha1-8LDc+RW8X/FSivrbLA4XtTLaL+g=
@@ -14619,20 +14748,20 @@ webpack-sources@^3.2.3:
integrity sha512-/DyMEOrDgLKKIG0fmvtz+4dUX/3Ghozwgm6iPp8KRhvn+eQf9+Q7GWxVNMk3+uCPWfdXYC4ExGBckIXdFEfH1w==
webpack@^5.72.1:
- version "5.73.0"
- resolved "https://registry.yarnpkg.com/webpack/-/webpack-5.73.0.tgz#bbd17738f8a53ee5760ea2f59dce7f3431d35d38"
- integrity sha512-svjudQRPPa0YiOYa2lM/Gacw0r6PvxptHj4FuEKQ2kX05ZLkjbVc5MnPs6its5j7IZljnIqSVo/OsY2X0IpHGA==
+ version "5.74.0"
+ resolved "https://registry.yarnpkg.com/webpack/-/webpack-5.74.0.tgz#02a5dac19a17e0bb47093f2be67c695102a55980"
+ integrity sha512-A2InDwnhhGN4LYctJj6M1JEaGL7Luj6LOmyBHjcI8529cm5p6VXiTIW2sn6ffvEAKmveLzvu4jrihwXtPojlAA==
dependencies:
"@types/eslint-scope" "^3.7.3"
"@types/estree" "^0.0.51"
"@webassemblyjs/ast" "1.11.1"
"@webassemblyjs/wasm-edit" "1.11.1"
"@webassemblyjs/wasm-parser" "1.11.1"
- acorn "^8.4.1"
+ acorn "^8.7.1"
acorn-import-assertions "^1.7.6"
browserslist "^4.14.5"
chrome-trace-event "^1.0.2"
- enhanced-resolve "^5.9.3"
+ enhanced-resolve "^5.10.0"
es-module-lexer "^0.9.0"
eslint-scope "5.1.1"
events "^3.2.0"
@@ -14645,7 +14774,7 @@ webpack@^5.72.1:
schema-utils "^3.1.0"
tapable "^2.1.1"
terser-webpack-plugin "^5.1.3"
- watchpack "^2.3.1"
+ watchpack "^2.4.0"
webpack-sources "^3.2.3"
webpackbar@^5.0.2: