diff --git a/.eslintrc.js b/.eslintrc.js
index c02abfbd7a8d..1deda3b592ca 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -87,6 +87,10 @@ module.exports = {
'no-mixed-operators': 'error',
'no-console': 'error',
'no-process-exit': 'error',
+ 'no-fallthrough': [
+ 'warn',
+ { commentPattern: '.*intentional fallthrough.*' },
+ ],
//
// eslint-plugin-eslint-comment
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 0d75e605a204..a0c4fe634766 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -3,6 +3,24 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+# [4.25.0](https://github.com/typescript-eslint/typescript-eslint/compare/v4.24.0...v4.25.0) (2021-05-24)
+
+
+### Bug Fixes
+
+* corrected no-unsupported-browser-code in roadmap as unimplemented ([#3407](https://github.com/typescript-eslint/typescript-eslint/issues/3407)) ([2319b0e](https://github.com/typescript-eslint/typescript-eslint/commit/2319b0e1847991b8b8902ff4a3b779f1a27c7a45))
+* **experimental-utils:** fix `isAwaitKeyword` predicate in ast-utils ([#3290](https://github.com/typescript-eslint/typescript-eslint/issues/3290)) ([c15da67](https://github.com/typescript-eslint/typescript-eslint/commit/c15da67b939b615ed063291cde12c55c0d6d236e))
+
+
+### Features
+
+* **typescript-estree:** [TS4.3] support overrides on class members ([#3429](https://github.com/typescript-eslint/typescript-eslint/issues/3429)) ([21d1b62](https://github.com/typescript-eslint/typescript-eslint/commit/21d1b62a0b84b502d2cf12674b3d141994a3ffd4))
+* **typescript-estree:** add support for getter/setter signatures on types ([#3427](https://github.com/typescript-eslint/typescript-eslint/issues/3427)) ([b830b7f](https://github.com/typescript-eslint/typescript-eslint/commit/b830b7f4e8a99affc8af8b53cb83371ef81d7032)), closes [#3272](https://github.com/typescript-eslint/typescript-eslint/issues/3272) [#3272](https://github.com/typescript-eslint/typescript-eslint/issues/3272)
+
+
+
+
+
# [4.24.0](https://github.com/typescript-eslint/typescript-eslint/compare/v4.23.0...v4.24.0) (2021-05-17)
diff --git a/README.md b/README.md
index d8abbe324a96..25a1a58f3eda 100644
--- a/README.md
+++ b/README.md
@@ -233,7 +233,7 @@ The latest version under the `canary` tag **(latest commit to master)** is:
## Supported TypeScript Version
-**The version range of TypeScript currently supported by this parser is `>=3.3.1 <4.3.0`.**
+**The version range of TypeScript currently supported by this parser is `>=3.3.1 <4.4.0`.**
These versions are what we test against.
diff --git a/lerna.json b/lerna.json
index fe0545ff06c8..6fdc5b25fc44 100644
--- a/lerna.json
+++ b/lerna.json
@@ -1,5 +1,5 @@
{
- "version": "4.24.0",
+ "version": "4.25.0",
"npmClient": "yarn",
"useWorkspaces": true,
"stream": true
diff --git a/package.json b/package.json
index 61fff8533211..ea5995ab64d2 100644
--- a/package.json
+++ b/package.json
@@ -113,9 +113,9 @@
"ts-jest": "^26.5.1",
"ts-node": "^9.0.0",
"tslint": "^6.1.3",
- "typescript": ">=3.3.1 <4.3.0"
+ "typescript": ">=3.3.1 <4.4.0 || 4.3.1-rc"
},
"resolutions": {
- "typescript": "4.2.2"
+ "typescript": "4.3.1-rc"
}
}
diff --git a/packages/ast-spec/CHANGELOG.md b/packages/ast-spec/CHANGELOG.md
index 6a94c72622f5..6c8d635044cc 100644
--- a/packages/ast-spec/CHANGELOG.md
+++ b/packages/ast-spec/CHANGELOG.md
@@ -3,6 +3,18 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+# [4.25.0](https://github.com/typescript-eslint/typescript-eslint/compare/v4.24.0...v4.25.0) (2021-05-24)
+
+
+### Features
+
+* **typescript-estree:** [TS4.3] support overrides on class members ([#3429](https://github.com/typescript-eslint/typescript-eslint/issues/3429)) ([21d1b62](https://github.com/typescript-eslint/typescript-eslint/commit/21d1b62a0b84b502d2cf12674b3d141994a3ffd4))
+* **typescript-estree:** add support for getter/setter signatures on types ([#3427](https://github.com/typescript-eslint/typescript-eslint/issues/3427)) ([b830b7f](https://github.com/typescript-eslint/typescript-eslint/commit/b830b7f4e8a99affc8af8b53cb83371ef81d7032)), closes [#3272](https://github.com/typescript-eslint/typescript-eslint/issues/3272) [#3272](https://github.com/typescript-eslint/typescript-eslint/issues/3272)
+
+
+
+
+
# [4.24.0](https://github.com/typescript-eslint/typescript-eslint/compare/v4.23.0...v4.24.0) (2021-05-17)
**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 8a78a307a0a9..09cf9ec84a09 100644
--- a/packages/ast-spec/package.json
+++ b/packages/ast-spec/package.json
@@ -1,6 +1,6 @@
{
"name": "@typescript-eslint/ast-spec",
- "version": "4.24.0",
+ "version": "4.25.0",
"description": "TypeScript-ESTree AST spec",
"private": true,
"keywords": [
diff --git a/packages/ast-spec/src/base/ClassPropertyBase.ts b/packages/ast-spec/src/base/ClassPropertyBase.ts
index 8ac19b05fa55..7717e02c4ca3 100644
--- a/packages/ast-spec/src/base/ClassPropertyBase.ts
+++ b/packages/ast-spec/src/base/ClassPropertyBase.ts
@@ -21,6 +21,7 @@ interface ClassPropertyBase extends BaseNode {
optional?: boolean;
definite?: boolean;
typeAnnotation?: TSTypeAnnotation;
+ override?: boolean;
}
export interface ClassPropertyComputedNameBase extends ClassPropertyBase {
diff --git a/packages/ast-spec/src/base/MethodDefinitionBase.ts b/packages/ast-spec/src/base/MethodDefinitionBase.ts
index fe8846062106..afdea67bcd7b 100644
--- a/packages/ast-spec/src/base/MethodDefinitionBase.ts
+++ b/packages/ast-spec/src/base/MethodDefinitionBase.ts
@@ -21,6 +21,7 @@ interface MethodDefinitionBase extends BaseNode {
decorators?: Decorator[];
accessibility?: Accessibility;
typeParameters?: TSTypeParameterDeclaration;
+ override?: boolean;
}
export interface MethodDefinitionComputedNameBase extends MethodDefinitionBase {
diff --git a/packages/ast-spec/src/element/TSMethodSignature/spec.ts b/packages/ast-spec/src/element/TSMethodSignature/spec.ts
index 76b2e71ab3ad..5ca7cbead3e0 100644
--- a/packages/ast-spec/src/element/TSMethodSignature/spec.ts
+++ b/packages/ast-spec/src/element/TSMethodSignature/spec.ts
@@ -22,6 +22,7 @@ interface TSMethodSignatureBase extends BaseNode {
accessibility?: Accessibility;
export?: boolean;
static?: boolean;
+ kind: 'get' | 'method' | 'set';
}
export interface TSMethodSignatureComputedName extends TSMethodSignatureBase {
diff --git a/packages/eslint-plugin-internal/CHANGELOG.md b/packages/eslint-plugin-internal/CHANGELOG.md
index 2f066560c29b..852742717c47 100644
--- a/packages/eslint-plugin-internal/CHANGELOG.md
+++ b/packages/eslint-plugin-internal/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.
+# [4.25.0](https://github.com/typescript-eslint/typescript-eslint/compare/v4.24.0...v4.25.0) (2021-05-24)
+
+**Note:** Version bump only for package @typescript-eslint/eslint-plugin-internal
+
+
+
+
+
# [4.24.0](https://github.com/typescript-eslint/typescript-eslint/compare/v4.23.0...v4.24.0) (2021-05-17)
**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 7d8fd97eda0d..59217ed38844 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": "4.24.0",
+ "version": "4.25.0",
"private": true,
"main": "dist/index.js",
"scripts": {
@@ -14,7 +14,7 @@
},
"dependencies": {
"@types/prettier": "*",
- "@typescript-eslint/experimental-utils": "4.24.0",
+ "@typescript-eslint/experimental-utils": "4.25.0",
"prettier": "*"
}
}
diff --git a/packages/eslint-plugin-tslint/CHANGELOG.md b/packages/eslint-plugin-tslint/CHANGELOG.md
index e3f534c878a6..29a2c1b3b16f 100644
--- a/packages/eslint-plugin-tslint/CHANGELOG.md
+++ b/packages/eslint-plugin-tslint/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.
+# [4.25.0](https://github.com/typescript-eslint/typescript-eslint/compare/v4.24.0...v4.25.0) (2021-05-24)
+
+**Note:** Version bump only for package @typescript-eslint/eslint-plugin-tslint
+
+
+
+
+
# [4.24.0](https://github.com/typescript-eslint/typescript-eslint/compare/v4.23.0...v4.24.0) (2021-05-17)
**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 457a287fd445..4d72a3180baf 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": "4.24.0",
+ "version": "4.25.0",
"main": "dist/index.js",
"typings": "src/index.ts",
"description": "TSLint wrapper plugin for ESLint",
@@ -38,7 +38,7 @@
"typecheck": "tsc -p tsconfig.json --noEmit"
},
"dependencies": {
- "@typescript-eslint/experimental-utils": "4.24.0",
+ "@typescript-eslint/experimental-utils": "4.25.0",
"lodash": "^4.17.15"
},
"peerDependencies": {
@@ -48,6 +48,6 @@
},
"devDependencies": {
"@types/lodash": "*",
- "@typescript-eslint/parser": "4.24.0"
+ "@typescript-eslint/parser": "4.25.0"
}
}
diff --git a/packages/eslint-plugin/CHANGELOG.md b/packages/eslint-plugin/CHANGELOG.md
index 5868295645f2..142bada67a2d 100644
--- a/packages/eslint-plugin/CHANGELOG.md
+++ b/packages/eslint-plugin/CHANGELOG.md
@@ -3,6 +3,17 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+# [4.25.0](https://github.com/typescript-eslint/typescript-eslint/compare/v4.24.0...v4.25.0) (2021-05-24)
+
+
+### Bug Fixes
+
+* corrected no-unsupported-browser-code in roadmap as unimplemented ([#3407](https://github.com/typescript-eslint/typescript-eslint/issues/3407)) ([2319b0e](https://github.com/typescript-eslint/typescript-eslint/commit/2319b0e1847991b8b8902ff4a3b779f1a27c7a45))
+
+
+
+
+
# [4.24.0](https://github.com/typescript-eslint/typescript-eslint/compare/v4.23.0...v4.24.0) (2021-05-17)
diff --git a/packages/eslint-plugin/ROADMAP.md b/packages/eslint-plugin/ROADMAP.md
index 749ba2bdf829..67b5676533ed 100644
--- a/packages/eslint-plugin/ROADMAP.md
+++ b/packages/eslint-plugin/ROADMAP.md
@@ -240,7 +240,7 @@ Relevant plugins: [`chai-expect-keywords`](https://github.com/gavinaiken/eslint-
| `no-banned-terms` | 🌟 | [`no-caller`][no-caller] & [`no-eval`][no-eval] |
| `no-constant-condition` | 🌟 | [`no-constant-condition`][no-constant-condition] |
| `no-control-regex` | 🌟 | [`no-control-regex`][no-control-regex] |
-| `no-delete-expression` | 🌓 | [`no-delete-var`][no-delete-var] |
+| `no-delete-expression` | ✅ | [`@typescript-eslint/no-dynamic-delete`] |
| `no-empty-line-after-opening-brace` | 🌟 | [`padded-blocks`][padded-blocks] [1] or [Prettier] |
| `no-for-in` | 🌟 | [`no-restricted-syntax`][no-restricted-syntax] [2] |
| `no-function-expression` | 🌟 | [`func-style`][func-style] [3] |
@@ -299,7 +299,7 @@ Relevant plugins: [`chai-expect-keywords`](https://github.com/gavinaiken/eslint-
| `no-document-write` | 🌓 | Use [`no-restricted-syntax`][no-restricted-syntax] |
| `no-exec-script` | 🌓 | Use [`no-restricted-syntax`][no-restricted-syntax] |
| `no-jquery-raw-elements` | 🛑 | N/A |
-| `no-unsupported-browser-code` | 🔌 | [`eslint-plugin-compat`][plugin:compat] |
+| `no-unsupported-browser-code` | 🛑 | N/A |
| `react-this-binding-issue` | 🛑 | N/A |
| `react-tsx-curly-spacing` | 🔌 | [`react/jsx-curly-spacing`] |
| `react-unused-props-and-state` | 🌓 | [`react/no-unused-state`] |
@@ -583,7 +583,6 @@ Relevant plugins: [`chai-expect-keywords`](https://github.com/gavinaiken/eslint-
[no-invalid-regexp]: https://eslint.org/docs/rules/no-invalid-regexp
[no-regex-spaces]: https://eslint.org/docs/rules/no-regex-spaces
[no-new-func]: https://eslint.org/docs/rules/no-new-func
-[no-delete-var]: https://eslint.org/docs/rules/no-delete-var
[padded-blocks]: https://eslint.org/docs/rules/padded-blocks
[func-style]: https://eslint.org/docs/rules/func-style
[no-multi-str]: https://eslint.org/docs/rules/no-multi-str
diff --git a/packages/eslint-plugin/docs/rules/no-unnecessary-boolean-literal-compare.md b/packages/eslint-plugin/docs/rules/no-unnecessary-boolean-literal-compare.md
index 972b48a3bde0..2532504285f1 100644
--- a/packages/eslint-plugin/docs/rules/no-unnecessary-boolean-literal-compare.md
+++ b/packages/eslint-plugin/docs/rules/no-unnecessary-boolean-literal-compare.md
@@ -124,10 +124,10 @@ if (!(someNullCondition ?? true)) {
| Comparison | Fixer Output | Notes |
| :----------------------------: | ------------------------------- | ----------------------------------------------------------------------------------- |
-| `booleanVar === true` | `booleanLiteral` | |
-| `booleanVar !== true` | `!booleanLiteral` | |
-| `booleanVar === false` | `!booleanLiteral` | |
-| `booleanVar !== false` | `booleanLiteral` | |
+| `booleanVar === true` | `booleanVar` | |
+| `booleanVar !== true` | `!booleanVar` | |
+| `booleanVar === false` | `!booleanVar` | |
+| `booleanVar !== false` | `booleanVar` | |
| `nullableBooleanVar === true` | `nullableBooleanVar` | Only checked/fixed if the `allowComparingNullableBooleansToTrue` option is `false` |
| `nullableBooleanVar !== true` | `!nullableBooleanVar` | Only checked/fixed if the `allowComparingNullableBooleansToTrue` option is `false` |
| `nullableBooleanVar === false` | `nullableBooleanVar ?? true` | Only checked/fixed if the `allowComparingNullableBooleansToFalse` option is `false` |
diff --git a/packages/eslint-plugin/package.json b/packages/eslint-plugin/package.json
index 3fb68254ed8c..a3554054caad 100644
--- a/packages/eslint-plugin/package.json
+++ b/packages/eslint-plugin/package.json
@@ -1,6 +1,6 @@
{
"name": "@typescript-eslint/eslint-plugin",
- "version": "4.24.0",
+ "version": "4.25.0",
"description": "TypeScript plugin for ESLint",
"keywords": [
"eslint",
@@ -44,8 +44,8 @@
"typecheck": "tsc -p tsconfig.json --noEmit"
},
"dependencies": {
- "@typescript-eslint/experimental-utils": "4.24.0",
- "@typescript-eslint/scope-manager": "4.24.0",
+ "@typescript-eslint/experimental-utils": "4.25.0",
+ "@typescript-eslint/scope-manager": "4.25.0",
"debug": "^4.1.1",
"functional-red-black-tree": "^1.0.1",
"lodash": "^4.17.15",
diff --git a/packages/eslint-plugin/src/rules/dot-notation.ts b/packages/eslint-plugin/src/rules/dot-notation.ts
index 055b97ecab25..b93dc8d035a7 100644
--- a/packages/eslint-plugin/src/rules/dot-notation.ts
+++ b/packages/eslint-plugin/src/rules/dot-notation.ts
@@ -77,6 +77,7 @@ export default createRule({
(options.allowIndexSignaturePropertyAccess ?? false) ||
tsutils.isCompilerOptionEnabled(
program.getCompilerOptions(),
+ // @ts-expect-error - TS is refining the type to never for some reason
'noPropertyAccessFromIndexSignature',
);
diff --git a/packages/experimental-utils/CHANGELOG.md b/packages/experimental-utils/CHANGELOG.md
index da1fdb2f8084..143ae2454360 100644
--- a/packages/experimental-utils/CHANGELOG.md
+++ b/packages/experimental-utils/CHANGELOG.md
@@ -3,6 +3,17 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+# [4.25.0](https://github.com/typescript-eslint/typescript-eslint/compare/v4.24.0...v4.25.0) (2021-05-24)
+
+
+### Bug Fixes
+
+* **experimental-utils:** fix `isAwaitKeyword` predicate in ast-utils ([#3290](https://github.com/typescript-eslint/typescript-eslint/issues/3290)) ([c15da67](https://github.com/typescript-eslint/typescript-eslint/commit/c15da67b939b615ed063291cde12c55c0d6d236e))
+
+
+
+
+
# [4.24.0](https://github.com/typescript-eslint/typescript-eslint/compare/v4.23.0...v4.24.0) (2021-05-17)
**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 e0c128610369..b0f79040971c 100644
--- a/packages/experimental-utils/package.json
+++ b/packages/experimental-utils/package.json
@@ -1,6 +1,6 @@
{
"name": "@typescript-eslint/experimental-utils",
- "version": "4.24.0",
+ "version": "4.25.0",
"description": "(Experimental) Utilities for working with TypeScript + ESLint together",
"keywords": [
"eslint",
@@ -40,9 +40,9 @@
},
"dependencies": {
"@types/json-schema": "^7.0.3",
- "@typescript-eslint/scope-manager": "4.24.0",
- "@typescript-eslint/types": "4.24.0",
- "@typescript-eslint/typescript-estree": "4.24.0",
+ "@typescript-eslint/scope-manager": "4.25.0",
+ "@typescript-eslint/types": "4.25.0",
+ "@typescript-eslint/typescript-estree": "4.25.0",
"eslint-scope": "^5.0.0",
"eslint-utils": "^2.0.0"
},
diff --git a/packages/experimental-utils/src/ast-utils/predicates.ts b/packages/experimental-utils/src/ast-utils/predicates.ts
index a7f722b810c6..3be38cbdf5c5 100644
--- a/packages/experimental-utils/src/ast-utils/predicates.ts
+++ b/packages/experimental-utils/src/ast-utils/predicates.ts
@@ -206,7 +206,7 @@ function isAwaitExpression(
*/
function isAwaitKeyword(
node: TSESTree.Token | undefined | null,
-): node is TSESTree.KeywordToken & { value: 'await' } {
+): node is TSESTree.IdentifierToken & { value: 'await' } {
return node?.type === AST_TOKEN_TYPES.Identifier && node.value === 'await';
}
diff --git a/packages/parser/CHANGELOG.md b/packages/parser/CHANGELOG.md
index 5a02c2ca7dcc..a32e649bbdd4 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.
+# [4.25.0](https://github.com/typescript-eslint/typescript-eslint/compare/v4.24.0...v4.25.0) (2021-05-24)
+
+**Note:** Version bump only for package @typescript-eslint/parser
+
+
+
+
+
# [4.24.0](https://github.com/typescript-eslint/typescript-eslint/compare/v4.23.0...v4.24.0) (2021-05-17)
**Note:** Version bump only for package @typescript-eslint/parser
diff --git a/packages/parser/package.json b/packages/parser/package.json
index fbbbe7e66090..8b83c5ee076d 100644
--- a/packages/parser/package.json
+++ b/packages/parser/package.json
@@ -1,6 +1,6 @@
{
"name": "@typescript-eslint/parser",
- "version": "4.24.0",
+ "version": "4.25.0",
"description": "An ESLint custom parser which leverages TypeScript ESTree",
"main": "dist/index.js",
"types": "dist/index.d.ts",
@@ -44,14 +44,14 @@
"eslint": "^5.0.0 || ^6.0.0 || ^7.0.0"
},
"dependencies": {
- "@typescript-eslint/scope-manager": "4.24.0",
- "@typescript-eslint/types": "4.24.0",
- "@typescript-eslint/typescript-estree": "4.24.0",
+ "@typescript-eslint/scope-manager": "4.25.0",
+ "@typescript-eslint/types": "4.25.0",
+ "@typescript-eslint/typescript-estree": "4.25.0",
"debug": "^4.1.1"
},
"devDependencies": {
"@types/glob": "*",
- "@typescript-eslint/experimental-utils": "4.24.0",
+ "@typescript-eslint/experimental-utils": "4.25.0",
"glob": "*",
"typescript": "*"
},
diff --git a/packages/scope-manager/CHANGELOG.md b/packages/scope-manager/CHANGELOG.md
index 2adcb03afc6c..a74fa227e275 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.
+# [4.25.0](https://github.com/typescript-eslint/typescript-eslint/compare/v4.24.0...v4.25.0) (2021-05-24)
+
+**Note:** Version bump only for package @typescript-eslint/scope-manager
+
+
+
+
+
# [4.24.0](https://github.com/typescript-eslint/typescript-eslint/compare/v4.23.0...v4.24.0) (2021-05-17)
**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 b5ea7cf462be..fa0f0e3a7ab8 100644
--- a/packages/scope-manager/package.json
+++ b/packages/scope-manager/package.json
@@ -1,6 +1,6 @@
{
"name": "@typescript-eslint/scope-manager",
- "version": "4.24.0",
+ "version": "4.25.0",
"description": "TypeScript scope analyser for ESLint",
"keywords": [
"eslint",
@@ -39,12 +39,12 @@
"typecheck": "tsc -p tsconfig.json --noEmit"
},
"dependencies": {
- "@typescript-eslint/types": "4.24.0",
- "@typescript-eslint/visitor-keys": "4.24.0"
+ "@typescript-eslint/types": "4.25.0",
+ "@typescript-eslint/visitor-keys": "4.25.0"
},
"devDependencies": {
"@types/glob": "*",
- "@typescript-eslint/typescript-estree": "4.24.0",
+ "@typescript-eslint/typescript-estree": "4.25.0",
"glob": "*",
"jest-specific-snapshot": "*",
"make-dir": "*",
diff --git a/packages/shared-fixtures/CHANGELOG.md b/packages/shared-fixtures/CHANGELOG.md
index 304bc7076760..e6620a31e1c8 100644
--- a/packages/shared-fixtures/CHANGELOG.md
+++ b/packages/shared-fixtures/CHANGELOG.md
@@ -3,6 +3,18 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+# [4.25.0](https://github.com/typescript-eslint/typescript-eslint/compare/v4.24.0...v4.25.0) (2021-05-24)
+
+
+### Features
+
+* **typescript-estree:** [TS4.3] support overrides on class members ([#3429](https://github.com/typescript-eslint/typescript-eslint/issues/3429)) ([21d1b62](https://github.com/typescript-eslint/typescript-eslint/commit/21d1b62a0b84b502d2cf12674b3d141994a3ffd4))
+* **typescript-estree:** add support for getter/setter signatures on types ([#3427](https://github.com/typescript-eslint/typescript-eslint/issues/3427)) ([b830b7f](https://github.com/typescript-eslint/typescript-eslint/commit/b830b7f4e8a99affc8af8b53cb83371ef81d7032)), closes [#3272](https://github.com/typescript-eslint/typescript-eslint/issues/3272) [#3272](https://github.com/typescript-eslint/typescript-eslint/issues/3272)
+
+
+
+
+
# [4.24.0](https://github.com/typescript-eslint/typescript-eslint/compare/v4.23.0...v4.24.0) (2021-05-17)
**Note:** Version bump only for package @typescript-eslint/shared-fixtures
diff --git a/packages/shared-fixtures/fixtures/typescript/basics/abstract-class-with-override-method.src.ts b/packages/shared-fixtures/fixtures/typescript/basics/abstract-class-with-override-method.src.ts
new file mode 100644
index 000000000000..e6cecdc5ab8d
--- /dev/null
+++ b/packages/shared-fixtures/fixtures/typescript/basics/abstract-class-with-override-method.src.ts
@@ -0,0 +1,3 @@
+abstract class SpecializedComponent extends SomeComponent {
+ abstract override show();
+}
diff --git a/packages/shared-fixtures/fixtures/typescript/basics/abstract-class-with-override-property.src.ts b/packages/shared-fixtures/fixtures/typescript/basics/abstract-class-with-override-property.src.ts
new file mode 100644
index 000000000000..8839340d7aad
--- /dev/null
+++ b/packages/shared-fixtures/fixtures/typescript/basics/abstract-class-with-override-property.src.ts
@@ -0,0 +1,3 @@
+abstract class SpecializedComponent extends SomeComponent {
+ abstract override foo = 1;
+}
diff --git a/packages/shared-fixtures/fixtures/typescript/basics/class-with-override-method.src.ts b/packages/shared-fixtures/fixtures/typescript/basics/class-with-override-method.src.ts
new file mode 100644
index 000000000000..da3b89239d1f
--- /dev/null
+++ b/packages/shared-fixtures/fixtures/typescript/basics/class-with-override-method.src.ts
@@ -0,0 +1,5 @@
+class SpecializedComponent extends SomeComponent {
+ override show() {
+ // ...
+ }
+}
diff --git a/packages/shared-fixtures/fixtures/typescript/basics/class-with-override-property.src.ts b/packages/shared-fixtures/fixtures/typescript/basics/class-with-override-property.src.ts
new file mode 100644
index 000000000000..fc5dc8e431ba
--- /dev/null
+++ b/packages/shared-fixtures/fixtures/typescript/basics/class-with-override-property.src.ts
@@ -0,0 +1,3 @@
+class SpecializedComponent extends SomeComponent {
+ override foo = 1;
+}
diff --git a/packages/shared-fixtures/fixtures/typescript/types/interface-with-accessors.src.ts b/packages/shared-fixtures/fixtures/typescript/types/interface-with-accessors.src.ts
new file mode 100644
index 000000000000..d4eda64b2187
--- /dev/null
+++ b/packages/shared-fixtures/fixtures/typescript/types/interface-with-accessors.src.ts
@@ -0,0 +1,4 @@
+interface Thing {
+ get size(): number;
+ set size(value: number | string | boolean);
+}
diff --git a/packages/shared-fixtures/fixtures/typescript/types/object-literal-type-with-accessors.src.ts b/packages/shared-fixtures/fixtures/typescript/types/object-literal-type-with-accessors.src.ts
new file mode 100644
index 000000000000..61666608a103
--- /dev/null
+++ b/packages/shared-fixtures/fixtures/typescript/types/object-literal-type-with-accessors.src.ts
@@ -0,0 +1,4 @@
+type Thing = {
+ get size(): number;
+ set size(value: number | string | boolean);
+};
diff --git a/packages/shared-fixtures/package.json b/packages/shared-fixtures/package.json
index ba7b74508813..64e0df1db659 100644
--- a/packages/shared-fixtures/package.json
+++ b/packages/shared-fixtures/package.json
@@ -1,5 +1,5 @@
{
"name": "@typescript-eslint/shared-fixtures",
- "version": "4.24.0",
+ "version": "4.25.0",
"private": true
}
diff --git a/packages/types/CHANGELOG.md b/packages/types/CHANGELOG.md
index 78d47dc326fc..c3c5d08ebddd 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.
+# [4.25.0](https://github.com/typescript-eslint/typescript-eslint/compare/v4.24.0...v4.25.0) (2021-05-24)
+
+**Note:** Version bump only for package @typescript-eslint/types
+
+
+
+
+
# [4.24.0](https://github.com/typescript-eslint/typescript-eslint/compare/v4.23.0...v4.24.0) (2021-05-17)
**Note:** Version bump only for package @typescript-eslint/types
diff --git a/packages/types/package.json b/packages/types/package.json
index c8ffa8cbb58e..5b779a11da47 100644
--- a/packages/types/package.json
+++ b/packages/types/package.json
@@ -1,6 +1,6 @@
{
"name": "@typescript-eslint/types",
- "version": "4.24.0",
+ "version": "4.25.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 f9449b5152aa..51ece42c1cc9 100644
--- a/packages/typescript-estree/CHANGELOG.md
+++ b/packages/typescript-estree/CHANGELOG.md
@@ -3,6 +3,18 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+# [4.25.0](https://github.com/typescript-eslint/typescript-eslint/compare/v4.24.0...v4.25.0) (2021-05-24)
+
+
+### Features
+
+* **typescript-estree:** [TS4.3] support overrides on class members ([#3429](https://github.com/typescript-eslint/typescript-eslint/issues/3429)) ([21d1b62](https://github.com/typescript-eslint/typescript-eslint/commit/21d1b62a0b84b502d2cf12674b3d141994a3ffd4))
+* **typescript-estree:** add support for getter/setter signatures on types ([#3427](https://github.com/typescript-eslint/typescript-eslint/issues/3427)) ([b830b7f](https://github.com/typescript-eslint/typescript-eslint/commit/b830b7f4e8a99affc8af8b53cb83371ef81d7032)), closes [#3272](https://github.com/typescript-eslint/typescript-eslint/issues/3272) [#3272](https://github.com/typescript-eslint/typescript-eslint/issues/3272)
+
+
+
+
+
# [4.24.0](https://github.com/typescript-eslint/typescript-eslint/compare/v4.23.0...v4.24.0) (2021-05-17)
**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 a350c25ef9d3..f2dd9d56c43d 100644
--- a/packages/typescript-estree/package.json
+++ b/packages/typescript-estree/package.json
@@ -1,6 +1,6 @@
{
"name": "@typescript-eslint/typescript-estree",
- "version": "4.24.0",
+ "version": "4.25.0",
"description": "A parser that converts TypeScript source code into an ESTree compatible form",
"main": "dist/index.js",
"types": "dist/index.d.ts",
@@ -41,8 +41,8 @@
"typecheck": "tsc -p tsconfig.json --noEmit"
},
"dependencies": {
- "@typescript-eslint/types": "4.24.0",
- "@typescript-eslint/visitor-keys": "4.24.0",
+ "@typescript-eslint/types": "4.25.0",
+ "@typescript-eslint/visitor-keys": "4.25.0",
"debug": "^4.1.1",
"globby": "^11.0.1",
"is-glob": "^4.0.1",
@@ -51,15 +51,15 @@
},
"devDependencies": {
"@babel/code-frame": "^7.12.13",
- "@babel/parser": "^7.13.11",
- "@babel/types": "^7.13.0",
+ "@babel/parser": "^7.14.3",
+ "@babel/types": "^7.14.2",
"@types/babel__code-frame": "*",
"@types/debug": "*",
"@types/glob": "*",
"@types/is-glob": "*",
"@types/semver": "*",
"@types/tmp": "*",
- "@typescript-eslint/shared-fixtures": "4.24.0",
+ "@typescript-eslint/shared-fixtures": "4.25.0",
"glob": "*",
"jest-specific-snapshot": "*",
"make-dir": "*",
diff --git a/packages/typescript-estree/src/convert.ts b/packages/typescript-estree/src/convert.ts
index aad29f9b1467..5dbce7bd52b8 100644
--- a/packages/typescript-estree/src/convert.ts
+++ b/packages/typescript-estree/src/convert.ts
@@ -500,7 +500,7 @@ export class Converter {
Object.entries(node)
.filter(
([key]) =>
- !/^(?:_children|kind|parent|pos|end|flags|modifierFlagsCache|jsDoc|type|typeArguments|typeParameters|decorators)$/.test(
+ !/^(?:_children|kind|parent|pos|end|flags|modifierFlagsCache|jsDoc|type|typeArguments|typeParameters|decorators|transformFlags)$/.test(
key,
),
)
@@ -593,6 +593,65 @@ export class Converter {
return result;
}
+ private convertMethodSignature(
+ node:
+ | ts.MethodSignature
+ | ts.GetAccessorDeclaration
+ | ts.SetAccessorDeclaration,
+ ): TSESTree.TSMethodSignature {
+ const result = this.createNode(node, {
+ type: AST_NODE_TYPES.TSMethodSignature,
+ computed: isComputedProperty(node.name),
+ key: this.convertChild(node.name),
+ params: this.convertParameters(node.parameters),
+ kind: ((): 'get' | 'set' | 'method' => {
+ switch (node.kind) {
+ case SyntaxKind.GetAccessor:
+ return 'get';
+
+ case SyntaxKind.SetAccessor:
+ return 'set';
+
+ case SyntaxKind.MethodSignature:
+ return 'method';
+ }
+ })(),
+ });
+
+ if (isOptional(node)) {
+ result.optional = true;
+ }
+
+ if (node.type) {
+ result.returnType = this.convertTypeAnnotation(node.type, node);
+ }
+
+ if (hasModifier(SyntaxKind.ReadonlyKeyword, node)) {
+ result.readonly = true;
+ }
+
+ if (node.typeParameters) {
+ result.typeParameters = this.convertTSTypeParametersToTypeParametersDeclaration(
+ node.typeParameters,
+ );
+ }
+
+ const accessibility = getTSNodeAccessibility(node);
+ if (accessibility) {
+ result.accessibility = accessibility;
+ }
+
+ if (hasModifier(SyntaxKind.ExportKeyword, node)) {
+ result.export = true;
+ }
+
+ if (hasModifier(SyntaxKind.StaticKeyword, node)) {
+ result.static = true;
+ }
+
+ return result;
+ }
+
/**
* Applies the given TS modifiers to the given result object.
* @param result
@@ -1035,6 +1094,7 @@ export class Converter {
static: hasModifier(SyntaxKind.StaticKeyword, node),
readonly: hasModifier(SyntaxKind.ReadonlyKeyword, node) || undefined,
declare: hasModifier(SyntaxKind.DeclareKeyword, node),
+ override: hasModifier(SyntaxKind.OverrideKeyword, node),
});
if (node.type) {
@@ -1069,7 +1129,15 @@ export class Converter {
}
case SyntaxKind.GetAccessor:
- case SyntaxKind.SetAccessor:
+ case SyntaxKind.SetAccessor: {
+ if (
+ node.parent.kind === SyntaxKind.InterfaceDeclaration ||
+ node.parent.kind === SyntaxKind.TypeLiteral
+ ) {
+ return this.convertMethodSignature(node);
+ }
+ }
+ // otherwise, it is a non-type accessor - intentional fallthrough
case SyntaxKind.MethodDeclaration: {
const method = this.createNode<
TSESTree.TSEmptyBodyFunctionExpression | TSESTree.FunctionExpression
@@ -1142,6 +1210,7 @@ export class Converter {
computed: isComputedProperty(node.name),
static: hasModifier(SyntaxKind.StaticKeyword, node),
kind: 'method',
+ override: hasModifier(SyntaxKind.OverrideKeyword, node),
});
if (node.decorators) {
@@ -1228,6 +1297,7 @@ export class Converter {
computed: false,
static: isStatic,
kind: isStatic ? 'method' : 'constructor',
+ override: false,
});
const accessibility = getTSNodeAccessibility(node);
@@ -2340,44 +2410,7 @@ export class Converter {
}
case SyntaxKind.MethodSignature: {
- const result = this.createNode(node, {
- type: AST_NODE_TYPES.TSMethodSignature,
- computed: isComputedProperty(node.name),
- key: this.convertChild(node.name),
- params: this.convertParameters(node.parameters),
- });
-
- if (isOptional(node)) {
- result.optional = true;
- }
-
- if (node.type) {
- result.returnType = this.convertTypeAnnotation(node.type, node);
- }
-
- if (hasModifier(SyntaxKind.ReadonlyKeyword, node)) {
- result.readonly = true;
- }
-
- if (node.typeParameters) {
- result.typeParameters = this.convertTSTypeParametersToTypeParametersDeclaration(
- node.typeParameters,
- );
- }
-
- const accessibility = getTSNodeAccessibility(node);
- if (accessibility) {
- result.accessibility = accessibility;
- }
-
- if (hasModifier(SyntaxKind.ExportKeyword, node)) {
- result.export = true;
- }
-
- if (hasModifier(SyntaxKind.StaticKeyword, node)) {
- result.static = true;
- }
- return result;
+ return this.convertMethodSignature(node);
}
case SyntaxKind.PropertySignature: {
diff --git a/packages/typescript-estree/src/parser.ts b/packages/typescript-estree/src/parser.ts
index 300a73c6f1db..fdbeaa6fa069 100644
--- a/packages/typescript-estree/src/parser.ts
+++ b/packages/typescript-estree/src/parser.ts
@@ -25,12 +25,12 @@ const log = debug('typescript-eslint:typescript-estree:parser');
* This needs to be kept in sync with the top-level README.md in the
* typescript-eslint monorepo
*/
-const SUPPORTED_TYPESCRIPT_VERSIONS = '>=3.3.1 <4.3.0';
+const SUPPORTED_TYPESCRIPT_VERSIONS = '>=3.3.1 <4.4.0';
/*
* The semver package will ignore prerelease ranges, and we don't want to explicitly document every one
* List them all separately here, so we can automatically create the full string
*/
-const SUPPORTED_PRERELEASE_RANGES: string[] = ['4.1.1-rc', '4.1.0-beta'];
+const SUPPORTED_PRERELEASE_RANGES: string[] = ['4.3.0-beta', '4.3.1-rc'];
const ACTIVE_TYPESCRIPT_VERSION = ts.version;
const isRunningSupportedTypeScriptVersion = semver.satisfies(
ACTIVE_TYPESCRIPT_VERSION,
diff --git a/packages/typescript-estree/src/ts-estree/estree-to-ts-node-types.ts b/packages/typescript-estree/src/ts-estree/estree-to-ts-node-types.ts
index 92ef8c42e604..0f74c42ac64f 100644
--- a/packages/typescript-estree/src/ts-estree/estree-to-ts-node-types.ts
+++ b/packages/typescript-estree/src/ts-estree/estree-to-ts-node-types.ts
@@ -180,7 +180,10 @@ export interface EstreeToTsNodeTypes {
[AST_NODE_TYPES.TSIntersectionType]: ts.IntersectionTypeNode;
[AST_NODE_TYPES.TSLiteralType]: ts.LiteralTypeNode;
[AST_NODE_TYPES.TSMappedType]: ts.MappedTypeNode;
- [AST_NODE_TYPES.TSMethodSignature]: ts.MethodSignature;
+ [AST_NODE_TYPES.TSMethodSignature]:
+ | ts.MethodSignature
+ | ts.GetAccessorDeclaration
+ | ts.SetAccessorDeclaration;
[AST_NODE_TYPES.TSModuleBlock]: ts.ModuleBlock;
[AST_NODE_TYPES.TSModuleDeclaration]: ts.ModuleDeclaration;
[AST_NODE_TYPES.TSNamedTupleMember]: ts.NamedTupleMember;
diff --git a/packages/typescript-estree/tests/ast-alignment/utils.ts b/packages/typescript-estree/tests/ast-alignment/utils.ts
index 99956cb694f0..67a4c2db67a9 100644
--- a/packages/typescript-estree/tests/ast-alignment/utils.ts
+++ b/packages/typescript-estree/tests/ast-alignment/utils.ts
@@ -165,6 +165,13 @@ export function preprocessBabylonAST(ast: BabelTypes.File): any {
node.type = AST_NODE_TYPES.TSAbstractMethodDefinition;
delete node.abstract;
}
+ /**
+ * TS 4.3: overrides on class members
+ * Babel doesn't ever emit a false override flag
+ */
+ if (node.override == null) {
+ node.override = false;
+ }
},
ClassProperty(node) {
/**
@@ -183,6 +190,13 @@ export function preprocessBabylonAST(ast: BabelTypes.File): any {
if (!node.declare) {
node.declare = false;
}
+ /**
+ * TS 4.3: overrides on class members
+ * Babel doesn't ever emit a false override flag
+ */
+ if (node.override == null) {
+ node.override = false;
+ }
},
TSExpressionWithTypeArguments(node, parent: any) {
if (parent.type === AST_NODE_TYPES.TSInterfaceDeclaration) {
diff --git a/packages/typescript-estree/tests/lib/__snapshots__/convert.test.ts.snap b/packages/typescript-estree/tests/lib/__snapshots__/convert.test.ts.snap
index 7da28080eb36..ef7abcee4f4a 100644
--- a/packages/typescript-estree/tests/lib/__snapshots__/convert.test.ts.snap
+++ b/packages/typescript-estree/tests/lib/__snapshots__/convert.test.ts.snap
@@ -22,7 +22,6 @@ Object {
12,
12,
],
- "transformFlags": 0,
"type": "TSEndOfFileToken",
},
"externalModuleIndicator": undefined,
@@ -170,7 +169,6 @@ Object {
},
],
"text": "new foo()",
- "transformFlags": 9,
"type": "TSSourceFile",
"typeReferenceDirectives": Array [],
}
@@ -210,7 +208,6 @@ Object {
5,
8,
],
- "transformFlags": 0,
"type": "TSUnparsedPrologue",
},
"nextContainer": undefined,
@@ -219,7 +216,6 @@ Object {
35,
],
"symbol": undefined,
- "transformFlags": 1,
"type": "TSUnparsedPrologue",
"typeAnnotation": null,
"typeParameters": null,
@@ -322,7 +318,6 @@ Object {
18,
],
"symbol": undefined,
- "transformFlags": 2305,
"type": "TSClassDeclaration",
"typeParameters": null,
}
@@ -363,7 +358,6 @@ Object {
0,
12,
],
- "transformFlags": 9,
"type": "TSNewExpression",
"typeParameters": Object {
"loc": Object {
@@ -464,7 +458,6 @@ Object {
15,
],
"symbol": undefined,
- "transformFlags": 257,
"type": "TSClassDeclaration",
"typeParameters": Object {
"loc": Object {
diff --git a/packages/typescript-estree/tests/lib/__snapshots__/semantic-diagnostics-enabled.test.ts.snap b/packages/typescript-estree/tests/lib/__snapshots__/semantic-diagnostics-enabled.test.ts.snap
index 7094769a4ad6..b8cf71c020cd 100644
--- a/packages/typescript-estree/tests/lib/__snapshots__/semantic-diagnostics-enabled.test.ts.snap
+++ b/packages/typescript-estree/tests/lib/__snapshots__/semantic-diagnostics-enabled.test.ts.snap
@@ -1679,6 +1679,10 @@ exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" e
exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/typescript/basics/abstract-class-with-optional-method.src 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`;
+exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/typescript/basics/abstract-class-with-override-method.src 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`;
+
+exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/typescript/basics/abstract-class-with-override-property.src 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`;
+
exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/typescript/basics/abstract-interface.src 1`] = `
TSError {
"column": 7,
@@ -1800,6 +1804,10 @@ exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" e
exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/typescript/basics/class-with-optional-property-undefined.src 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`;
+exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/typescript/basics/class-with-override-method.src 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`;
+
+exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/typescript/basics/class-with-override-property.src 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`;
+
exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/typescript/basics/class-with-private-parameter-properties.src 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`;
exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/typescript/basics/class-with-property-function.src 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`;
@@ -2639,6 +2647,8 @@ exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" e
exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/typescript/types/indexed.src 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`;
+exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/typescript/types/interface-with-accessors.src 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`;
+
exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/typescript/types/intersection-type.src 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`;
exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/typescript/types/literal-number.src 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`;
@@ -2661,6 +2671,8 @@ exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" e
exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/typescript/types/nested-types.src 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`;
+exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/typescript/types/object-literal-type-with-accessors.src 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`;
+
exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/typescript/types/parenthesized-type.src 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`;
exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/typescript/types/reference.src 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`;
diff --git a/packages/typescript-estree/tests/lib/__snapshots__/semanticInfo.test.ts.snap b/packages/typescript-estree/tests/lib/__snapshots__/semanticInfo.test.ts.snap
index c826bde0fbaa..0fe1c5a0c57e 100644
--- a/packages/typescript-estree/tests/lib/__snapshots__/semanticInfo.test.ts.snap
+++ b/packages/typescript-estree/tests/lib/__snapshots__/semanticInfo.test.ts.snap
@@ -1286,6 +1286,7 @@ Object {
"line": 4,
},
},
+ "override": false,
"range": Array [
39,
56,
diff --git a/packages/typescript-estree/tests/lib/convert.test.ts b/packages/typescript-estree/tests/lib/convert.test.ts
index a95916138d76..b26390b7f750 100644
--- a/packages/typescript-estree/tests/lib/convert.test.ts
+++ b/packages/typescript-estree/tests/lib/convert.test.ts
@@ -19,8 +19,7 @@ describe('convert', () => {
function fakeUnknownKind(node: ts.Node): void {
ts.forEachChild(node, fakeUnknownKind);
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment -- intentionally writing to a readonly field
- // @ts-expect-error
+ // @ts-expect-error -- intentionally writing to a readonly field
node.kind = ts.SyntaxKind.UnparsedPrologue;
}
diff --git a/packages/typescript-estree/tests/snapshots/comments/export-default-anonymous-class.src.js.shot b/packages/typescript-estree/tests/snapshots/comments/export-default-anonymous-class.src.js.shot
index bd0189e05aa0..dbeef2b24f98 100644
--- a/packages/typescript-estree/tests/snapshots/comments/export-default-anonymous-class.src.js.shot
+++ b/packages/typescript-estree/tests/snapshots/comments/export-default-anonymous-class.src.js.shot
@@ -38,6 +38,7 @@ Object {
"line": 8,
},
},
+ "override": false,
"range": Array [
103,
119,
diff --git a/packages/typescript-estree/tests/snapshots/javascript/classes/class-accessor-properties.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/classes/class-accessor-properties.src.js.shot
index fdacdc91cbdf..62aadc15acb6 100644
--- a/packages/typescript-estree/tests/snapshots/javascript/classes/class-accessor-properties.src.js.shot
+++ b/packages/typescript-estree/tests/snapshots/javascript/classes/class-accessor-properties.src.js.shot
@@ -37,6 +37,7 @@ Object {
"line": 1,
},
},
+ "override": false,
"range": Array [
9,
18,
@@ -115,6 +116,7 @@ Object {
"line": 1,
},
},
+ "override": false,
"range": Array [
19,
29,
diff --git a/packages/typescript-estree/tests/snapshots/javascript/classes/class-computed-static-method.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/classes/class-computed-static-method.src.js.shot
index 930ca6d8259f..5871d6c60c99 100644
--- a/packages/typescript-estree/tests/snapshots/javascript/classes/class-computed-static-method.src.js.shot
+++ b/packages/typescript-estree/tests/snapshots/javascript/classes/class-computed-static-method.src.js.shot
@@ -37,6 +37,7 @@ Object {
"line": 1,
},
},
+ "override": false,
"range": Array [
9,
23,
diff --git a/packages/typescript-estree/tests/snapshots/javascript/classes/class-method-named-prototype.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/classes/class-method-named-prototype.src.js.shot
index 1bea3845235d..c1ee0b82f958 100644
--- a/packages/typescript-estree/tests/snapshots/javascript/classes/class-method-named-prototype.src.js.shot
+++ b/packages/typescript-estree/tests/snapshots/javascript/classes/class-method-named-prototype.src.js.shot
@@ -37,6 +37,7 @@ Object {
"line": 1,
},
},
+ "override": false,
"range": Array [
9,
22,
diff --git a/packages/typescript-estree/tests/snapshots/javascript/classes/class-method-named-static.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/classes/class-method-named-static.src.js.shot
index 3283a8722a75..9b70760930b9 100644
--- a/packages/typescript-estree/tests/snapshots/javascript/classes/class-method-named-static.src.js.shot
+++ b/packages/typescript-estree/tests/snapshots/javascript/classes/class-method-named-static.src.js.shot
@@ -37,6 +37,7 @@ Object {
"line": 1,
},
},
+ "override": false,
"range": Array [
9,
19,
diff --git a/packages/typescript-estree/tests/snapshots/javascript/classes/class-method-named-with-space.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/classes/class-method-named-with-space.src.js.shot
index f13e2fabc216..9e9a41ba3261 100644
--- a/packages/typescript-estree/tests/snapshots/javascript/classes/class-method-named-with-space.src.js.shot
+++ b/packages/typescript-estree/tests/snapshots/javascript/classes/class-method-named-with-space.src.js.shot
@@ -37,6 +37,7 @@ Object {
"line": 1,
},
},
+ "override": false,
"range": Array [
9,
24,
diff --git a/packages/typescript-estree/tests/snapshots/javascript/classes/class-one-method-super.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/classes/class-one-method-super.src.js.shot
index 7c807720ef86..1f39c5579980 100644
--- a/packages/typescript-estree/tests/snapshots/javascript/classes/class-one-method-super.src.js.shot
+++ b/packages/typescript-estree/tests/snapshots/javascript/classes/class-one-method-super.src.js.shot
@@ -37,6 +37,7 @@ Object {
"line": 2,
},
},
+ "override": false,
"range": Array [
14,
41,
diff --git a/packages/typescript-estree/tests/snapshots/javascript/classes/class-one-method.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/classes/class-one-method.src.js.shot
index 97a6831a8da1..ed28bce4faa2 100644
--- a/packages/typescript-estree/tests/snapshots/javascript/classes/class-one-method.src.js.shot
+++ b/packages/typescript-estree/tests/snapshots/javascript/classes/class-one-method.src.js.shot
@@ -37,6 +37,7 @@ Object {
"line": 2,
},
},
+ "override": false,
"range": Array [
14,
19,
diff --git a/packages/typescript-estree/tests/snapshots/javascript/classes/class-static-method-named-prototype.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/classes/class-static-method-named-prototype.src.js.shot
index eddc8fae7c6b..4f725a4e5361 100644
--- a/packages/typescript-estree/tests/snapshots/javascript/classes/class-static-method-named-prototype.src.js.shot
+++ b/packages/typescript-estree/tests/snapshots/javascript/classes/class-static-method-named-prototype.src.js.shot
@@ -38,6 +38,7 @@ Object {
"line": 1,
},
},
+ "override": false,
"range": Array [
9,
33,
diff --git a/packages/typescript-estree/tests/snapshots/javascript/classes/class-static-method-named-static.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/classes/class-static-method-named-static.src.js.shot
index a0303a971a1a..b1756b4818dc 100644
--- a/packages/typescript-estree/tests/snapshots/javascript/classes/class-static-method-named-static.src.js.shot
+++ b/packages/typescript-estree/tests/snapshots/javascript/classes/class-static-method-named-static.src.js.shot
@@ -37,6 +37,7 @@ Object {
"line": 1,
},
},
+ "override": false,
"range": Array [
9,
26,
diff --git a/packages/typescript-estree/tests/snapshots/javascript/classes/class-static-method.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/classes/class-static-method.src.js.shot
index 52fe0b94216f..1cf9872e5897 100644
--- a/packages/typescript-estree/tests/snapshots/javascript/classes/class-static-method.src.js.shot
+++ b/packages/typescript-estree/tests/snapshots/javascript/classes/class-static-method.src.js.shot
@@ -37,6 +37,7 @@ Object {
"line": 1,
},
},
+ "override": false,
"range": Array [
9,
21,
diff --git a/packages/typescript-estree/tests/snapshots/javascript/classes/class-static-methods-and-accessor-properties.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/classes/class-static-methods-and-accessor-properties.src.js.shot
index ba34c36db88b..0dda0b030892 100644
--- a/packages/typescript-estree/tests/snapshots/javascript/classes/class-static-methods-and-accessor-properties.src.js.shot
+++ b/packages/typescript-estree/tests/snapshots/javascript/classes/class-static-methods-and-accessor-properties.src.js.shot
@@ -37,6 +37,7 @@ Object {
"line": 1,
},
},
+ "override": false,
"range": Array [
9,
21,
@@ -115,6 +116,7 @@ Object {
"line": 1,
},
},
+ "override": false,
"range": Array [
22,
38,
@@ -193,6 +195,7 @@ Object {
"line": 1,
},
},
+ "override": false,
"range": Array [
39,
56,
diff --git a/packages/typescript-estree/tests/snapshots/javascript/classes/class-two-computed-static-methods.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/classes/class-two-computed-static-methods.src.js.shot
index 9e09fb35659a..f99bd40eb6ca 100644
--- a/packages/typescript-estree/tests/snapshots/javascript/classes/class-two-computed-static-methods.src.js.shot
+++ b/packages/typescript-estree/tests/snapshots/javascript/classes/class-two-computed-static-methods.src.js.shot
@@ -37,6 +37,7 @@ Object {
"line": 1,
},
},
+ "override": false,
"range": Array [
9,
22,
@@ -115,6 +116,7 @@ Object {
"line": 1,
},
},
+ "override": false,
"range": Array [
24,
37,
diff --git a/packages/typescript-estree/tests/snapshots/javascript/classes/class-two-methods-computed-constructor.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/classes/class-two-methods-computed-constructor.src.js.shot
index c900a7f0214e..e104bce8c44d 100644
--- a/packages/typescript-estree/tests/snapshots/javascript/classes/class-two-methods-computed-constructor.src.js.shot
+++ b/packages/typescript-estree/tests/snapshots/javascript/classes/class-two-methods-computed-constructor.src.js.shot
@@ -37,6 +37,7 @@ Object {
"line": 1,
},
},
+ "override": false,
"range": Array [
9,
26,
@@ -116,6 +117,7 @@ Object {
"line": 1,
},
},
+ "override": false,
"range": Array [
27,
46,
diff --git a/packages/typescript-estree/tests/snapshots/javascript/classes/class-two-methods-semi.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/classes/class-two-methods-semi.src.js.shot
index fc9e5c7b6fcc..6c78f5741667 100644
--- a/packages/typescript-estree/tests/snapshots/javascript/classes/class-two-methods-semi.src.js.shot
+++ b/packages/typescript-estree/tests/snapshots/javascript/classes/class-two-methods-semi.src.js.shot
@@ -37,6 +37,7 @@ Object {
"line": 1,
},
},
+ "override": false,
"range": Array [
9,
14,
@@ -115,6 +116,7 @@ Object {
"line": 1,
},
},
+ "override": false,
"range": Array [
15,
20,
diff --git a/packages/typescript-estree/tests/snapshots/javascript/classes/class-two-methods-three-semi.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/classes/class-two-methods-three-semi.src.js.shot
index 4d8285256422..5060c0584f90 100644
--- a/packages/typescript-estree/tests/snapshots/javascript/classes/class-two-methods-three-semi.src.js.shot
+++ b/packages/typescript-estree/tests/snapshots/javascript/classes/class-two-methods-three-semi.src.js.shot
@@ -37,6 +37,7 @@ Object {
"line": 1,
},
},
+ "override": false,
"range": Array [
10,
15,
@@ -115,6 +116,7 @@ Object {
"line": 1,
},
},
+ "override": false,
"range": Array [
16,
21,
diff --git a/packages/typescript-estree/tests/snapshots/javascript/classes/class-two-methods-two-semi.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/classes/class-two-methods-two-semi.src.js.shot
index f1d6ca4f90eb..aeb53db18651 100644
--- a/packages/typescript-estree/tests/snapshots/javascript/classes/class-two-methods-two-semi.src.js.shot
+++ b/packages/typescript-estree/tests/snapshots/javascript/classes/class-two-methods-two-semi.src.js.shot
@@ -37,6 +37,7 @@ Object {
"line": 1,
},
},
+ "override": false,
"range": Array [
9,
14,
@@ -115,6 +116,7 @@ Object {
"line": 1,
},
},
+ "override": false,
"range": Array [
15,
20,
diff --git a/packages/typescript-estree/tests/snapshots/javascript/classes/class-two-methods.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/classes/class-two-methods.src.js.shot
index dadd12488521..b8be5d7f17c7 100644
--- a/packages/typescript-estree/tests/snapshots/javascript/classes/class-two-methods.src.js.shot
+++ b/packages/typescript-estree/tests/snapshots/javascript/classes/class-two-methods.src.js.shot
@@ -37,6 +37,7 @@ Object {
"line": 1,
},
},
+ "override": false,
"range": Array [
9,
14,
@@ -115,6 +116,7 @@ Object {
"line": 1,
},
},
+ "override": false,
"range": Array [
14,
19,
diff --git a/packages/typescript-estree/tests/snapshots/javascript/classes/class-two-static-methods-named-constructor.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/classes/class-two-static-methods-named-constructor.src.js.shot
index c6f00a3d4c46..9b9e4330f1b2 100644
--- a/packages/typescript-estree/tests/snapshots/javascript/classes/class-two-static-methods-named-constructor.src.js.shot
+++ b/packages/typescript-estree/tests/snapshots/javascript/classes/class-two-static-methods-named-constructor.src.js.shot
@@ -37,6 +37,7 @@ Object {
"line": 1,
},
},
+ "override": false,
"range": Array [
9,
31,
@@ -115,6 +116,7 @@ Object {
"line": 1,
},
},
+ "override": false,
"range": Array [
32,
54,
diff --git a/packages/typescript-estree/tests/snapshots/javascript/classes/class-with-constructor-parameters.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/classes/class-with-constructor-parameters.src.js.shot
index af33584684a9..e736c7d3cc94 100644
--- a/packages/typescript-estree/tests/snapshots/javascript/classes/class-with-constructor-parameters.src.js.shot
+++ b/packages/typescript-estree/tests/snapshots/javascript/classes/class-with-constructor-parameters.src.js.shot
@@ -37,6 +37,7 @@ Object {
"line": 1,
},
},
+ "override": false,
"range": Array [
9,
32,
diff --git a/packages/typescript-estree/tests/snapshots/javascript/classes/class-with-constructor-with-space.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/classes/class-with-constructor-with-space.src.js.shot
index 4193a686d1cc..1356638c8621 100644
--- a/packages/typescript-estree/tests/snapshots/javascript/classes/class-with-constructor-with-space.src.js.shot
+++ b/packages/typescript-estree/tests/snapshots/javascript/classes/class-with-constructor-with-space.src.js.shot
@@ -37,6 +37,7 @@ Object {
"line": 1,
},
},
+ "override": false,
"range": Array [
9,
25,
diff --git a/packages/typescript-estree/tests/snapshots/javascript/classes/class-with-constructor.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/classes/class-with-constructor.src.js.shot
index b40e348d921e..150efc9e0ac5 100644
--- a/packages/typescript-estree/tests/snapshots/javascript/classes/class-with-constructor.src.js.shot
+++ b/packages/typescript-estree/tests/snapshots/javascript/classes/class-with-constructor.src.js.shot
@@ -37,6 +37,7 @@ Object {
"line": 1,
},
},
+ "override": false,
"range": Array [
9,
24,
diff --git a/packages/typescript-estree/tests/snapshots/javascript/classes/invalid-class-setter-declaration.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/classes/invalid-class-setter-declaration.src.js.shot
index f064c5f76293..8b505ede6155 100644
--- a/packages/typescript-estree/tests/snapshots/javascript/classes/invalid-class-setter-declaration.src.js.shot
+++ b/packages/typescript-estree/tests/snapshots/javascript/classes/invalid-class-setter-declaration.src.js.shot
@@ -37,6 +37,7 @@ Object {
"line": 1,
},
},
+ "override": false,
"range": Array [
10,
22,
diff --git a/packages/typescript-estree/tests/snapshots/javascript/defaultParams/class-constructor.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/defaultParams/class-constructor.src.js.shot
index 4a29a98df2df..a0f0e8f243e4 100644
--- a/packages/typescript-estree/tests/snapshots/javascript/defaultParams/class-constructor.src.js.shot
+++ b/packages/typescript-estree/tests/snapshots/javascript/defaultParams/class-constructor.src.js.shot
@@ -37,6 +37,7 @@ Object {
"line": 2,
},
},
+ "override": false,
"range": Array [
14,
44,
diff --git a/packages/typescript-estree/tests/snapshots/javascript/defaultParams/class-method.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/defaultParams/class-method.src.js.shot
index 04c434424069..e826cfb92f9f 100644
--- a/packages/typescript-estree/tests/snapshots/javascript/defaultParams/class-method.src.js.shot
+++ b/packages/typescript-estree/tests/snapshots/javascript/defaultParams/class-method.src.js.shot
@@ -37,6 +37,7 @@ Object {
"line": 2,
},
},
+ "override": false,
"range": Array [
14,
36,
diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring/class-constructor-params-array.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring/class-constructor-params-array.src.js.shot
index 81adc7932099..1ce60cf6afe4 100644
--- a/packages/typescript-estree/tests/snapshots/javascript/destructuring/class-constructor-params-array.src.js.shot
+++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring/class-constructor-params-array.src.js.shot
@@ -37,6 +37,7 @@ Object {
"line": 2,
},
},
+ "override": false,
"range": Array [
14,
45,
diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring/class-constructor-params-defaults-array.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring/class-constructor-params-defaults-array.src.js.shot
index 06c6a6c36ba9..31e9b9c678ee 100644
--- a/packages/typescript-estree/tests/snapshots/javascript/destructuring/class-constructor-params-defaults-array.src.js.shot
+++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring/class-constructor-params-defaults-array.src.js.shot
@@ -37,6 +37,7 @@ Object {
"line": 2,
},
},
+ "override": false,
"range": Array [
14,
49,
diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring/class-constructor-params-defaults-object.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring/class-constructor-params-defaults-object.src.js.shot
index 37d5fc8f72e7..2fac40a23013 100644
--- a/packages/typescript-estree/tests/snapshots/javascript/destructuring/class-constructor-params-defaults-object.src.js.shot
+++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring/class-constructor-params-defaults-object.src.js.shot
@@ -37,6 +37,7 @@ Object {
"line": 2,
},
},
+ "override": false,
"range": Array [
14,
49,
diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring/class-constructor-params-object.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring/class-constructor-params-object.src.js.shot
index 058e26e7c075..2ce4b20aef57 100644
--- a/packages/typescript-estree/tests/snapshots/javascript/destructuring/class-constructor-params-object.src.js.shot
+++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring/class-constructor-params-object.src.js.shot
@@ -37,6 +37,7 @@ Object {
"line": 2,
},
},
+ "override": false,
"range": Array [
14,
45,
diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring/class-method-params-array.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring/class-method-params-array.src.js.shot
index a592ad53b5e5..0788bd3e5900 100644
--- a/packages/typescript-estree/tests/snapshots/javascript/destructuring/class-method-params-array.src.js.shot
+++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring/class-method-params-array.src.js.shot
@@ -37,6 +37,7 @@ Object {
"line": 2,
},
},
+ "override": false,
"range": Array [
14,
37,
diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring/class-method-params-defaults-array.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring/class-method-params-defaults-array.src.js.shot
index cb85570c27a5..09a9336e2029 100644
--- a/packages/typescript-estree/tests/snapshots/javascript/destructuring/class-method-params-defaults-array.src.js.shot
+++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring/class-method-params-defaults-array.src.js.shot
@@ -37,6 +37,7 @@ Object {
"line": 2,
},
},
+ "override": false,
"range": Array [
14,
41,
diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring/class-method-params-defaults-object.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring/class-method-params-defaults-object.src.js.shot
index 44a00400bfb8..bc5f1596e9b4 100644
--- a/packages/typescript-estree/tests/snapshots/javascript/destructuring/class-method-params-defaults-object.src.js.shot
+++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring/class-method-params-defaults-object.src.js.shot
@@ -37,6 +37,7 @@ Object {
"line": 2,
},
},
+ "override": false,
"range": Array [
14,
41,
diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring/class-method-params-object.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring/class-method-params-object.src.js.shot
index 439a20f2583f..3916e2523512 100644
--- a/packages/typescript-estree/tests/snapshots/javascript/destructuring/class-method-params-object.src.js.shot
+++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring/class-method-params-object.src.js.shot
@@ -37,6 +37,7 @@ Object {
"line": 2,
},
},
+ "override": false,
"range": Array [
14,
37,
diff --git a/packages/typescript-estree/tests/snapshots/javascript/directives/directive-in-class.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/directives/directive-in-class.src.js.shot
index 5cd2bc9958d6..65f9143603d5 100644
--- a/packages/typescript-estree/tests/snapshots/javascript/directives/directive-in-class.src.js.shot
+++ b/packages/typescript-estree/tests/snapshots/javascript/directives/directive-in-class.src.js.shot
@@ -74,6 +74,7 @@ Object {
"line": 4,
},
},
+ "override": false,
"range": Array [
31,
75,
@@ -190,6 +191,7 @@ Object {
"line": 8,
},
},
+ "override": false,
"range": Array [
81,
121,
@@ -306,6 +308,7 @@ Object {
"line": 12,
},
},
+ "override": false,
"range": Array [
127,
172,
@@ -441,6 +444,7 @@ Object {
"line": 16,
},
},
+ "override": false,
"range": Array [
178,
217,
diff --git a/packages/typescript-estree/tests/snapshots/javascript/generators/async-generator-method.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/generators/async-generator-method.src.js.shot
index 9a90f9b39a69..9789490921d4 100644
--- a/packages/typescript-estree/tests/snapshots/javascript/generators/async-generator-method.src.js.shot
+++ b/packages/typescript-estree/tests/snapshots/javascript/generators/async-generator-method.src.js.shot
@@ -37,6 +37,7 @@ Object {
"line": 2,
},
},
+ "override": false,
"range": Array [
14,
63,
diff --git a/packages/typescript-estree/tests/snapshots/javascript/restParams/class-constructor.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/restParams/class-constructor.src.js.shot
index bc5b0a73ebd3..6a702c700653 100644
--- a/packages/typescript-estree/tests/snapshots/javascript/restParams/class-constructor.src.js.shot
+++ b/packages/typescript-estree/tests/snapshots/javascript/restParams/class-constructor.src.js.shot
@@ -37,6 +37,7 @@ Object {
"line": 2,
},
},
+ "override": false,
"range": Array [
14,
41,
diff --git a/packages/typescript-estree/tests/snapshots/javascript/restParams/class-method.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/restParams/class-method.src.js.shot
index d3e04abe08bd..9a269121cc64 100644
--- a/packages/typescript-estree/tests/snapshots/javascript/restParams/class-method.src.js.shot
+++ b/packages/typescript-estree/tests/snapshots/javascript/restParams/class-method.src.js.shot
@@ -37,6 +37,7 @@ Object {
"line": 2,
},
},
+ "override": false,
"range": Array [
14,
33,
diff --git a/packages/typescript-estree/tests/snapshots/jsx/namespace-this-name.src.js.shot b/packages/typescript-estree/tests/snapshots/jsx/namespace-this-name.src.js.shot
index 58e66b804b7e..46d670895846 100644
--- a/packages/typescript-estree/tests/snapshots/jsx/namespace-this-name.src.js.shot
+++ b/packages/typescript-estree/tests/snapshots/jsx/namespace-this-name.src.js.shot
@@ -163,7 +163,7 @@ Object {
1,
9,
],
- "type": "Keyword",
+ "type": "JSXIdentifier",
"value": "this:bar",
},
Object {
diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/abstract-class-with-abstract-constructor.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/abstract-class-with-abstract-constructor.src.ts.shot
index 89c324ae0445..8a5a6c7e8c66 100644
--- a/packages/typescript-estree/tests/snapshots/typescript/basics/abstract-class-with-abstract-constructor.src.ts.shot
+++ b/packages/typescript-estree/tests/snapshots/typescript/basics/abstract-class-with-abstract-constructor.src.ts.shot
@@ -39,6 +39,7 @@ Object {
"line": 2,
},
},
+ "override": false,
"range": Array [
43,
66,
diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/abstract-class-with-abstract-method.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/abstract-class-with-abstract-method.src.ts.shot
index 5852f8937d09..7604195da3ac 100644
--- a/packages/typescript-estree/tests/snapshots/typescript/basics/abstract-class-with-abstract-method.src.ts.shot
+++ b/packages/typescript-estree/tests/snapshots/typescript/basics/abstract-class-with-abstract-method.src.ts.shot
@@ -39,6 +39,7 @@ Object {
"line": 2,
},
},
+ "override": false,
"range": Array [
43,
84,
diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/abstract-class-with-abstract-properties.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/abstract-class-with-abstract-properties.src.ts.shot
index 866a63383cb9..8c70b312e051 100644
--- a/packages/typescript-estree/tests/snapshots/typescript/basics/abstract-class-with-abstract-properties.src.ts.shot
+++ b/packages/typescript-estree/tests/snapshots/typescript/basics/abstract-class-with-abstract-properties.src.ts.shot
@@ -38,6 +38,7 @@ Object {
"line": 2,
},
},
+ "override": false,
"range": Array [
25,
38,
@@ -78,6 +79,7 @@ Object {
"line": 3,
},
},
+ "override": false,
"range": Array [
43,
60,
diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/abstract-class-with-abstract-readonly-property.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/abstract-class-with-abstract-readonly-property.src.ts.shot
index d33336454ef4..44ba579e1f77 100644
--- a/packages/typescript-estree/tests/snapshots/typescript/basics/abstract-class-with-abstract-readonly-property.src.ts.shot
+++ b/packages/typescript-estree/tests/snapshots/typescript/basics/abstract-class-with-abstract-readonly-property.src.ts.shot
@@ -39,6 +39,7 @@ Object {
"line": 2,
},
},
+ "override": false,
"range": Array [
23,
63,
diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/abstract-class-with-abstract-static-constructor.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/abstract-class-with-abstract-static-constructor.src.ts.shot
index 7e580cca84cd..6b0c9419bdfe 100644
--- a/packages/typescript-estree/tests/snapshots/typescript/basics/abstract-class-with-abstract-static-constructor.src.ts.shot
+++ b/packages/typescript-estree/tests/snapshots/typescript/basics/abstract-class-with-abstract-static-constructor.src.ts.shot
@@ -39,6 +39,7 @@ Object {
"line": 2,
},
},
+ "override": false,
"range": Array [
41,
71,
diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/abstract-class-with-declare-properties.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/abstract-class-with-declare-properties.src.ts.shot
index 0bdd47c223eb..d6ebb066f30e 100644
--- a/packages/typescript-estree/tests/snapshots/typescript/basics/abstract-class-with-declare-properties.src.ts.shot
+++ b/packages/typescript-estree/tests/snapshots/typescript/basics/abstract-class-with-declare-properties.src.ts.shot
@@ -38,6 +38,7 @@ Object {
"line": 2,
},
},
+ "override": false,
"range": Array [
37,
59,
@@ -112,6 +113,7 @@ Object {
"line": 3,
},
},
+ "override": false,
"range": Array [
62,
93,
@@ -187,6 +189,7 @@ Object {
"line": 4,
},
},
+ "override": false,
"range": Array [
96,
134,
@@ -261,6 +264,7 @@ Object {
"line": 5,
},
},
+ "override": false,
"range": Array [
137,
177,
@@ -336,6 +340,7 @@ Object {
"line": 6,
},
},
+ "override": false,
"range": Array [
180,
227,
diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/abstract-class-with-optional-method.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/abstract-class-with-optional-method.src.ts.shot
index 1cf4f4e8f16f..4c8d959632fe 100644
--- a/packages/typescript-estree/tests/snapshots/typescript/basics/abstract-class-with-optional-method.src.ts.shot
+++ b/packages/typescript-estree/tests/snapshots/typescript/basics/abstract-class-with-optional-method.src.ts.shot
@@ -40,6 +40,7 @@ Object {
},
},
"optional": true,
+ "override": false,
"range": Array [
43,
76,
diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/abstract-class-with-override-method.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/abstract-class-with-override-method.src.ts.shot
new file mode 100644
index 000000000000..32e9b1f00281
--- /dev/null
+++ b/packages/typescript-estree/tests/snapshots/typescript/basics/abstract-class-with-override-method.src.ts.shot
@@ -0,0 +1,396 @@
+// Jest Snapshot v1, https://goo.gl/fbAQLP
+
+exports[`typescript basics abstract-class-with-override-method.src 1`] = `
+Object {
+ "body": Array [
+ Object {
+ "abstract": true,
+ "body": Object {
+ "body": Array [
+ Object {
+ "computed": false,
+ "key": Object {
+ "loc": Object {
+ "end": Object {
+ "column": 24,
+ "line": 2,
+ },
+ "start": Object {
+ "column": 20,
+ "line": 2,
+ },
+ },
+ "name": "show",
+ "range": Array [
+ 80,
+ 84,
+ ],
+ "type": "Identifier",
+ },
+ "kind": "method",
+ "loc": Object {
+ "end": Object {
+ "column": 27,
+ "line": 2,
+ },
+ "start": Object {
+ "column": 2,
+ "line": 2,
+ },
+ },
+ "override": true,
+ "range": Array [
+ 62,
+ 87,
+ ],
+ "static": false,
+ "type": "TSAbstractMethodDefinition",
+ "value": Object {
+ "async": false,
+ "body": null,
+ "expression": false,
+ "generator": false,
+ "id": null,
+ "loc": Object {
+ "end": Object {
+ "column": 27,
+ "line": 2,
+ },
+ "start": Object {
+ "column": 24,
+ "line": 2,
+ },
+ },
+ "params": Array [],
+ "range": Array [
+ 84,
+ 87,
+ ],
+ "type": "TSEmptyBodyFunctionExpression",
+ },
+ },
+ ],
+ "loc": Object {
+ "end": Object {
+ "column": 1,
+ "line": 3,
+ },
+ "start": Object {
+ "column": 58,
+ "line": 1,
+ },
+ },
+ "range": Array [
+ 58,
+ 89,
+ ],
+ "type": "ClassBody",
+ },
+ "id": Object {
+ "loc": Object {
+ "end": Object {
+ "column": 35,
+ "line": 1,
+ },
+ "start": Object {
+ "column": 15,
+ "line": 1,
+ },
+ },
+ "name": "SpecializedComponent",
+ "range": Array [
+ 15,
+ 35,
+ ],
+ "type": "Identifier",
+ },
+ "loc": Object {
+ "end": Object {
+ "column": 1,
+ "line": 3,
+ },
+ "start": Object {
+ "column": 0,
+ "line": 1,
+ },
+ },
+ "range": Array [
+ 0,
+ 89,
+ ],
+ "superClass": Object {
+ "loc": Object {
+ "end": Object {
+ "column": 57,
+ "line": 1,
+ },
+ "start": Object {
+ "column": 44,
+ "line": 1,
+ },
+ },
+ "name": "SomeComponent",
+ "range": Array [
+ 44,
+ 57,
+ ],
+ "type": "Identifier",
+ },
+ "type": "ClassDeclaration",
+ },
+ ],
+ "comments": Array [],
+ "loc": Object {
+ "end": Object {
+ "column": 0,
+ "line": 4,
+ },
+ "start": Object {
+ "column": 0,
+ "line": 1,
+ },
+ },
+ "range": Array [
+ 0,
+ 90,
+ ],
+ "sourceType": "script",
+ "tokens": Array [
+ Object {
+ "loc": Object {
+ "end": Object {
+ "column": 8,
+ "line": 1,
+ },
+ "start": Object {
+ "column": 0,
+ "line": 1,
+ },
+ },
+ "range": Array [
+ 0,
+ 8,
+ ],
+ "type": "Identifier",
+ "value": "abstract",
+ },
+ Object {
+ "loc": Object {
+ "end": Object {
+ "column": 14,
+ "line": 1,
+ },
+ "start": Object {
+ "column": 9,
+ "line": 1,
+ },
+ },
+ "range": Array [
+ 9,
+ 14,
+ ],
+ "type": "Keyword",
+ "value": "class",
+ },
+ Object {
+ "loc": Object {
+ "end": Object {
+ "column": 35,
+ "line": 1,
+ },
+ "start": Object {
+ "column": 15,
+ "line": 1,
+ },
+ },
+ "range": Array [
+ 15,
+ 35,
+ ],
+ "type": "Identifier",
+ "value": "SpecializedComponent",
+ },
+ Object {
+ "loc": Object {
+ "end": Object {
+ "column": 43,
+ "line": 1,
+ },
+ "start": Object {
+ "column": 36,
+ "line": 1,
+ },
+ },
+ "range": Array [
+ 36,
+ 43,
+ ],
+ "type": "Keyword",
+ "value": "extends",
+ },
+ Object {
+ "loc": Object {
+ "end": Object {
+ "column": 57,
+ "line": 1,
+ },
+ "start": Object {
+ "column": 44,
+ "line": 1,
+ },
+ },
+ "range": Array [
+ 44,
+ 57,
+ ],
+ "type": "Identifier",
+ "value": "SomeComponent",
+ },
+ Object {
+ "loc": Object {
+ "end": Object {
+ "column": 59,
+ "line": 1,
+ },
+ "start": Object {
+ "column": 58,
+ "line": 1,
+ },
+ },
+ "range": Array [
+ 58,
+ 59,
+ ],
+ "type": "Punctuator",
+ "value": "{",
+ },
+ Object {
+ "loc": Object {
+ "end": Object {
+ "column": 10,
+ "line": 2,
+ },
+ "start": Object {
+ "column": 2,
+ "line": 2,
+ },
+ },
+ "range": Array [
+ 62,
+ 70,
+ ],
+ "type": "Identifier",
+ "value": "abstract",
+ },
+ Object {
+ "loc": Object {
+ "end": Object {
+ "column": 19,
+ "line": 2,
+ },
+ "start": Object {
+ "column": 11,
+ "line": 2,
+ },
+ },
+ "range": Array [
+ 71,
+ 79,
+ ],
+ "type": "Identifier",
+ "value": "override",
+ },
+ Object {
+ "loc": Object {
+ "end": Object {
+ "column": 24,
+ "line": 2,
+ },
+ "start": Object {
+ "column": 20,
+ "line": 2,
+ },
+ },
+ "range": Array [
+ 80,
+ 84,
+ ],
+ "type": "Identifier",
+ "value": "show",
+ },
+ Object {
+ "loc": Object {
+ "end": Object {
+ "column": 25,
+ "line": 2,
+ },
+ "start": Object {
+ "column": 24,
+ "line": 2,
+ },
+ },
+ "range": Array [
+ 84,
+ 85,
+ ],
+ "type": "Punctuator",
+ "value": "(",
+ },
+ Object {
+ "loc": Object {
+ "end": Object {
+ "column": 26,
+ "line": 2,
+ },
+ "start": Object {
+ "column": 25,
+ "line": 2,
+ },
+ },
+ "range": Array [
+ 85,
+ 86,
+ ],
+ "type": "Punctuator",
+ "value": ")",
+ },
+ Object {
+ "loc": Object {
+ "end": Object {
+ "column": 27,
+ "line": 2,
+ },
+ "start": Object {
+ "column": 26,
+ "line": 2,
+ },
+ },
+ "range": Array [
+ 86,
+ 87,
+ ],
+ "type": "Punctuator",
+ "value": ";",
+ },
+ Object {
+ "loc": Object {
+ "end": Object {
+ "column": 1,
+ "line": 3,
+ },
+ "start": Object {
+ "column": 0,
+ "line": 3,
+ },
+ },
+ "range": Array [
+ 88,
+ 89,
+ ],
+ "type": "Punctuator",
+ "value": "}",
+ },
+ ],
+ "type": "Program",
+}
+`;
diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/abstract-class-with-override-property.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/abstract-class-with-override-property.src.ts.shot
new file mode 100644
index 000000000000..ec1973cbc7ed
--- /dev/null
+++ b/packages/typescript-estree/tests/snapshots/typescript/basics/abstract-class-with-override-property.src.ts.shot
@@ -0,0 +1,393 @@
+// Jest Snapshot v1, https://goo.gl/fbAQLP
+
+exports[`typescript basics abstract-class-with-override-property.src 1`] = `
+Object {
+ "body": Array [
+ Object {
+ "abstract": true,
+ "body": Object {
+ "body": Array [
+ Object {
+ "computed": false,
+ "declare": false,
+ "key": Object {
+ "loc": Object {
+ "end": Object {
+ "column": 23,
+ "line": 2,
+ },
+ "start": Object {
+ "column": 20,
+ "line": 2,
+ },
+ },
+ "name": "foo",
+ "range": Array [
+ 80,
+ 83,
+ ],
+ "type": "Identifier",
+ },
+ "loc": Object {
+ "end": Object {
+ "column": 28,
+ "line": 2,
+ },
+ "start": Object {
+ "column": 2,
+ "line": 2,
+ },
+ },
+ "override": true,
+ "range": Array [
+ 62,
+ 88,
+ ],
+ "readonly": undefined,
+ "static": false,
+ "type": "TSAbstractClassProperty",
+ "value": Object {
+ "loc": Object {
+ "end": Object {
+ "column": 27,
+ "line": 2,
+ },
+ "start": Object {
+ "column": 26,
+ "line": 2,
+ },
+ },
+ "range": Array [
+ 86,
+ 87,
+ ],
+ "raw": "1",
+ "type": "Literal",
+ "value": 1,
+ },
+ },
+ ],
+ "loc": Object {
+ "end": Object {
+ "column": 1,
+ "line": 3,
+ },
+ "start": Object {
+ "column": 58,
+ "line": 1,
+ },
+ },
+ "range": Array [
+ 58,
+ 90,
+ ],
+ "type": "ClassBody",
+ },
+ "id": Object {
+ "loc": Object {
+ "end": Object {
+ "column": 35,
+ "line": 1,
+ },
+ "start": Object {
+ "column": 15,
+ "line": 1,
+ },
+ },
+ "name": "SpecializedComponent",
+ "range": Array [
+ 15,
+ 35,
+ ],
+ "type": "Identifier",
+ },
+ "loc": Object {
+ "end": Object {
+ "column": 1,
+ "line": 3,
+ },
+ "start": Object {
+ "column": 0,
+ "line": 1,
+ },
+ },
+ "range": Array [
+ 0,
+ 90,
+ ],
+ "superClass": Object {
+ "loc": Object {
+ "end": Object {
+ "column": 57,
+ "line": 1,
+ },
+ "start": Object {
+ "column": 44,
+ "line": 1,
+ },
+ },
+ "name": "SomeComponent",
+ "range": Array [
+ 44,
+ 57,
+ ],
+ "type": "Identifier",
+ },
+ "type": "ClassDeclaration",
+ },
+ ],
+ "comments": Array [],
+ "loc": Object {
+ "end": Object {
+ "column": 0,
+ "line": 4,
+ },
+ "start": Object {
+ "column": 0,
+ "line": 1,
+ },
+ },
+ "range": Array [
+ 0,
+ 91,
+ ],
+ "sourceType": "script",
+ "tokens": Array [
+ Object {
+ "loc": Object {
+ "end": Object {
+ "column": 8,
+ "line": 1,
+ },
+ "start": Object {
+ "column": 0,
+ "line": 1,
+ },
+ },
+ "range": Array [
+ 0,
+ 8,
+ ],
+ "type": "Identifier",
+ "value": "abstract",
+ },
+ Object {
+ "loc": Object {
+ "end": Object {
+ "column": 14,
+ "line": 1,
+ },
+ "start": Object {
+ "column": 9,
+ "line": 1,
+ },
+ },
+ "range": Array [
+ 9,
+ 14,
+ ],
+ "type": "Keyword",
+ "value": "class",
+ },
+ Object {
+ "loc": Object {
+ "end": Object {
+ "column": 35,
+ "line": 1,
+ },
+ "start": Object {
+ "column": 15,
+ "line": 1,
+ },
+ },
+ "range": Array [
+ 15,
+ 35,
+ ],
+ "type": "Identifier",
+ "value": "SpecializedComponent",
+ },
+ Object {
+ "loc": Object {
+ "end": Object {
+ "column": 43,
+ "line": 1,
+ },
+ "start": Object {
+ "column": 36,
+ "line": 1,
+ },
+ },
+ "range": Array [
+ 36,
+ 43,
+ ],
+ "type": "Keyword",
+ "value": "extends",
+ },
+ Object {
+ "loc": Object {
+ "end": Object {
+ "column": 57,
+ "line": 1,
+ },
+ "start": Object {
+ "column": 44,
+ "line": 1,
+ },
+ },
+ "range": Array [
+ 44,
+ 57,
+ ],
+ "type": "Identifier",
+ "value": "SomeComponent",
+ },
+ Object {
+ "loc": Object {
+ "end": Object {
+ "column": 59,
+ "line": 1,
+ },
+ "start": Object {
+ "column": 58,
+ "line": 1,
+ },
+ },
+ "range": Array [
+ 58,
+ 59,
+ ],
+ "type": "Punctuator",
+ "value": "{",
+ },
+ Object {
+ "loc": Object {
+ "end": Object {
+ "column": 10,
+ "line": 2,
+ },
+ "start": Object {
+ "column": 2,
+ "line": 2,
+ },
+ },
+ "range": Array [
+ 62,
+ 70,
+ ],
+ "type": "Identifier",
+ "value": "abstract",
+ },
+ Object {
+ "loc": Object {
+ "end": Object {
+ "column": 19,
+ "line": 2,
+ },
+ "start": Object {
+ "column": 11,
+ "line": 2,
+ },
+ },
+ "range": Array [
+ 71,
+ 79,
+ ],
+ "type": "Identifier",
+ "value": "override",
+ },
+ Object {
+ "loc": Object {
+ "end": Object {
+ "column": 23,
+ "line": 2,
+ },
+ "start": Object {
+ "column": 20,
+ "line": 2,
+ },
+ },
+ "range": Array [
+ 80,
+ 83,
+ ],
+ "type": "Identifier",
+ "value": "foo",
+ },
+ Object {
+ "loc": Object {
+ "end": Object {
+ "column": 25,
+ "line": 2,
+ },
+ "start": Object {
+ "column": 24,
+ "line": 2,
+ },
+ },
+ "range": Array [
+ 84,
+ 85,
+ ],
+ "type": "Punctuator",
+ "value": "=",
+ },
+ Object {
+ "loc": Object {
+ "end": Object {
+ "column": 27,
+ "line": 2,
+ },
+ "start": Object {
+ "column": 26,
+ "line": 2,
+ },
+ },
+ "range": Array [
+ 86,
+ 87,
+ ],
+ "type": "Numeric",
+ "value": "1",
+ },
+ Object {
+ "loc": Object {
+ "end": Object {
+ "column": 28,
+ "line": 2,
+ },
+ "start": Object {
+ "column": 27,
+ "line": 2,
+ },
+ },
+ "range": Array [
+ 87,
+ 88,
+ ],
+ "type": "Punctuator",
+ "value": ";",
+ },
+ Object {
+ "loc": Object {
+ "end": Object {
+ "column": 1,
+ "line": 3,
+ },
+ "start": Object {
+ "column": 0,
+ "line": 3,
+ },
+ },
+ "range": Array [
+ 89,
+ 90,
+ ],
+ "type": "Punctuator",
+ "value": "}",
+ },
+ ],
+ "type": "Program",
+}
+`;
diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-accessibility-modifiers.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-accessibility-modifiers.src.ts.shot
index c2e78c3d5fc3..67d8ef501e3b 100644
--- a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-accessibility-modifiers.src.ts.shot
+++ b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-accessibility-modifiers.src.ts.shot
@@ -38,6 +38,7 @@ Object {
"line": 2,
},
},
+ "override": false,
"range": Array [
14,
35,
@@ -113,6 +114,7 @@ Object {
"line": 3,
},
},
+ "override": false,
"range": Array [
38,
65,
@@ -188,6 +190,7 @@ Object {
"line": 4,
},
},
+ "override": false,
"range": Array [
68,
111,
@@ -339,6 +342,7 @@ Object {
"line": 7,
},
},
+ "override": false,
"range": Array [
114,
171,
diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-constructor-and-modifier.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-constructor-and-modifier.src.ts.shot
index 73617426afb6..ed6760da000a 100644
--- a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-constructor-and-modifier.src.ts.shot
+++ b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-constructor-and-modifier.src.ts.shot
@@ -38,6 +38,7 @@ Object {
"line": 2,
},
},
+ "override": false,
"range": Array [
12,
39,
@@ -118,6 +119,7 @@ Object {
"line": 4,
},
},
+ "override": false,
"range": Array [
43,
71,
diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-constructor-and-return-type.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-constructor-and-return-type.src.ts.shot
index 6039f0b88ca1..c3a17fbe6985 100644
--- a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-constructor-and-return-type.src.ts.shot
+++ b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-constructor-and-return-type.src.ts.shot
@@ -37,6 +37,7 @@ Object {
"line": 2,
},
},
+ "override": false,
"range": Array [
12,
37,
@@ -150,6 +151,7 @@ Object {
"line": 4,
},
},
+ "override": false,
"range": Array [
41,
70,
diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-constructor-and-type-parameters.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-constructor-and-type-parameters.src.ts.shot
index 41ec91f36db0..56353693fd68 100644
--- a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-constructor-and-type-parameters.src.ts.shot
+++ b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-constructor-and-type-parameters.src.ts.shot
@@ -37,6 +37,7 @@ Object {
"line": 2,
},
},
+ "override": false,
"range": Array [
12,
32,
@@ -172,6 +173,7 @@ Object {
"line": 4,
},
},
+ "override": false,
"range": Array [
36,
60,
diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-declare-properties.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-declare-properties.src.ts.shot
index 3fc4fa8a2887..5de10062c2d5 100644
--- a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-declare-properties.src.ts.shot
+++ b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-declare-properties.src.ts.shot
@@ -37,6 +37,7 @@ Object {
"line": 2,
},
},
+ "override": false,
"range": Array [
20,
42,
@@ -112,6 +113,7 @@ Object {
"line": 3,
},
},
+ "override": false,
"range": Array [
45,
74,
@@ -186,6 +188,7 @@ Object {
"line": 4,
},
},
+ "override": false,
"range": Array [
77,
106,
@@ -260,6 +263,7 @@ Object {
"line": 5,
},
},
+ "override": false,
"range": Array [
109,
140,
@@ -335,6 +339,7 @@ Object {
"line": 6,
},
},
+ "override": false,
"range": Array [
143,
181,
@@ -410,6 +415,7 @@ Object {
"line": 7,
},
},
+ "override": false,
"range": Array [
184,
220,
@@ -485,6 +491,7 @@ Object {
"line": 8,
},
},
+ "override": false,
"range": Array [
223,
268,
diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-definite-assignment.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-definite-assignment.src.ts.shot
index 175efb44864f..00d59df785b5 100644
--- a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-definite-assignment.src.ts.shot
+++ b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-definite-assignment.src.ts.shot
@@ -38,6 +38,7 @@ Object {
"line": 2,
},
},
+ "override": false,
"range": Array [
12,
23,
diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-export-parameter-properties.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-export-parameter-properties.src.ts.shot
index c74dc1277b74..57fd7fb7ff7a 100644
--- a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-export-parameter-properties.src.ts.shot
+++ b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-export-parameter-properties.src.ts.shot
@@ -37,6 +37,7 @@ Object {
"line": 2,
},
},
+ "override": false,
"range": Array [
16,
54,
diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-generic-method-default.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-generic-method-default.src.ts.shot
index 83f8801a83f7..517d5dd3e62a 100644
--- a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-generic-method-default.src.ts.shot
+++ b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-generic-method-default.src.ts.shot
@@ -37,6 +37,7 @@ Object {
"line": 2,
},
},
+ "override": false,
"range": Array [
14,
34,
diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-generic-method.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-generic-method.src.ts.shot
index 046a4f06f730..504612e7858d 100644
--- a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-generic-method.src.ts.shot
+++ b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-generic-method.src.ts.shot
@@ -37,6 +37,7 @@ Object {
"line": 2,
},
},
+ "override": false,
"range": Array [
14,
28,
diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-method.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-method.src.ts.shot
index cd01d383d9b4..84f1c8825bcb 100644
--- a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-method.src.ts.shot
+++ b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-method.src.ts.shot
@@ -37,6 +37,7 @@ Object {
"line": 2,
},
},
+ "override": false,
"range": Array [
12,
29,
@@ -149,6 +150,7 @@ Object {
"line": 3,
},
},
+ "override": false,
"range": Array [
32,
44,
@@ -283,6 +285,7 @@ Object {
"line": 4,
},
},
+ "override": false,
"range": Array [
47,
55,
diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-optional-computed-method.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-optional-computed-method.src.ts.shot
index 7b2f8e4f53c4..1fd54885c280 100644
--- a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-optional-computed-method.src.ts.shot
+++ b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-optional-computed-method.src.ts.shot
@@ -376,6 +376,7 @@ Object {
},
},
"optional": true,
+ "override": false,
"range": Array [
123,
138,
@@ -438,6 +439,7 @@ Object {
},
},
"optional": true,
+ "override": false,
"range": Array [
141,
158,
@@ -518,6 +520,7 @@ Object {
},
},
"optional": true,
+ "override": false,
"range": Array [
162,
169,
@@ -581,6 +584,7 @@ Object {
},
},
"optional": true,
+ "override": false,
"range": Array [
172,
181,
@@ -661,6 +665,7 @@ Object {
},
},
"optional": true,
+ "override": false,
"range": Array [
185,
201,
@@ -724,6 +729,7 @@ Object {
},
},
"optional": true,
+ "override": false,
"range": Array [
204,
222,
@@ -840,6 +846,7 @@ Object {
},
},
"optional": true,
+ "override": false,
"range": Array [
226,
244,
@@ -956,6 +963,7 @@ Object {
},
},
"optional": true,
+ "override": false,
"range": Array [
248,
265,
@@ -1037,6 +1045,7 @@ Object {
},
},
"optional": true,
+ "override": false,
"range": Array [
268,
279,
diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-optional-computed-property.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-optional-computed-property.src.ts.shot
index 6271f111aee6..31128d9a73bb 100644
--- a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-optional-computed-property.src.ts.shot
+++ b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-optional-computed-property.src.ts.shot
@@ -40,6 +40,7 @@ Object {
},
},
"optional": true,
+ "override": false,
"range": Array [
14,
43,
diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-optional-methods.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-optional-methods.src.ts.shot
index d237d0e252e2..5ad7ce5d913b 100644
--- a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-optional-methods.src.ts.shot
+++ b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-optional-methods.src.ts.shot
@@ -38,6 +38,7 @@ Object {
},
},
"optional": true,
+ "override": false,
"range": Array [
14,
21,
@@ -100,6 +101,7 @@ Object {
},
},
"optional": true,
+ "override": false,
"range": Array [
24,
39,
@@ -197,6 +199,7 @@ Object {
},
},
"optional": true,
+ "override": false,
"range": Array [
42,
65,
diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-optional-properties.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-optional-properties.src.ts.shot
index 17ec5f652f82..3905565b51e0 100644
--- a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-optional-properties.src.ts.shot
+++ b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-optional-properties.src.ts.shot
@@ -186,6 +186,7 @@ Object {
},
},
"optional": true,
+ "override": false,
"range": Array [
65,
70,
@@ -227,6 +228,7 @@ Object {
},
},
"optional": true,
+ "override": false,
"range": Array [
73,
87,
@@ -303,6 +305,7 @@ Object {
},
},
"optional": true,
+ "override": false,
"range": Array [
90,
112,
@@ -378,6 +381,7 @@ Object {
},
},
"optional": true,
+ "override": false,
"range": Array [
115,
127,
@@ -420,6 +424,7 @@ Object {
},
},
"optional": true,
+ "override": false,
"range": Array [
130,
143,
@@ -462,6 +467,7 @@ Object {
},
},
"optional": true,
+ "override": false,
"range": Array [
146,
151,
@@ -503,6 +509,7 @@ Object {
},
},
"optional": true,
+ "override": false,
"range": Array [
154,
175,
@@ -579,6 +586,7 @@ Object {
},
},
"optional": true,
+ "override": false,
"range": Array [
178,
200,
@@ -655,6 +663,7 @@ Object {
},
},
"optional": true,
+ "override": false,
"range": Array [
203,
216,
diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-optional-property-undefined.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-optional-property-undefined.src.ts.shot
index 2476b7468c66..e3f8ea37bde3 100644
--- a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-optional-property-undefined.src.ts.shot
+++ b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-optional-property-undefined.src.ts.shot
@@ -39,6 +39,7 @@ Object {
},
},
"optional": true,
+ "override": false,
"range": Array [
12,
37,
diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-override-method.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-override-method.src.ts.shot
new file mode 100644
index 000000000000..e600ab918a51
--- /dev/null
+++ b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-override-method.src.ts.shot
@@ -0,0 +1,413 @@
+// Jest Snapshot v1, https://goo.gl/fbAQLP
+
+exports[`typescript basics class-with-override-method.src 1`] = `
+Object {
+ "body": Array [
+ Object {
+ "body": Object {
+ "body": Array [
+ Object {
+ "computed": false,
+ "key": Object {
+ "loc": Object {
+ "end": Object {
+ "column": 15,
+ "line": 2,
+ },
+ "start": Object {
+ "column": 11,
+ "line": 2,
+ },
+ },
+ "name": "show",
+ "range": Array [
+ 62,
+ 66,
+ ],
+ "type": "Identifier",
+ },
+ "kind": "method",
+ "loc": Object {
+ "end": Object {
+ "column": 3,
+ "line": 4,
+ },
+ "start": Object {
+ "column": 2,
+ "line": 2,
+ },
+ },
+ "override": true,
+ "range": Array [
+ 53,
+ 87,
+ ],
+ "static": false,
+ "type": "MethodDefinition",
+ "value": Object {
+ "async": false,
+ "body": Object {
+ "body": Array [],
+ "loc": Object {
+ "end": Object {
+ "column": 3,
+ "line": 4,
+ },
+ "start": Object {
+ "column": 18,
+ "line": 2,
+ },
+ },
+ "range": Array [
+ 69,
+ 87,
+ ],
+ "type": "BlockStatement",
+ },
+ "expression": false,
+ "generator": false,
+ "id": null,
+ "loc": Object {
+ "end": Object {
+ "column": 3,
+ "line": 4,
+ },
+ "start": Object {
+ "column": 15,
+ "line": 2,
+ },
+ },
+ "params": Array [],
+ "range": Array [
+ 66,
+ 87,
+ ],
+ "type": "FunctionExpression",
+ },
+ },
+ ],
+ "loc": Object {
+ "end": Object {
+ "column": 1,
+ "line": 5,
+ },
+ "start": Object {
+ "column": 49,
+ "line": 1,
+ },
+ },
+ "range": Array [
+ 49,
+ 89,
+ ],
+ "type": "ClassBody",
+ },
+ "id": Object {
+ "loc": Object {
+ "end": Object {
+ "column": 26,
+ "line": 1,
+ },
+ "start": Object {
+ "column": 6,
+ "line": 1,
+ },
+ },
+ "name": "SpecializedComponent",
+ "range": Array [
+ 6,
+ 26,
+ ],
+ "type": "Identifier",
+ },
+ "loc": Object {
+ "end": Object {
+ "column": 1,
+ "line": 5,
+ },
+ "start": Object {
+ "column": 0,
+ "line": 1,
+ },
+ },
+ "range": Array [
+ 0,
+ 89,
+ ],
+ "superClass": Object {
+ "loc": Object {
+ "end": Object {
+ "column": 48,
+ "line": 1,
+ },
+ "start": Object {
+ "column": 35,
+ "line": 1,
+ },
+ },
+ "name": "SomeComponent",
+ "range": Array [
+ 35,
+ 48,
+ ],
+ "type": "Identifier",
+ },
+ "type": "ClassDeclaration",
+ },
+ ],
+ "comments": Array [
+ Object {
+ "loc": Object {
+ "end": Object {
+ "column": 12,
+ "line": 3,
+ },
+ "start": Object {
+ "column": 6,
+ "line": 3,
+ },
+ },
+ "range": Array [
+ 77,
+ 83,
+ ],
+ "type": "Line",
+ "value": " ...",
+ },
+ ],
+ "loc": Object {
+ "end": Object {
+ "column": 0,
+ "line": 6,
+ },
+ "start": Object {
+ "column": 0,
+ "line": 1,
+ },
+ },
+ "range": Array [
+ 0,
+ 90,
+ ],
+ "sourceType": "script",
+ "tokens": Array [
+ Object {
+ "loc": Object {
+ "end": Object {
+ "column": 5,
+ "line": 1,
+ },
+ "start": Object {
+ "column": 0,
+ "line": 1,
+ },
+ },
+ "range": Array [
+ 0,
+ 5,
+ ],
+ "type": "Keyword",
+ "value": "class",
+ },
+ Object {
+ "loc": Object {
+ "end": Object {
+ "column": 26,
+ "line": 1,
+ },
+ "start": Object {
+ "column": 6,
+ "line": 1,
+ },
+ },
+ "range": Array [
+ 6,
+ 26,
+ ],
+ "type": "Identifier",
+ "value": "SpecializedComponent",
+ },
+ Object {
+ "loc": Object {
+ "end": Object {
+ "column": 34,
+ "line": 1,
+ },
+ "start": Object {
+ "column": 27,
+ "line": 1,
+ },
+ },
+ "range": Array [
+ 27,
+ 34,
+ ],
+ "type": "Keyword",
+ "value": "extends",
+ },
+ Object {
+ "loc": Object {
+ "end": Object {
+ "column": 48,
+ "line": 1,
+ },
+ "start": Object {
+ "column": 35,
+ "line": 1,
+ },
+ },
+ "range": Array [
+ 35,
+ 48,
+ ],
+ "type": "Identifier",
+ "value": "SomeComponent",
+ },
+ Object {
+ "loc": Object {
+ "end": Object {
+ "column": 50,
+ "line": 1,
+ },
+ "start": Object {
+ "column": 49,
+ "line": 1,
+ },
+ },
+ "range": Array [
+ 49,
+ 50,
+ ],
+ "type": "Punctuator",
+ "value": "{",
+ },
+ Object {
+ "loc": Object {
+ "end": Object {
+ "column": 10,
+ "line": 2,
+ },
+ "start": Object {
+ "column": 2,
+ "line": 2,
+ },
+ },
+ "range": Array [
+ 53,
+ 61,
+ ],
+ "type": "Identifier",
+ "value": "override",
+ },
+ Object {
+ "loc": Object {
+ "end": Object {
+ "column": 15,
+ "line": 2,
+ },
+ "start": Object {
+ "column": 11,
+ "line": 2,
+ },
+ },
+ "range": Array [
+ 62,
+ 66,
+ ],
+ "type": "Identifier",
+ "value": "show",
+ },
+ Object {
+ "loc": Object {
+ "end": Object {
+ "column": 16,
+ "line": 2,
+ },
+ "start": Object {
+ "column": 15,
+ "line": 2,
+ },
+ },
+ "range": Array [
+ 66,
+ 67,
+ ],
+ "type": "Punctuator",
+ "value": "(",
+ },
+ Object {
+ "loc": Object {
+ "end": Object {
+ "column": 17,
+ "line": 2,
+ },
+ "start": Object {
+ "column": 16,
+ "line": 2,
+ },
+ },
+ "range": Array [
+ 67,
+ 68,
+ ],
+ "type": "Punctuator",
+ "value": ")",
+ },
+ Object {
+ "loc": Object {
+ "end": Object {
+ "column": 19,
+ "line": 2,
+ },
+ "start": Object {
+ "column": 18,
+ "line": 2,
+ },
+ },
+ "range": Array [
+ 69,
+ 70,
+ ],
+ "type": "Punctuator",
+ "value": "{",
+ },
+ Object {
+ "loc": Object {
+ "end": Object {
+ "column": 3,
+ "line": 4,
+ },
+ "start": Object {
+ "column": 2,
+ "line": 4,
+ },
+ },
+ "range": Array [
+ 86,
+ 87,
+ ],
+ "type": "Punctuator",
+ "value": "}",
+ },
+ Object {
+ "loc": Object {
+ "end": Object {
+ "column": 1,
+ "line": 5,
+ },
+ "start": Object {
+ "column": 0,
+ "line": 5,
+ },
+ },
+ "range": Array [
+ 88,
+ 89,
+ ],
+ "type": "Punctuator",
+ "value": "}",
+ },
+ ],
+ "type": "Program",
+}
+`;
diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-override-property.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-override-property.src.ts.shot
new file mode 100644
index 000000000000..30a584f5f6da
--- /dev/null
+++ b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-override-property.src.ts.shot
@@ -0,0 +1,356 @@
+// Jest Snapshot v1, https://goo.gl/fbAQLP
+
+exports[`typescript basics class-with-override-property.src 1`] = `
+Object {
+ "body": Array [
+ Object {
+ "body": Object {
+ "body": Array [
+ Object {
+ "computed": false,
+ "declare": false,
+ "key": Object {
+ "loc": Object {
+ "end": Object {
+ "column": 14,
+ "line": 2,
+ },
+ "start": Object {
+ "column": 11,
+ "line": 2,
+ },
+ },
+ "name": "foo",
+ "range": Array [
+ 62,
+ 65,
+ ],
+ "type": "Identifier",
+ },
+ "loc": Object {
+ "end": Object {
+ "column": 19,
+ "line": 2,
+ },
+ "start": Object {
+ "column": 2,
+ "line": 2,
+ },
+ },
+ "override": true,
+ "range": Array [
+ 53,
+ 70,
+ ],
+ "readonly": undefined,
+ "static": false,
+ "type": "ClassProperty",
+ "value": Object {
+ "loc": Object {
+ "end": Object {
+ "column": 18,
+ "line": 2,
+ },
+ "start": Object {
+ "column": 17,
+ "line": 2,
+ },
+ },
+ "range": Array [
+ 68,
+ 69,
+ ],
+ "raw": "1",
+ "type": "Literal",
+ "value": 1,
+ },
+ },
+ ],
+ "loc": Object {
+ "end": Object {
+ "column": 1,
+ "line": 3,
+ },
+ "start": Object {
+ "column": 49,
+ "line": 1,
+ },
+ },
+ "range": Array [
+ 49,
+ 72,
+ ],
+ "type": "ClassBody",
+ },
+ "id": Object {
+ "loc": Object {
+ "end": Object {
+ "column": 26,
+ "line": 1,
+ },
+ "start": Object {
+ "column": 6,
+ "line": 1,
+ },
+ },
+ "name": "SpecializedComponent",
+ "range": Array [
+ 6,
+ 26,
+ ],
+ "type": "Identifier",
+ },
+ "loc": Object {
+ "end": Object {
+ "column": 1,
+ "line": 3,
+ },
+ "start": Object {
+ "column": 0,
+ "line": 1,
+ },
+ },
+ "range": Array [
+ 0,
+ 72,
+ ],
+ "superClass": Object {
+ "loc": Object {
+ "end": Object {
+ "column": 48,
+ "line": 1,
+ },
+ "start": Object {
+ "column": 35,
+ "line": 1,
+ },
+ },
+ "name": "SomeComponent",
+ "range": Array [
+ 35,
+ 48,
+ ],
+ "type": "Identifier",
+ },
+ "type": "ClassDeclaration",
+ },
+ ],
+ "comments": Array [],
+ "loc": Object {
+ "end": Object {
+ "column": 0,
+ "line": 4,
+ },
+ "start": Object {
+ "column": 0,
+ "line": 1,
+ },
+ },
+ "range": Array [
+ 0,
+ 73,
+ ],
+ "sourceType": "script",
+ "tokens": Array [
+ Object {
+ "loc": Object {
+ "end": Object {
+ "column": 5,
+ "line": 1,
+ },
+ "start": Object {
+ "column": 0,
+ "line": 1,
+ },
+ },
+ "range": Array [
+ 0,
+ 5,
+ ],
+ "type": "Keyword",
+ "value": "class",
+ },
+ Object {
+ "loc": Object {
+ "end": Object {
+ "column": 26,
+ "line": 1,
+ },
+ "start": Object {
+ "column": 6,
+ "line": 1,
+ },
+ },
+ "range": Array [
+ 6,
+ 26,
+ ],
+ "type": "Identifier",
+ "value": "SpecializedComponent",
+ },
+ Object {
+ "loc": Object {
+ "end": Object {
+ "column": 34,
+ "line": 1,
+ },
+ "start": Object {
+ "column": 27,
+ "line": 1,
+ },
+ },
+ "range": Array [
+ 27,
+ 34,
+ ],
+ "type": "Keyword",
+ "value": "extends",
+ },
+ Object {
+ "loc": Object {
+ "end": Object {
+ "column": 48,
+ "line": 1,
+ },
+ "start": Object {
+ "column": 35,
+ "line": 1,
+ },
+ },
+ "range": Array [
+ 35,
+ 48,
+ ],
+ "type": "Identifier",
+ "value": "SomeComponent",
+ },
+ Object {
+ "loc": Object {
+ "end": Object {
+ "column": 50,
+ "line": 1,
+ },
+ "start": Object {
+ "column": 49,
+ "line": 1,
+ },
+ },
+ "range": Array [
+ 49,
+ 50,
+ ],
+ "type": "Punctuator",
+ "value": "{",
+ },
+ Object {
+ "loc": Object {
+ "end": Object {
+ "column": 10,
+ "line": 2,
+ },
+ "start": Object {
+ "column": 2,
+ "line": 2,
+ },
+ },
+ "range": Array [
+ 53,
+ 61,
+ ],
+ "type": "Identifier",
+ "value": "override",
+ },
+ Object {
+ "loc": Object {
+ "end": Object {
+ "column": 14,
+ "line": 2,
+ },
+ "start": Object {
+ "column": 11,
+ "line": 2,
+ },
+ },
+ "range": Array [
+ 62,
+ 65,
+ ],
+ "type": "Identifier",
+ "value": "foo",
+ },
+ Object {
+ "loc": Object {
+ "end": Object {
+ "column": 16,
+ "line": 2,
+ },
+ "start": Object {
+ "column": 15,
+ "line": 2,
+ },
+ },
+ "range": Array [
+ 66,
+ 67,
+ ],
+ "type": "Punctuator",
+ "value": "=",
+ },
+ Object {
+ "loc": Object {
+ "end": Object {
+ "column": 18,
+ "line": 2,
+ },
+ "start": Object {
+ "column": 17,
+ "line": 2,
+ },
+ },
+ "range": Array [
+ 68,
+ 69,
+ ],
+ "type": "Numeric",
+ "value": "1",
+ },
+ Object {
+ "loc": Object {
+ "end": Object {
+ "column": 19,
+ "line": 2,
+ },
+ "start": Object {
+ "column": 18,
+ "line": 2,
+ },
+ },
+ "range": Array [
+ 69,
+ 70,
+ ],
+ "type": "Punctuator",
+ "value": ";",
+ },
+ Object {
+ "loc": Object {
+ "end": Object {
+ "column": 1,
+ "line": 3,
+ },
+ "start": Object {
+ "column": 0,
+ "line": 3,
+ },
+ },
+ "range": Array [
+ 71,
+ 72,
+ ],
+ "type": "Punctuator",
+ "value": "}",
+ },
+ ],
+ "type": "Program",
+}
+`;
diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-private-parameter-properties.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-private-parameter-properties.src.ts.shot
index 7c4a92e3dafc..b4662a489b0b 100644
--- a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-private-parameter-properties.src.ts.shot
+++ b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-private-parameter-properties.src.ts.shot
@@ -37,6 +37,7 @@ Object {
"line": 2,
},
},
+ "override": false,
"range": Array [
14,
201,
diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-property-function.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-property-function.src.ts.shot
index 595df343e1d0..fbf79a0e8592 100644
--- a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-property-function.src.ts.shot
+++ b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-property-function.src.ts.shot
@@ -37,6 +37,7 @@ Object {
"line": 2,
},
},
+ "override": false,
"range": Array [
14,
55,
@@ -220,6 +221,7 @@ Object {
"line": 3,
},
},
+ "override": false,
"range": Array [
58,
83,
diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-property-values.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-property-values.src.ts.shot
index a8ed19456ca1..e9ca7ddbc2ac 100644
--- a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-property-values.src.ts.shot
+++ b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-property-values.src.ts.shot
@@ -37,6 +37,7 @@ Object {
"line": 2,
},
},
+ "override": false,
"range": Array [
14,
20,
@@ -95,6 +96,7 @@ Object {
"line": 3,
},
},
+ "override": false,
"range": Array [
23,
30,
@@ -152,6 +154,7 @@ Object {
"line": 4,
},
},
+ "override": false,
"range": Array [
33,
40,
@@ -209,6 +212,7 @@ Object {
"line": 5,
},
},
+ "override": false,
"range": Array [
43,
50,
@@ -267,6 +271,7 @@ Object {
"line": 6,
},
},
+ "override": false,
"range": Array [
53,
80,
diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-protected-parameter-properties.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-protected-parameter-properties.src.ts.shot
index 346ba40bd7ad..0248c45f7818 100644
--- a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-protected-parameter-properties.src.ts.shot
+++ b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-protected-parameter-properties.src.ts.shot
@@ -37,6 +37,7 @@ Object {
"line": 2,
},
},
+ "override": false,
"range": Array [
14,
209,
diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-public-parameter-properties.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-public-parameter-properties.src.ts.shot
index 260d52aa88ba..bd27cd8449be 100644
--- a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-public-parameter-properties.src.ts.shot
+++ b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-public-parameter-properties.src.ts.shot
@@ -37,6 +37,7 @@ Object {
"line": 2,
},
},
+ "override": false,
"range": Array [
14,
197,
diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-readonly-parameter-properties.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-readonly-parameter-properties.src.ts.shot
index 7e14ba2d579a..a33a42f2d7d5 100644
--- a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-readonly-parameter-properties.src.ts.shot
+++ b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-readonly-parameter-properties.src.ts.shot
@@ -37,6 +37,7 @@ Object {
"line": 2,
},
},
+ "override": false,
"range": Array [
14,
107,
diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-readonly-property.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-readonly-property.src.ts.shot
index 492e45c6ed15..23d24a88952e 100644
--- a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-readonly-property.src.ts.shot
+++ b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-readonly-property.src.ts.shot
@@ -38,6 +38,7 @@ Object {
"line": 2,
},
},
+ "override": false,
"range": Array [
16,
47,
diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-static-parameter-properties.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-static-parameter-properties.src.ts.shot
index 93e74b00c341..41e85e115fc3 100644
--- a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-static-parameter-properties.src.ts.shot
+++ b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-static-parameter-properties.src.ts.shot
@@ -37,6 +37,7 @@ Object {
"line": 2,
},
},
+ "override": false,
"range": Array [
16,
54,
diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-two-methods-computed-constructor.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-two-methods-computed-constructor.src.ts.shot
index f8804948fa08..abf1f5816b2e 100644
--- a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-two-methods-computed-constructor.src.ts.shot
+++ b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-two-methods-computed-constructor.src.ts.shot
@@ -38,6 +38,7 @@ Object {
"line": 2,
},
},
+ "override": false,
"range": Array [
12,
44,
@@ -207,6 +208,7 @@ Object {
"line": 5,
},
},
+ "override": false,
"range": Array [
48,
82,
diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/declare-class-with-optional-method.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/declare-class-with-optional-method.src.ts.shot
index aae22750797f..134b75cb5fe4 100644
--- a/packages/typescript-estree/tests/snapshots/typescript/basics/declare-class-with-optional-method.src.ts.shot
+++ b/packages/typescript-estree/tests/snapshots/typescript/basics/declare-class-with-optional-method.src.ts.shot
@@ -38,6 +38,7 @@ Object {
},
},
"optional": true,
+ "override": false,
"range": Array [
24,
36,
diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/export-default-interface.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/export-default-interface.src.ts.shot
index cfcdd7ad177e..d77785922709 100644
--- a/packages/typescript-estree/tests/snapshots/typescript/basics/export-default-interface.src.ts.shot
+++ b/packages/typescript-estree/tests/snapshots/typescript/basics/export-default-interface.src.ts.shot
@@ -27,6 +27,7 @@ Object {
],
"type": "Identifier",
},
+ "kind": "method",
"loc": Object {
"end": Object {
"column": 18,
diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/interface-with-all-property-types.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/interface-with-all-property-types.src.ts.shot
index af58d87e382b..dece748c4b2d 100644
--- a/packages/typescript-estree/tests/snapshots/typescript/basics/interface-with-all-property-types.src.ts.shot
+++ b/packages/typescript-estree/tests/snapshots/typescript/basics/interface-with-all-property-types.src.ts.shot
@@ -431,6 +431,7 @@ Object {
],
"type": "Identifier",
},
+ "kind": "method",
"loc": Object {
"end": Object {
"column": 16,
@@ -502,6 +503,7 @@ Object {
],
"type": "Identifier",
},
+ "kind": "method",
"loc": Object {
"end": Object {
"column": 24,
@@ -629,6 +631,7 @@ Object {
],
"type": "Identifier",
},
+ "kind": "method",
"loc": Object {
"end": Object {
"column": 26,
@@ -756,6 +759,7 @@ Object {
],
"type": "Identifier",
},
+ "kind": "method",
"loc": Object {
"end": Object {
"column": 26,
diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/interface-with-jsdoc.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/interface-with-jsdoc.src.ts.shot
index c20b0a2d981f..c4299c7644cb 100644
--- a/packages/typescript-estree/tests/snapshots/typescript/basics/interface-with-jsdoc.src.ts.shot
+++ b/packages/typescript-estree/tests/snapshots/typescript/basics/interface-with-jsdoc.src.ts.shot
@@ -26,6 +26,7 @@ Object {
],
"type": "Identifier",
},
+ "kind": "method",
"loc": Object {
"end": Object {
"column": 13,
diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/interface-with-method.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/interface-with-method.src.ts.shot
index 537cc8b236fb..f94e34982985 100644
--- a/packages/typescript-estree/tests/snapshots/typescript/basics/interface-with-method.src.ts.shot
+++ b/packages/typescript-estree/tests/snapshots/typescript/basics/interface-with-method.src.ts.shot
@@ -26,6 +26,7 @@ Object {
],
"type": "Identifier",
},
+ "kind": "method",
"loc": Object {
"end": Object {
"column": 23,
@@ -150,6 +151,7 @@ Object {
],
"type": "Identifier",
},
+ "kind": "method",
"loc": Object {
"end": Object {
"column": 18,
diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/interface-with-optional-properties.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/interface-with-optional-properties.src.ts.shot
index df83385dd287..f0d57792836c 100644
--- a/packages/typescript-estree/tests/snapshots/typescript/basics/interface-with-optional-properties.src.ts.shot
+++ b/packages/typescript-estree/tests/snapshots/typescript/basics/interface-with-optional-properties.src.ts.shot
@@ -143,6 +143,7 @@ Object {
],
"type": "Identifier",
},
+ "kind": "method",
"loc": Object {
"end": Object {
"column": 34,
diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/keyword-variables.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/keyword-variables.src.ts.shot
index 74d752f2a03d..d32cb99e1aab 100644
--- a/packages/typescript-estree/tests/snapshots/typescript/basics/keyword-variables.src.ts.shot
+++ b/packages/typescript-estree/tests/snapshots/typescript/basics/keyword-variables.src.ts.shot
@@ -4085,6 +4085,7 @@ Object {
"line": 71,
},
},
+ "override": false,
"range": Array [
987,
1000,
@@ -4164,6 +4165,7 @@ Object {
"line": 72,
},
},
+ "override": false,
"range": Array [
1003,
1017,
@@ -4243,6 +4245,7 @@ Object {
"line": 73,
},
},
+ "override": false,
"range": Array [
1020,
1033,
@@ -4322,6 +4325,7 @@ Object {
"line": 74,
},
},
+ "override": false,
"range": Array [
1036,
1075,
diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/object-with-escaped-properties.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/object-with-escaped-properties.src.ts.shot
index 1bf761bae134..8ef720aba18d 100644
--- a/packages/typescript-estree/tests/snapshots/typescript/basics/object-with-escaped-properties.src.ts.shot
+++ b/packages/typescript-estree/tests/snapshots/typescript/basics/object-with-escaped-properties.src.ts.shot
@@ -344,6 +344,7 @@ Object {
"line": 7,
},
},
+ "override": false,
"range": Array [
68,
79,
diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/type-assertion-in-interface.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/type-assertion-in-interface.src.ts.shot
index 06266e5337e8..8cbbcfed1d51 100644
--- a/packages/typescript-estree/tests/snapshots/typescript/basics/type-assertion-in-interface.src.ts.shot
+++ b/packages/typescript-estree/tests/snapshots/typescript/basics/type-assertion-in-interface.src.ts.shot
@@ -26,6 +26,7 @@ Object {
],
"type": "Identifier",
},
+ "kind": "method",
"loc": Object {
"end": Object {
"column": 36,
diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/type-assertion-in-method.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/type-assertion-in-method.src.ts.shot
index c48954cc2b5f..d2ee9293ca2e 100644
--- a/packages/typescript-estree/tests/snapshots/typescript/basics/type-assertion-in-method.src.ts.shot
+++ b/packages/typescript-estree/tests/snapshots/typescript/basics/type-assertion-in-method.src.ts.shot
@@ -37,6 +37,7 @@ Object {
"line": 2,
},
},
+ "override": false,
"range": Array [
21,
60,
@@ -187,6 +188,7 @@ Object {
"line": 5,
},
},
+ "override": false,
"range": Array [
63,
108,
diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/type-assertion-with-guard-in-interface.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/type-assertion-with-guard-in-interface.src.ts.shot
index eae142407996..a26782c10731 100644
--- a/packages/typescript-estree/tests/snapshots/typescript/basics/type-assertion-with-guard-in-interface.src.ts.shot
+++ b/packages/typescript-estree/tests/snapshots/typescript/basics/type-assertion-with-guard-in-interface.src.ts.shot
@@ -26,6 +26,7 @@ Object {
],
"type": "Identifier",
},
+ "kind": "method",
"loc": Object {
"end": Object {
"column": 46,
diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/type-assertion-with-guard-in-method.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/type-assertion-with-guard-in-method.src.ts.shot
index 64d58b576c30..e9af3cb75909 100644
--- a/packages/typescript-estree/tests/snapshots/typescript/basics/type-assertion-with-guard-in-method.src.ts.shot
+++ b/packages/typescript-estree/tests/snapshots/typescript/basics/type-assertion-with-guard-in-method.src.ts.shot
@@ -37,6 +37,7 @@ Object {
"line": 2,
},
},
+ "override": false,
"range": Array [
21,
70,
@@ -220,6 +221,7 @@ Object {
"line": 5,
},
},
+ "override": false,
"range": Array [
73,
128,
diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/type-guard-in-interface.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/type-guard-in-interface.src.ts.shot
index ff60f3be6e95..a7723369960b 100644
--- a/packages/typescript-estree/tests/snapshots/typescript/basics/type-guard-in-interface.src.ts.shot
+++ b/packages/typescript-estree/tests/snapshots/typescript/basics/type-guard-in-interface.src.ts.shot
@@ -26,6 +26,7 @@ Object {
],
"type": "Identifier",
},
+ "kind": "method",
"loc": Object {
"end": Object {
"column": 38,
diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/type-guard-in-method.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/type-guard-in-method.src.ts.shot
index d8cef033d200..f97f275b6905 100644
--- a/packages/typescript-estree/tests/snapshots/typescript/basics/type-guard-in-method.src.ts.shot
+++ b/packages/typescript-estree/tests/snapshots/typescript/basics/type-guard-in-method.src.ts.shot
@@ -37,6 +37,7 @@ Object {
"line": 2,
},
},
+ "override": false,
"range": Array [
14,
75,
@@ -272,6 +273,7 @@ Object {
"line": 5,
},
},
+ "override": false,
"range": Array [
78,
145,
diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/type-reference-comments.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/type-reference-comments.src.ts.shot
index 80034787fcbe..4e24a2d0e02a 100644
--- a/packages/typescript-estree/tests/snapshots/typescript/basics/type-reference-comments.src.ts.shot
+++ b/packages/typescript-estree/tests/snapshots/typescript/basics/type-reference-comments.src.ts.shot
@@ -37,6 +37,7 @@ Object {
"line": 2,
},
},
+ "override": false,
"range": Array [
26,
75,
diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/typed-method-signature.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/typed-method-signature.src.ts.shot
index eefbf73554f3..a175d632669d 100644
--- a/packages/typescript-estree/tests/snapshots/typescript/basics/typed-method-signature.src.ts.shot
+++ b/packages/typescript-estree/tests/snapshots/typescript/basics/typed-method-signature.src.ts.shot
@@ -69,6 +69,7 @@ Object {
],
"type": "Identifier",
},
+ "kind": "method",
"loc": Object {
"end": Object {
"column": 23,
@@ -193,6 +194,7 @@ Object {
],
"type": "Identifier",
},
+ "kind": "method",
"loc": Object {
"end": Object {
"column": 18,
diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/typed-this.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/typed-this.src.ts.shot
index 10ab794d02d7..bfd4fd36e9e7 100644
--- a/packages/typescript-estree/tests/snapshots/typescript/basics/typed-this.src.ts.shot
+++ b/packages/typescript-estree/tests/snapshots/typescript/basics/typed-this.src.ts.shot
@@ -26,6 +26,7 @@ Object {
],
"type": "Identifier",
},
+ "kind": "method",
"loc": Object {
"end": Object {
"column": 65,
diff --git a/packages/typescript-estree/tests/snapshots/typescript/decorators/accessor-decorators/accessor-decorator-factory-instance-member.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/decorators/accessor-decorators/accessor-decorator-factory-instance-member.src.ts.shot
index b077180d0075..805be00cc768 100644
--- a/packages/typescript-estree/tests/snapshots/typescript/decorators/accessor-decorators/accessor-decorator-factory-instance-member.src.ts.shot
+++ b/packages/typescript-estree/tests/snapshots/typescript/decorators/accessor-decorators/accessor-decorator-factory-instance-member.src.ts.shot
@@ -113,6 +113,7 @@ Object {
"line": 2,
},
},
+ "override": false,
"range": Array [
18,
70,
diff --git a/packages/typescript-estree/tests/snapshots/typescript/decorators/accessor-decorators/accessor-decorator-factory-static-member.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/decorators/accessor-decorators/accessor-decorator-factory-static-member.src.ts.shot
index a5af5b716047..e977890dec49 100644
--- a/packages/typescript-estree/tests/snapshots/typescript/decorators/accessor-decorators/accessor-decorator-factory-static-member.src.ts.shot
+++ b/packages/typescript-estree/tests/snapshots/typescript/decorators/accessor-decorators/accessor-decorator-factory-static-member.src.ts.shot
@@ -171,6 +171,7 @@ Object {
"line": 2,
},
},
+ "override": false,
"range": Array [
18,
80,
diff --git a/packages/typescript-estree/tests/snapshots/typescript/decorators/accessor-decorators/accessor-decorator-instance-member.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/decorators/accessor-decorators/accessor-decorator-instance-member.src.ts.shot
index 915ef296e492..8eb7ac9e21ce 100644
--- a/packages/typescript-estree/tests/snapshots/typescript/decorators/accessor-decorators/accessor-decorator-instance-member.src.ts.shot
+++ b/packages/typescript-estree/tests/snapshots/typescript/decorators/accessor-decorators/accessor-decorator-instance-member.src.ts.shot
@@ -74,6 +74,7 @@ Object {
"line": 2,
},
},
+ "override": false,
"range": Array [
14,
53,
diff --git a/packages/typescript-estree/tests/snapshots/typescript/decorators/accessor-decorators/accessor-decorator-static-member.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/decorators/accessor-decorators/accessor-decorator-static-member.src.ts.shot
index 495eb8857caa..604fffa67a52 100644
--- a/packages/typescript-estree/tests/snapshots/typescript/decorators/accessor-decorators/accessor-decorator-static-member.src.ts.shot
+++ b/packages/typescript-estree/tests/snapshots/typescript/decorators/accessor-decorators/accessor-decorator-static-member.src.ts.shot
@@ -74,6 +74,7 @@ Object {
"line": 2,
},
},
+ "override": false,
"range": Array [
17,
76,
diff --git a/packages/typescript-estree/tests/snapshots/typescript/decorators/method-decorators/method-decorator-factory-instance-member.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/decorators/method-decorators/method-decorator-factory-instance-member.src.ts.shot
index b61cfff3e6df..108b09f249c5 100644
--- a/packages/typescript-estree/tests/snapshots/typescript/decorators/method-decorators/method-decorator-factory-instance-member.src.ts.shot
+++ b/packages/typescript-estree/tests/snapshots/typescript/decorators/method-decorators/method-decorator-factory-instance-member.src.ts.shot
@@ -113,6 +113,7 @@ Object {
"line": 2,
},
},
+ "override": false,
"range": Array [
14,
54,
diff --git a/packages/typescript-estree/tests/snapshots/typescript/decorators/method-decorators/method-decorator-factory-static-member.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/decorators/method-decorators/method-decorator-factory-static-member.src.ts.shot
index 57042fcf265c..c3429eb4f45a 100644
--- a/packages/typescript-estree/tests/snapshots/typescript/decorators/method-decorators/method-decorator-factory-static-member.src.ts.shot
+++ b/packages/typescript-estree/tests/snapshots/typescript/decorators/method-decorators/method-decorator-factory-static-member.src.ts.shot
@@ -113,6 +113,7 @@ Object {
"line": 2,
},
},
+ "override": false,
"range": Array [
14,
54,
diff --git a/packages/typescript-estree/tests/snapshots/typescript/decorators/method-decorators/method-decorator-instance-member.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/decorators/method-decorators/method-decorator-instance-member.src.ts.shot
index 6aeafa9a643e..c73b273260c6 100644
--- a/packages/typescript-estree/tests/snapshots/typescript/decorators/method-decorators/method-decorator-instance-member.src.ts.shot
+++ b/packages/typescript-estree/tests/snapshots/typescript/decorators/method-decorators/method-decorator-instance-member.src.ts.shot
@@ -74,6 +74,7 @@ Object {
"line": 2,
},
},
+ "override": false,
"range": Array [
14,
47,
diff --git a/packages/typescript-estree/tests/snapshots/typescript/decorators/method-decorators/method-decorator-static-member.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/decorators/method-decorators/method-decorator-static-member.src.ts.shot
index 1d859f1e6fb8..9afc61f6df0a 100644
--- a/packages/typescript-estree/tests/snapshots/typescript/decorators/method-decorators/method-decorator-static-member.src.ts.shot
+++ b/packages/typescript-estree/tests/snapshots/typescript/decorators/method-decorators/method-decorator-static-member.src.ts.shot
@@ -74,6 +74,7 @@ Object {
"line": 2,
},
},
+ "override": false,
"range": Array [
14,
47,
diff --git a/packages/typescript-estree/tests/snapshots/typescript/decorators/parameter-decorators/parameter-array-pattern-decorator.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/decorators/parameter-decorators/parameter-array-pattern-decorator.src.ts.shot
index 77cd44fb8b1a..49db6673b5a6 100644
--- a/packages/typescript-estree/tests/snapshots/typescript/decorators/parameter-decorators/parameter-array-pattern-decorator.src.ts.shot
+++ b/packages/typescript-estree/tests/snapshots/typescript/decorators/parameter-decorators/parameter-array-pattern-decorator.src.ts.shot
@@ -37,6 +37,7 @@ Object {
"line": 2,
},
},
+ "override": false,
"range": Array [
14,
49,
diff --git a/packages/typescript-estree/tests/snapshots/typescript/decorators/parameter-decorators/parameter-decorator-constructor.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/decorators/parameter-decorators/parameter-decorator-constructor.src.ts.shot
index 33b297d36cb5..400c54bbc485 100644
--- a/packages/typescript-estree/tests/snapshots/typescript/decorators/parameter-decorators/parameter-decorator-constructor.src.ts.shot
+++ b/packages/typescript-estree/tests/snapshots/typescript/decorators/parameter-decorators/parameter-decorator-constructor.src.ts.shot
@@ -37,6 +37,7 @@ Object {
"line": 2,
},
},
+ "override": false,
"range": Array [
20,
113,
diff --git a/packages/typescript-estree/tests/snapshots/typescript/decorators/parameter-decorators/parameter-decorator-decorator-instance-member.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/decorators/parameter-decorators/parameter-decorator-decorator-instance-member.src.ts.shot
index 9412305d441b..237d94425218 100644
--- a/packages/typescript-estree/tests/snapshots/typescript/decorators/parameter-decorators/parameter-decorator-decorator-instance-member.src.ts.shot
+++ b/packages/typescript-estree/tests/snapshots/typescript/decorators/parameter-decorators/parameter-decorator-decorator-instance-member.src.ts.shot
@@ -37,6 +37,7 @@ Object {
"line": 2,
},
},
+ "override": false,
"range": Array [
16,
50,
diff --git a/packages/typescript-estree/tests/snapshots/typescript/decorators/parameter-decorators/parameter-decorator-decorator-static-member.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/decorators/parameter-decorators/parameter-decorator-decorator-static-member.src.ts.shot
index eb89d6731f66..6e982f368f31 100644
--- a/packages/typescript-estree/tests/snapshots/typescript/decorators/parameter-decorators/parameter-decorator-decorator-static-member.src.ts.shot
+++ b/packages/typescript-estree/tests/snapshots/typescript/decorators/parameter-decorators/parameter-decorator-decorator-static-member.src.ts.shot
@@ -37,6 +37,7 @@ Object {
"line": 2,
},
},
+ "override": false,
"range": Array [
22,
63,
diff --git a/packages/typescript-estree/tests/snapshots/typescript/decorators/parameter-decorators/parameter-decorator-instance-member.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/decorators/parameter-decorators/parameter-decorator-instance-member.src.ts.shot
index 6fb2cba87e84..9e20b12a0952 100644
--- a/packages/typescript-estree/tests/snapshots/typescript/decorators/parameter-decorators/parameter-decorator-instance-member.src.ts.shot
+++ b/packages/typescript-estree/tests/snapshots/typescript/decorators/parameter-decorators/parameter-decorator-instance-member.src.ts.shot
@@ -37,6 +37,7 @@ Object {
"line": 2,
},
},
+ "override": false,
"range": Array [
20,
95,
diff --git a/packages/typescript-estree/tests/snapshots/typescript/decorators/parameter-decorators/parameter-decorator-static-member.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/decorators/parameter-decorators/parameter-decorator-static-member.src.ts.shot
index 80d5d32e31b8..e12ff3fa8198 100644
--- a/packages/typescript-estree/tests/snapshots/typescript/decorators/parameter-decorators/parameter-decorator-static-member.src.ts.shot
+++ b/packages/typescript-estree/tests/snapshots/typescript/decorators/parameter-decorators/parameter-decorator-static-member.src.ts.shot
@@ -37,6 +37,7 @@ Object {
"line": 2,
},
},
+ "override": false,
"range": Array [
26,
108,
diff --git a/packages/typescript-estree/tests/snapshots/typescript/decorators/parameter-decorators/parameter-object-pattern-decorator.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/decorators/parameter-decorators/parameter-object-pattern-decorator.src.ts.shot
index f2713ac584ba..69ad340de2a9 100644
--- a/packages/typescript-estree/tests/snapshots/typescript/decorators/parameter-decorators/parameter-object-pattern-decorator.src.ts.shot
+++ b/packages/typescript-estree/tests/snapshots/typescript/decorators/parameter-decorators/parameter-object-pattern-decorator.src.ts.shot
@@ -37,6 +37,7 @@ Object {
"line": 2,
},
},
+ "override": false,
"range": Array [
14,
49,
diff --git a/packages/typescript-estree/tests/snapshots/typescript/decorators/parameter-decorators/parameter-rest-element-decorator.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/decorators/parameter-decorators/parameter-rest-element-decorator.src.ts.shot
index 561cb43be3e7..7f77443e46db 100644
--- a/packages/typescript-estree/tests/snapshots/typescript/decorators/parameter-decorators/parameter-rest-element-decorator.src.ts.shot
+++ b/packages/typescript-estree/tests/snapshots/typescript/decorators/parameter-decorators/parameter-rest-element-decorator.src.ts.shot
@@ -37,6 +37,7 @@ Object {
"line": 2,
},
},
+ "override": false,
"range": Array [
14,
48,
diff --git a/packages/typescript-estree/tests/snapshots/typescript/decorators/property-decorators/property-decorator-factory-instance-member.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/decorators/property-decorators/property-decorator-factory-instance-member.src.ts.shot
index 1b372fff159b..792ec79028f0 100644
--- a/packages/typescript-estree/tests/snapshots/typescript/decorators/property-decorators/property-decorator-factory-instance-member.src.ts.shot
+++ b/packages/typescript-estree/tests/snapshots/typescript/decorators/property-decorators/property-decorator-factory-instance-member.src.ts.shot
@@ -93,6 +93,7 @@ Object {
"line": 2,
},
},
+ "override": false,
"range": Array [
26,
40,
@@ -189,6 +190,7 @@ Object {
"line": 3,
},
},
+ "override": false,
"range": Array [
45,
86,
diff --git a/packages/typescript-estree/tests/snapshots/typescript/decorators/property-decorators/property-decorator-factory-static-member.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/decorators/property-decorators/property-decorator-factory-static-member.src.ts.shot
index 6b252b1c09d2..616d39ed3670 100644
--- a/packages/typescript-estree/tests/snapshots/typescript/decorators/property-decorators/property-decorator-factory-static-member.src.ts.shot
+++ b/packages/typescript-estree/tests/snapshots/typescript/decorators/property-decorators/property-decorator-factory-static-member.src.ts.shot
@@ -113,6 +113,7 @@ Object {
"line": 2,
},
},
+ "override": false,
"range": Array [
14,
47,
@@ -229,6 +230,7 @@ Object {
"line": 4,
},
},
+ "override": false,
"range": Array [
53,
91,
diff --git a/packages/typescript-estree/tests/snapshots/typescript/decorators/property-decorators/property-decorator-instance-member.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/decorators/property-decorators/property-decorator-instance-member.src.ts.shot
index ba40f39773e9..7ba24aa3ef5d 100644
--- a/packages/typescript-estree/tests/snapshots/typescript/decorators/property-decorators/property-decorator-instance-member.src.ts.shot
+++ b/packages/typescript-estree/tests/snapshots/typescript/decorators/property-decorators/property-decorator-instance-member.src.ts.shot
@@ -74,6 +74,7 @@ Object {
"line": 2,
},
},
+ "override": false,
"range": Array [
14,
21,
@@ -151,6 +152,7 @@ Object {
"line": 3,
},
},
+ "override": false,
"range": Array [
26,
37,
diff --git a/packages/typescript-estree/tests/snapshots/typescript/decorators/property-decorators/property-decorator-static-member.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/decorators/property-decorators/property-decorator-static-member.src.ts.shot
index 5a73d6a5bb2e..9e4706080cd7 100644
--- a/packages/typescript-estree/tests/snapshots/typescript/decorators/property-decorators/property-decorator-static-member.src.ts.shot
+++ b/packages/typescript-estree/tests/snapshots/typescript/decorators/property-decorators/property-decorator-static-member.src.ts.shot
@@ -74,6 +74,7 @@ Object {
"line": 2,
},
},
+ "override": false,
"range": Array [
14,
28,
@@ -151,6 +152,7 @@ Object {
"line": 3,
},
},
+ "override": false,
"range": Array [
33,
51,
diff --git a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/empty-type-parameters-in-constructor.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/empty-type-parameters-in-constructor.src.ts.shot
index 772f87aee45b..235dee9fe7c3 100644
--- a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/empty-type-parameters-in-constructor.src.ts.shot
+++ b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/empty-type-parameters-in-constructor.src.ts.shot
@@ -37,6 +37,7 @@ Object {
"line": 2,
},
},
+ "override": false,
"range": Array [
14,
32,
diff --git a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/empty-type-parameters-in-method-signature.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/empty-type-parameters-in-method-signature.src.ts.shot
index 471b29c33cd9..bb110cf05755 100644
--- a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/empty-type-parameters-in-method-signature.src.ts.shot
+++ b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/empty-type-parameters-in-method-signature.src.ts.shot
@@ -26,6 +26,7 @@ Object {
],
"type": "Identifier",
},
+ "kind": "method",
"loc": Object {
"end": Object {
"column": 11,
diff --git a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/empty-type-parameters-in-method.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/empty-type-parameters-in-method.src.ts.shot
index 0a3526674416..3233906e5cc4 100644
--- a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/empty-type-parameters-in-method.src.ts.shot
+++ b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/empty-type-parameters-in-method.src.ts.shot
@@ -37,6 +37,7 @@ Object {
"line": 2,
},
},
+ "override": false,
"range": Array [
14,
25,
diff --git a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/enum-with-keywords.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/enum-with-keywords.src.ts.shot
index 2a93eb27f3d4..8eb4625590f3 100644
--- a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/enum-with-keywords.src.ts.shot
+++ b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/enum-with-keywords.src.ts.shot
@@ -50,7 +50,6 @@ Object {
7,
14,
],
- "transformFlags": 1,
"type": "TSPrivateKeyword",
},
Object {
@@ -68,7 +67,6 @@ Object {
15,
21,
],
- "transformFlags": 1,
"type": "TSPublicKeyword",
},
Object {
@@ -86,7 +84,6 @@ Object {
22,
31,
],
- "transformFlags": 1,
"type": "TSProtectedKeyword",
},
Object {
@@ -104,7 +101,6 @@ Object {
32,
38,
],
- "transformFlags": 256,
"type": "TSStaticKeyword",
},
Object {
@@ -122,7 +118,6 @@ Object {
39,
47,
],
- "transformFlags": 1,
"type": "TSReadonlyKeyword",
},
Object {
@@ -157,7 +152,6 @@ Object {
57,
62,
],
- "transformFlags": 96,
"type": "TSAsyncKeyword",
},
],
diff --git a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-method-export.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-method-export.src.ts.shot
index 2827b9747e8e..49552e632b94 100644
--- a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-method-export.src.ts.shot
+++ b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-method-export.src.ts.shot
@@ -27,6 +27,7 @@ Object {
],
"type": "Identifier",
},
+ "kind": "method",
"loc": Object {
"end": Object {
"column": 32,
diff --git a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-method-private.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-method-private.src.ts.shot
index 6c4af2099000..0b2fc02bfd56 100644
--- a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-method-private.src.ts.shot
+++ b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-method-private.src.ts.shot
@@ -27,6 +27,7 @@ Object {
],
"type": "Identifier",
},
+ "kind": "method",
"loc": Object {
"end": Object {
"column": 33,
diff --git a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-method-protected.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-method-protected.src.ts.shot
index e5159f9940b8..1826aeadf4e4 100644
--- a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-method-protected.src.ts.shot
+++ b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-method-protected.src.ts.shot
@@ -27,6 +27,7 @@ Object {
],
"type": "Identifier",
},
+ "kind": "method",
"loc": Object {
"end": Object {
"column": 33,
diff --git a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-method-public.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-method-public.src.ts.shot
index 5a2b17449608..114bd1a78112 100644
--- a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-method-public.src.ts.shot
+++ b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-method-public.src.ts.shot
@@ -27,6 +27,7 @@ Object {
],
"type": "Identifier",
},
+ "kind": "method",
"loc": Object {
"end": Object {
"column": 32,
diff --git a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-method-readonly.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-method-readonly.src.ts.shot
index 521a3a4bcdc4..e1a82d8ecdaa 100644
--- a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-method-readonly.src.ts.shot
+++ b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-method-readonly.src.ts.shot
@@ -26,6 +26,7 @@ Object {
],
"type": "Identifier",
},
+ "kind": "method",
"loc": Object {
"end": Object {
"column": 32,
diff --git a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-method-static.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-method-static.src.ts.shot
index bdb4baa843a2..8aab33054a95 100644
--- a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-method-static.src.ts.shot
+++ b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-method-static.src.ts.shot
@@ -26,6 +26,7 @@ Object {
],
"type": "Identifier",
},
+ "kind": "method",
"loc": Object {
"end": Object {
"column": 30,
diff --git a/packages/typescript-estree/tests/snapshots/typescript/namespaces-and-modules/module-with-default-exports.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/namespaces-and-modules/module-with-default-exports.src.ts.shot
index ccacf0893b45..70ff82a2ec71 100644
--- a/packages/typescript-estree/tests/snapshots/typescript/namespaces-and-modules/module-with-default-exports.src.ts.shot
+++ b/packages/typescript-estree/tests/snapshots/typescript/namespaces-and-modules/module-with-default-exports.src.ts.shot
@@ -41,6 +41,7 @@ Object {
"line": 3,
},
},
+ "override": false,
"range": Array [
52,
66,
diff --git a/packages/typescript-estree/tests/snapshots/typescript/namespaces-and-modules/nested-internal-module.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/namespaces-and-modules/nested-internal-module.src.ts.shot
index bd714fb2431e..32b6bf5d3bdf 100644
--- a/packages/typescript-estree/tests/snapshots/typescript/namespaces-and-modules/nested-internal-module.src.ts.shot
+++ b/packages/typescript-estree/tests/snapshots/typescript/namespaces-and-modules/nested-internal-module.src.ts.shot
@@ -135,6 +135,7 @@ Object {
"line": 5,
},
},
+ "override": false,
"range": Array [
78,
129,
diff --git a/packages/typescript-estree/tests/snapshots/typescript/types/interface-with-accessors.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/types/interface-with-accessors.src.ts.shot
new file mode 100644
index 000000000000..02601964ea1b
--- /dev/null
+++ b/packages/typescript-estree/tests/snapshots/typescript/types/interface-with-accessors.src.ts.shot
@@ -0,0 +1,711 @@
+// Jest Snapshot v1, https://goo.gl/fbAQLP
+
+exports[`typescript types interface-with-accessors.src 1`] = `
+Object {
+ "body": Array [
+ Object {
+ "body": Object {
+ "body": Array [
+ Object {
+ "computed": false,
+ "key": Object {
+ "loc": Object {
+ "end": Object {
+ "column": 10,
+ "line": 2,
+ },
+ "start": Object {
+ "column": 6,
+ "line": 2,
+ },
+ },
+ "name": "size",
+ "range": Array [
+ 24,
+ 28,
+ ],
+ "type": "Identifier",
+ },
+ "kind": "get",
+ "loc": Object {
+ "end": Object {
+ "column": 21,
+ "line": 2,
+ },
+ "start": Object {
+ "column": 2,
+ "line": 2,
+ },
+ },
+ "params": Array [],
+ "range": Array [
+ 20,
+ 39,
+ ],
+ "returnType": Object {
+ "loc": Object {
+ "end": Object {
+ "column": 20,
+ "line": 2,
+ },
+ "start": Object {
+ "column": 12,
+ "line": 2,
+ },
+ },
+ "range": Array [
+ 30,
+ 38,
+ ],
+ "type": "TSTypeAnnotation",
+ "typeAnnotation": Object {
+ "loc": Object {
+ "end": Object {
+ "column": 20,
+ "line": 2,
+ },
+ "start": Object {
+ "column": 14,
+ "line": 2,
+ },
+ },
+ "range": Array [
+ 32,
+ 38,
+ ],
+ "type": "TSNumberKeyword",
+ },
+ },
+ "type": "TSMethodSignature",
+ },
+ Object {
+ "computed": false,
+ "key": Object {
+ "loc": Object {
+ "end": Object {
+ "column": 10,
+ "line": 3,
+ },
+ "start": Object {
+ "column": 6,
+ "line": 3,
+ },
+ },
+ "name": "size",
+ "range": Array [
+ 46,
+ 50,
+ ],
+ "type": "Identifier",
+ },
+ "kind": "set",
+ "loc": Object {
+ "end": Object {
+ "column": 45,
+ "line": 3,
+ },
+ "start": Object {
+ "column": 2,
+ "line": 3,
+ },
+ },
+ "params": Array [
+ Object {
+ "loc": Object {
+ "end": Object {
+ "column": 43,
+ "line": 3,
+ },
+ "start": Object {
+ "column": 11,
+ "line": 3,
+ },
+ },
+ "name": "value",
+ "range": Array [
+ 51,
+ 83,
+ ],
+ "type": "Identifier",
+ "typeAnnotation": Object {
+ "loc": Object {
+ "end": Object {
+ "column": 43,
+ "line": 3,
+ },
+ "start": Object {
+ "column": 16,
+ "line": 3,
+ },
+ },
+ "range": Array [
+ 56,
+ 83,
+ ],
+ "type": "TSTypeAnnotation",
+ "typeAnnotation": Object {
+ "loc": Object {
+ "end": Object {
+ "column": 43,
+ "line": 3,
+ },
+ "start": Object {
+ "column": 18,
+ "line": 3,
+ },
+ },
+ "range": Array [
+ 58,
+ 83,
+ ],
+ "type": "TSUnionType",
+ "types": Array [
+ Object {
+ "loc": Object {
+ "end": Object {
+ "column": 24,
+ "line": 3,
+ },
+ "start": Object {
+ "column": 18,
+ "line": 3,
+ },
+ },
+ "range": Array [
+ 58,
+ 64,
+ ],
+ "type": "TSNumberKeyword",
+ },
+ Object {
+ "loc": Object {
+ "end": Object {
+ "column": 33,
+ "line": 3,
+ },
+ "start": Object {
+ "column": 27,
+ "line": 3,
+ },
+ },
+ "range": Array [
+ 67,
+ 73,
+ ],
+ "type": "TSStringKeyword",
+ },
+ Object {
+ "loc": Object {
+ "end": Object {
+ "column": 43,
+ "line": 3,
+ },
+ "start": Object {
+ "column": 36,
+ "line": 3,
+ },
+ },
+ "range": Array [
+ 76,
+ 83,
+ ],
+ "type": "TSBooleanKeyword",
+ },
+ ],
+ },
+ },
+ },
+ ],
+ "range": Array [
+ 42,
+ 85,
+ ],
+ "type": "TSMethodSignature",
+ },
+ ],
+ "loc": Object {
+ "end": Object {
+ "column": 1,
+ "line": 4,
+ },
+ "start": Object {
+ "column": 16,
+ "line": 1,
+ },
+ },
+ "range": Array [
+ 16,
+ 87,
+ ],
+ "type": "TSInterfaceBody",
+ },
+ "id": Object {
+ "loc": Object {
+ "end": Object {
+ "column": 15,
+ "line": 1,
+ },
+ "start": Object {
+ "column": 10,
+ "line": 1,
+ },
+ },
+ "name": "Thing",
+ "range": Array [
+ 10,
+ 15,
+ ],
+ "type": "Identifier",
+ },
+ "loc": Object {
+ "end": Object {
+ "column": 1,
+ "line": 4,
+ },
+ "start": Object {
+ "column": 0,
+ "line": 1,
+ },
+ },
+ "range": Array [
+ 0,
+ 87,
+ ],
+ "type": "TSInterfaceDeclaration",
+ },
+ ],
+ "comments": Array [],
+ "loc": Object {
+ "end": Object {
+ "column": 0,
+ "line": 5,
+ },
+ "start": Object {
+ "column": 0,
+ "line": 1,
+ },
+ },
+ "range": Array [
+ 0,
+ 88,
+ ],
+ "sourceType": "script",
+ "tokens": Array [
+ Object {
+ "loc": Object {
+ "end": Object {
+ "column": 9,
+ "line": 1,
+ },
+ "start": Object {
+ "column": 0,
+ "line": 1,
+ },
+ },
+ "range": Array [
+ 0,
+ 9,
+ ],
+ "type": "Keyword",
+ "value": "interface",
+ },
+ Object {
+ "loc": Object {
+ "end": Object {
+ "column": 15,
+ "line": 1,
+ },
+ "start": Object {
+ "column": 10,
+ "line": 1,
+ },
+ },
+ "range": Array [
+ 10,
+ 15,
+ ],
+ "type": "Identifier",
+ "value": "Thing",
+ },
+ Object {
+ "loc": Object {
+ "end": Object {
+ "column": 17,
+ "line": 1,
+ },
+ "start": Object {
+ "column": 16,
+ "line": 1,
+ },
+ },
+ "range": Array [
+ 16,
+ 17,
+ ],
+ "type": "Punctuator",
+ "value": "{",
+ },
+ Object {
+ "loc": Object {
+ "end": Object {
+ "column": 5,
+ "line": 2,
+ },
+ "start": Object {
+ "column": 2,
+ "line": 2,
+ },
+ },
+ "range": Array [
+ 20,
+ 23,
+ ],
+ "type": "Identifier",
+ "value": "get",
+ },
+ Object {
+ "loc": Object {
+ "end": Object {
+ "column": 10,
+ "line": 2,
+ },
+ "start": Object {
+ "column": 6,
+ "line": 2,
+ },
+ },
+ "range": Array [
+ 24,
+ 28,
+ ],
+ "type": "Identifier",
+ "value": "size",
+ },
+ Object {
+ "loc": Object {
+ "end": Object {
+ "column": 11,
+ "line": 2,
+ },
+ "start": Object {
+ "column": 10,
+ "line": 2,
+ },
+ },
+ "range": Array [
+ 28,
+ 29,
+ ],
+ "type": "Punctuator",
+ "value": "(",
+ },
+ Object {
+ "loc": Object {
+ "end": Object {
+ "column": 12,
+ "line": 2,
+ },
+ "start": Object {
+ "column": 11,
+ "line": 2,
+ },
+ },
+ "range": Array [
+ 29,
+ 30,
+ ],
+ "type": "Punctuator",
+ "value": ")",
+ },
+ Object {
+ "loc": Object {
+ "end": Object {
+ "column": 13,
+ "line": 2,
+ },
+ "start": Object {
+ "column": 12,
+ "line": 2,
+ },
+ },
+ "range": Array [
+ 30,
+ 31,
+ ],
+ "type": "Punctuator",
+ "value": ":",
+ },
+ Object {
+ "loc": Object {
+ "end": Object {
+ "column": 20,
+ "line": 2,
+ },
+ "start": Object {
+ "column": 14,
+ "line": 2,
+ },
+ },
+ "range": Array [
+ 32,
+ 38,
+ ],
+ "type": "Identifier",
+ "value": "number",
+ },
+ Object {
+ "loc": Object {
+ "end": Object {
+ "column": 21,
+ "line": 2,
+ },
+ "start": Object {
+ "column": 20,
+ "line": 2,
+ },
+ },
+ "range": Array [
+ 38,
+ 39,
+ ],
+ "type": "Punctuator",
+ "value": ";",
+ },
+ Object {
+ "loc": Object {
+ "end": Object {
+ "column": 5,
+ "line": 3,
+ },
+ "start": Object {
+ "column": 2,
+ "line": 3,
+ },
+ },
+ "range": Array [
+ 42,
+ 45,
+ ],
+ "type": "Identifier",
+ "value": "set",
+ },
+ Object {
+ "loc": Object {
+ "end": Object {
+ "column": 10,
+ "line": 3,
+ },
+ "start": Object {
+ "column": 6,
+ "line": 3,
+ },
+ },
+ "range": Array [
+ 46,
+ 50,
+ ],
+ "type": "Identifier",
+ "value": "size",
+ },
+ Object {
+ "loc": Object {
+ "end": Object {
+ "column": 11,
+ "line": 3,
+ },
+ "start": Object {
+ "column": 10,
+ "line": 3,
+ },
+ },
+ "range": Array [
+ 50,
+ 51,
+ ],
+ "type": "Punctuator",
+ "value": "(",
+ },
+ Object {
+ "loc": Object {
+ "end": Object {
+ "column": 16,
+ "line": 3,
+ },
+ "start": Object {
+ "column": 11,
+ "line": 3,
+ },
+ },
+ "range": Array [
+ 51,
+ 56,
+ ],
+ "type": "Identifier",
+ "value": "value",
+ },
+ Object {
+ "loc": Object {
+ "end": Object {
+ "column": 17,
+ "line": 3,
+ },
+ "start": Object {
+ "column": 16,
+ "line": 3,
+ },
+ },
+ "range": Array [
+ 56,
+ 57,
+ ],
+ "type": "Punctuator",
+ "value": ":",
+ },
+ Object {
+ "loc": Object {
+ "end": Object {
+ "column": 24,
+ "line": 3,
+ },
+ "start": Object {
+ "column": 18,
+ "line": 3,
+ },
+ },
+ "range": Array [
+ 58,
+ 64,
+ ],
+ "type": "Identifier",
+ "value": "number",
+ },
+ Object {
+ "loc": Object {
+ "end": Object {
+ "column": 26,
+ "line": 3,
+ },
+ "start": Object {
+ "column": 25,
+ "line": 3,
+ },
+ },
+ "range": Array [
+ 65,
+ 66,
+ ],
+ "type": "Punctuator",
+ "value": "|",
+ },
+ Object {
+ "loc": Object {
+ "end": Object {
+ "column": 33,
+ "line": 3,
+ },
+ "start": Object {
+ "column": 27,
+ "line": 3,
+ },
+ },
+ "range": Array [
+ 67,
+ 73,
+ ],
+ "type": "Identifier",
+ "value": "string",
+ },
+ Object {
+ "loc": Object {
+ "end": Object {
+ "column": 35,
+ "line": 3,
+ },
+ "start": Object {
+ "column": 34,
+ "line": 3,
+ },
+ },
+ "range": Array [
+ 74,
+ 75,
+ ],
+ "type": "Punctuator",
+ "value": "|",
+ },
+ Object {
+ "loc": Object {
+ "end": Object {
+ "column": 43,
+ "line": 3,
+ },
+ "start": Object {
+ "column": 36,
+ "line": 3,
+ },
+ },
+ "range": Array [
+ 76,
+ 83,
+ ],
+ "type": "Identifier",
+ "value": "boolean",
+ },
+ Object {
+ "loc": Object {
+ "end": Object {
+ "column": 44,
+ "line": 3,
+ },
+ "start": Object {
+ "column": 43,
+ "line": 3,
+ },
+ },
+ "range": Array [
+ 83,
+ 84,
+ ],
+ "type": "Punctuator",
+ "value": ")",
+ },
+ Object {
+ "loc": Object {
+ "end": Object {
+ "column": 45,
+ "line": 3,
+ },
+ "start": Object {
+ "column": 44,
+ "line": 3,
+ },
+ },
+ "range": Array [
+ 84,
+ 85,
+ ],
+ "type": "Punctuator",
+ "value": ";",
+ },
+ Object {
+ "loc": Object {
+ "end": Object {
+ "column": 1,
+ "line": 4,
+ },
+ "start": Object {
+ "column": 0,
+ "line": 4,
+ },
+ },
+ "range": Array [
+ 86,
+ 87,
+ ],
+ "type": "Punctuator",
+ "value": "}",
+ },
+ ],
+ "type": "Program",
+}
+`;
diff --git a/packages/typescript-estree/tests/snapshots/typescript/types/object-literal-type-with-accessors.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/types/object-literal-type-with-accessors.src.ts.shot
new file mode 100644
index 000000000000..df6ae88ba5d2
--- /dev/null
+++ b/packages/typescript-estree/tests/snapshots/typescript/types/object-literal-type-with-accessors.src.ts.shot
@@ -0,0 +1,747 @@
+// Jest Snapshot v1, https://goo.gl/fbAQLP
+
+exports[`typescript types object-literal-type-with-accessors.src 1`] = `
+Object {
+ "body": Array [
+ Object {
+ "id": Object {
+ "loc": Object {
+ "end": Object {
+ "column": 10,
+ "line": 1,
+ },
+ "start": Object {
+ "column": 5,
+ "line": 1,
+ },
+ },
+ "name": "Thing",
+ "range": Array [
+ 5,
+ 10,
+ ],
+ "type": "Identifier",
+ },
+ "loc": Object {
+ "end": Object {
+ "column": 2,
+ "line": 4,
+ },
+ "start": Object {
+ "column": 0,
+ "line": 1,
+ },
+ },
+ "range": Array [
+ 0,
+ 85,
+ ],
+ "type": "TSTypeAliasDeclaration",
+ "typeAnnotation": Object {
+ "loc": Object {
+ "end": Object {
+ "column": 1,
+ "line": 4,
+ },
+ "start": Object {
+ "column": 13,
+ "line": 1,
+ },
+ },
+ "members": Array [
+ Object {
+ "computed": false,
+ "key": Object {
+ "loc": Object {
+ "end": Object {
+ "column": 10,
+ "line": 2,
+ },
+ "start": Object {
+ "column": 6,
+ "line": 2,
+ },
+ },
+ "name": "size",
+ "range": Array [
+ 21,
+ 25,
+ ],
+ "type": "Identifier",
+ },
+ "kind": "get",
+ "loc": Object {
+ "end": Object {
+ "column": 21,
+ "line": 2,
+ },
+ "start": Object {
+ "column": 2,
+ "line": 2,
+ },
+ },
+ "params": Array [],
+ "range": Array [
+ 17,
+ 36,
+ ],
+ "returnType": Object {
+ "loc": Object {
+ "end": Object {
+ "column": 20,
+ "line": 2,
+ },
+ "start": Object {
+ "column": 12,
+ "line": 2,
+ },
+ },
+ "range": Array [
+ 27,
+ 35,
+ ],
+ "type": "TSTypeAnnotation",
+ "typeAnnotation": Object {
+ "loc": Object {
+ "end": Object {
+ "column": 20,
+ "line": 2,
+ },
+ "start": Object {
+ "column": 14,
+ "line": 2,
+ },
+ },
+ "range": Array [
+ 29,
+ 35,
+ ],
+ "type": "TSNumberKeyword",
+ },
+ },
+ "type": "TSMethodSignature",
+ },
+ Object {
+ "computed": false,
+ "key": Object {
+ "loc": Object {
+ "end": Object {
+ "column": 10,
+ "line": 3,
+ },
+ "start": Object {
+ "column": 6,
+ "line": 3,
+ },
+ },
+ "name": "size",
+ "range": Array [
+ 43,
+ 47,
+ ],
+ "type": "Identifier",
+ },
+ "kind": "set",
+ "loc": Object {
+ "end": Object {
+ "column": 45,
+ "line": 3,
+ },
+ "start": Object {
+ "column": 2,
+ "line": 3,
+ },
+ },
+ "params": Array [
+ Object {
+ "loc": Object {
+ "end": Object {
+ "column": 43,
+ "line": 3,
+ },
+ "start": Object {
+ "column": 11,
+ "line": 3,
+ },
+ },
+ "name": "value",
+ "range": Array [
+ 48,
+ 80,
+ ],
+ "type": "Identifier",
+ "typeAnnotation": Object {
+ "loc": Object {
+ "end": Object {
+ "column": 43,
+ "line": 3,
+ },
+ "start": Object {
+ "column": 16,
+ "line": 3,
+ },
+ },
+ "range": Array [
+ 53,
+ 80,
+ ],
+ "type": "TSTypeAnnotation",
+ "typeAnnotation": Object {
+ "loc": Object {
+ "end": Object {
+ "column": 43,
+ "line": 3,
+ },
+ "start": Object {
+ "column": 18,
+ "line": 3,
+ },
+ },
+ "range": Array [
+ 55,
+ 80,
+ ],
+ "type": "TSUnionType",
+ "types": Array [
+ Object {
+ "loc": Object {
+ "end": Object {
+ "column": 24,
+ "line": 3,
+ },
+ "start": Object {
+ "column": 18,
+ "line": 3,
+ },
+ },
+ "range": Array [
+ 55,
+ 61,
+ ],
+ "type": "TSNumberKeyword",
+ },
+ Object {
+ "loc": Object {
+ "end": Object {
+ "column": 33,
+ "line": 3,
+ },
+ "start": Object {
+ "column": 27,
+ "line": 3,
+ },
+ },
+ "range": Array [
+ 64,
+ 70,
+ ],
+ "type": "TSStringKeyword",
+ },
+ Object {
+ "loc": Object {
+ "end": Object {
+ "column": 43,
+ "line": 3,
+ },
+ "start": Object {
+ "column": 36,
+ "line": 3,
+ },
+ },
+ "range": Array [
+ 73,
+ 80,
+ ],
+ "type": "TSBooleanKeyword",
+ },
+ ],
+ },
+ },
+ },
+ ],
+ "range": Array [
+ 39,
+ 82,
+ ],
+ "type": "TSMethodSignature",
+ },
+ ],
+ "range": Array [
+ 13,
+ 84,
+ ],
+ "type": "TSTypeLiteral",
+ },
+ },
+ ],
+ "comments": Array [],
+ "loc": Object {
+ "end": Object {
+ "column": 0,
+ "line": 5,
+ },
+ "start": Object {
+ "column": 0,
+ "line": 1,
+ },
+ },
+ "range": Array [
+ 0,
+ 86,
+ ],
+ "sourceType": "script",
+ "tokens": Array [
+ Object {
+ "loc": Object {
+ "end": Object {
+ "column": 4,
+ "line": 1,
+ },
+ "start": Object {
+ "column": 0,
+ "line": 1,
+ },
+ },
+ "range": Array [
+ 0,
+ 4,
+ ],
+ "type": "Identifier",
+ "value": "type",
+ },
+ Object {
+ "loc": Object {
+ "end": Object {
+ "column": 10,
+ "line": 1,
+ },
+ "start": Object {
+ "column": 5,
+ "line": 1,
+ },
+ },
+ "range": Array [
+ 5,
+ 10,
+ ],
+ "type": "Identifier",
+ "value": "Thing",
+ },
+ Object {
+ "loc": Object {
+ "end": Object {
+ "column": 12,
+ "line": 1,
+ },
+ "start": Object {
+ "column": 11,
+ "line": 1,
+ },
+ },
+ "range": Array [
+ 11,
+ 12,
+ ],
+ "type": "Punctuator",
+ "value": "=",
+ },
+ Object {
+ "loc": Object {
+ "end": Object {
+ "column": 14,
+ "line": 1,
+ },
+ "start": Object {
+ "column": 13,
+ "line": 1,
+ },
+ },
+ "range": Array [
+ 13,
+ 14,
+ ],
+ "type": "Punctuator",
+ "value": "{",
+ },
+ Object {
+ "loc": Object {
+ "end": Object {
+ "column": 5,
+ "line": 2,
+ },
+ "start": Object {
+ "column": 2,
+ "line": 2,
+ },
+ },
+ "range": Array [
+ 17,
+ 20,
+ ],
+ "type": "Identifier",
+ "value": "get",
+ },
+ Object {
+ "loc": Object {
+ "end": Object {
+ "column": 10,
+ "line": 2,
+ },
+ "start": Object {
+ "column": 6,
+ "line": 2,
+ },
+ },
+ "range": Array [
+ 21,
+ 25,
+ ],
+ "type": "Identifier",
+ "value": "size",
+ },
+ Object {
+ "loc": Object {
+ "end": Object {
+ "column": 11,
+ "line": 2,
+ },
+ "start": Object {
+ "column": 10,
+ "line": 2,
+ },
+ },
+ "range": Array [
+ 25,
+ 26,
+ ],
+ "type": "Punctuator",
+ "value": "(",
+ },
+ Object {
+ "loc": Object {
+ "end": Object {
+ "column": 12,
+ "line": 2,
+ },
+ "start": Object {
+ "column": 11,
+ "line": 2,
+ },
+ },
+ "range": Array [
+ 26,
+ 27,
+ ],
+ "type": "Punctuator",
+ "value": ")",
+ },
+ Object {
+ "loc": Object {
+ "end": Object {
+ "column": 13,
+ "line": 2,
+ },
+ "start": Object {
+ "column": 12,
+ "line": 2,
+ },
+ },
+ "range": Array [
+ 27,
+ 28,
+ ],
+ "type": "Punctuator",
+ "value": ":",
+ },
+ Object {
+ "loc": Object {
+ "end": Object {
+ "column": 20,
+ "line": 2,
+ },
+ "start": Object {
+ "column": 14,
+ "line": 2,
+ },
+ },
+ "range": Array [
+ 29,
+ 35,
+ ],
+ "type": "Identifier",
+ "value": "number",
+ },
+ Object {
+ "loc": Object {
+ "end": Object {
+ "column": 21,
+ "line": 2,
+ },
+ "start": Object {
+ "column": 20,
+ "line": 2,
+ },
+ },
+ "range": Array [
+ 35,
+ 36,
+ ],
+ "type": "Punctuator",
+ "value": ";",
+ },
+ Object {
+ "loc": Object {
+ "end": Object {
+ "column": 5,
+ "line": 3,
+ },
+ "start": Object {
+ "column": 2,
+ "line": 3,
+ },
+ },
+ "range": Array [
+ 39,
+ 42,
+ ],
+ "type": "Identifier",
+ "value": "set",
+ },
+ Object {
+ "loc": Object {
+ "end": Object {
+ "column": 10,
+ "line": 3,
+ },
+ "start": Object {
+ "column": 6,
+ "line": 3,
+ },
+ },
+ "range": Array [
+ 43,
+ 47,
+ ],
+ "type": "Identifier",
+ "value": "size",
+ },
+ Object {
+ "loc": Object {
+ "end": Object {
+ "column": 11,
+ "line": 3,
+ },
+ "start": Object {
+ "column": 10,
+ "line": 3,
+ },
+ },
+ "range": Array [
+ 47,
+ 48,
+ ],
+ "type": "Punctuator",
+ "value": "(",
+ },
+ Object {
+ "loc": Object {
+ "end": Object {
+ "column": 16,
+ "line": 3,
+ },
+ "start": Object {
+ "column": 11,
+ "line": 3,
+ },
+ },
+ "range": Array [
+ 48,
+ 53,
+ ],
+ "type": "Identifier",
+ "value": "value",
+ },
+ Object {
+ "loc": Object {
+ "end": Object {
+ "column": 17,
+ "line": 3,
+ },
+ "start": Object {
+ "column": 16,
+ "line": 3,
+ },
+ },
+ "range": Array [
+ 53,
+ 54,
+ ],
+ "type": "Punctuator",
+ "value": ":",
+ },
+ Object {
+ "loc": Object {
+ "end": Object {
+ "column": 24,
+ "line": 3,
+ },
+ "start": Object {
+ "column": 18,
+ "line": 3,
+ },
+ },
+ "range": Array [
+ 55,
+ 61,
+ ],
+ "type": "Identifier",
+ "value": "number",
+ },
+ Object {
+ "loc": Object {
+ "end": Object {
+ "column": 26,
+ "line": 3,
+ },
+ "start": Object {
+ "column": 25,
+ "line": 3,
+ },
+ },
+ "range": Array [
+ 62,
+ 63,
+ ],
+ "type": "Punctuator",
+ "value": "|",
+ },
+ Object {
+ "loc": Object {
+ "end": Object {
+ "column": 33,
+ "line": 3,
+ },
+ "start": Object {
+ "column": 27,
+ "line": 3,
+ },
+ },
+ "range": Array [
+ 64,
+ 70,
+ ],
+ "type": "Identifier",
+ "value": "string",
+ },
+ Object {
+ "loc": Object {
+ "end": Object {
+ "column": 35,
+ "line": 3,
+ },
+ "start": Object {
+ "column": 34,
+ "line": 3,
+ },
+ },
+ "range": Array [
+ 71,
+ 72,
+ ],
+ "type": "Punctuator",
+ "value": "|",
+ },
+ Object {
+ "loc": Object {
+ "end": Object {
+ "column": 43,
+ "line": 3,
+ },
+ "start": Object {
+ "column": 36,
+ "line": 3,
+ },
+ },
+ "range": Array [
+ 73,
+ 80,
+ ],
+ "type": "Identifier",
+ "value": "boolean",
+ },
+ Object {
+ "loc": Object {
+ "end": Object {
+ "column": 44,
+ "line": 3,
+ },
+ "start": Object {
+ "column": 43,
+ "line": 3,
+ },
+ },
+ "range": Array [
+ 80,
+ 81,
+ ],
+ "type": "Punctuator",
+ "value": ")",
+ },
+ Object {
+ "loc": Object {
+ "end": Object {
+ "column": 45,
+ "line": 3,
+ },
+ "start": Object {
+ "column": 44,
+ "line": 3,
+ },
+ },
+ "range": Array [
+ 81,
+ 82,
+ ],
+ "type": "Punctuator",
+ "value": ";",
+ },
+ Object {
+ "loc": Object {
+ "end": Object {
+ "column": 1,
+ "line": 4,
+ },
+ "start": Object {
+ "column": 0,
+ "line": 4,
+ },
+ },
+ "range": Array [
+ 83,
+ 84,
+ ],
+ "type": "Punctuator",
+ "value": "}",
+ },
+ Object {
+ "loc": Object {
+ "end": Object {
+ "column": 2,
+ "line": 4,
+ },
+ "start": Object {
+ "column": 1,
+ "line": 4,
+ },
+ },
+ "range": Array [
+ 84,
+ 85,
+ ],
+ "type": "Punctuator",
+ "value": ";",
+ },
+ ],
+ "type": "Program",
+}
+`;
diff --git a/packages/typescript-estree/tests/snapshots/typescript/types/this-type-expanded.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/types/this-type-expanded.src.ts.shot
index 4ae46a1f6155..d936454024a7 100644
--- a/packages/typescript-estree/tests/snapshots/typescript/types/this-type-expanded.src.ts.shot
+++ b/packages/typescript-estree/tests/snapshots/typescript/types/this-type-expanded.src.ts.shot
@@ -38,6 +38,7 @@ Object {
"line": 2,
},
},
+ "override": false,
"range": Array [
12,
29,
@@ -113,6 +114,7 @@ Object {
"line": 4,
},
},
+ "override": false,
"range": Array [
33,
91,
@@ -351,6 +353,7 @@ Object {
"line": 8,
},
},
+ "override": false,
"range": Array [
95,
149,
@@ -608,6 +611,7 @@ Object {
"line": 12,
},
},
+ "override": false,
"range": Array [
153,
237,
@@ -960,6 +964,7 @@ Object {
"line": 17,
},
},
+ "override": false,
"range": Array [
241,
322,
@@ -1330,6 +1335,7 @@ Object {
"line": 22,
},
},
+ "override": false,
"range": Array [
326,
387,
@@ -1586,6 +1592,7 @@ Object {
"line": 26,
},
},
+ "override": false,
"range": Array [
391,
449,
diff --git a/packages/typescript-estree/tests/snapshots/typescript/types/this-type.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/types/this-type.src.ts.shot
index 2709ff43b71d..d937da372065 100644
--- a/packages/typescript-estree/tests/snapshots/typescript/types/this-type.src.ts.shot
+++ b/packages/typescript-estree/tests/snapshots/typescript/types/this-type.src.ts.shot
@@ -37,6 +37,7 @@ Object {
"line": 2,
},
},
+ "override": false,
"range": Array [
18,
54,
diff --git a/packages/visitor-keys/CHANGELOG.md b/packages/visitor-keys/CHANGELOG.md
index 47b63a6189b4..b30f830dc89b 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.
+# [4.25.0](https://github.com/typescript-eslint/typescript-eslint/compare/v4.24.0...v4.25.0) (2021-05-24)
+
+**Note:** Version bump only for package @typescript-eslint/visitor-keys
+
+
+
+
+
# [4.24.0](https://github.com/typescript-eslint/typescript-eslint/compare/v4.23.0...v4.24.0) (2021-05-17)
**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 6c82988fd55e..a6fef5057331 100644
--- a/packages/visitor-keys/package.json
+++ b/packages/visitor-keys/package.json
@@ -1,6 +1,6 @@
{
"name": "@typescript-eslint/visitor-keys",
- "version": "4.24.0",
+ "version": "4.25.0",
"description": "Visitor keys used to help traverse the TypeScript-ESTree AST",
"keywords": [
"eslint",
@@ -38,7 +38,7 @@
"typecheck": "tsc -p tsconfig.json --noEmit"
},
"dependencies": {
- "@typescript-eslint/types": "4.24.0",
+ "@typescript-eslint/types": "4.25.0",
"eslint-visitor-keys": "^2.0.0"
},
"devDependencies": {
diff --git a/yarn.lock b/yarn.lock
index 3facce7c4413..281160f5ca14 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -171,11 +171,16 @@
chalk "^2.0.0"
js-tokens "^4.0.0"
-"@babel/parser@^7.1.0", "@babel/parser@^7.12.13", "@babel/parser@^7.13.0", "@babel/parser@^7.13.10", "@babel/parser@^7.13.11":
+"@babel/parser@^7.1.0", "@babel/parser@^7.12.13", "@babel/parser@^7.13.0", "@babel/parser@^7.13.10":
version "7.13.15"
resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.13.15.tgz#8e66775fb523599acb6a289e12929fa5ab0954d8"
integrity sha512-b9COtcAlVEQljy/9fbcMHpG+UIW9ReF+gpaxDHTlZd0c6/UU9ng8zdySAW9sRTzpvcdCHn6bUcbuYUgGzLAWVQ==
+"@babel/parser@^7.14.3":
+ version "7.14.3"
+ resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.14.3.tgz#9b530eecb071fd0c93519df25c5ff9f14759f298"
+ integrity sha512-7MpZDIfI7sUC5zWo2+foJ50CSI5lcqDehZ0lVgIhSi4bFEk94fLAKlF3Q0nzSQQ+ca0lm+O6G9ztKVBeu8PMRQ==
+
"@babel/plugin-syntax-async-generators@^7.8.4":
version "7.8.4"
resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.8.4.tgz#a983fb1aeb2ec3f6ed042a210f640e90e786fe0d"
@@ -291,10 +296,10 @@
globals "^11.1.0"
lodash "^4.17.19"
-"@babel/types@^7.0.0", "@babel/types@^7.12.13", "@babel/types@^7.13.0", "@babel/types@^7.3.0", "@babel/types@^7.3.3":
- version "7.14.1"
- resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.14.1.tgz#095bd12f1c08ab63eff6e8f7745fa7c9cc15a9db"
- integrity sha512-S13Qe85fzLs3gYRUnrpyeIrBJIMYv33qSTg1qoBwiG6nPKwUWAD9odSzWhEedpwOIzSEI6gbdQIWEMiCI42iBA==
+"@babel/types@^7.0.0", "@babel/types@^7.12.13", "@babel/types@^7.13.0", "@babel/types@^7.14.2", "@babel/types@^7.3.0", "@babel/types@^7.3.3":
+ version "7.14.2"
+ resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.14.2.tgz#4208ae003107ef8a057ea8333e56eb64d2f6a2c3"
+ integrity sha512-SdjAG/3DikRHpUOjxZgnkbR11xUlyDMUFJdvnIgZEE16mqmY0BINMmc4//JMJglEmn6i7sq6p+mGrFWyZ98EEw==
dependencies:
"@babel/helper-validator-identifier" "^7.14.0"
to-fast-properties "^2.0.0"
@@ -329,16 +334,16 @@
yargs "^16.2.0"
"@commitlint/config-conventional@^12.0.1":
- version "12.1.1"
- resolved "https://registry.yarnpkg.com/@commitlint/config-conventional/-/config-conventional-12.1.1.tgz#73dd3b1a7912138420d248f334f15c94c250bc9e"
- integrity sha512-15CqbXMsQiEb0qbzjEHe2OkzaXPYSp7RxaS6KoSVk/4W0QiigquavQ+M0huBZze92h0lMS6Pxoq4AJ5CQ3D+iQ==
+ version "12.1.4"
+ resolved "https://registry.yarnpkg.com/@commitlint/config-conventional/-/config-conventional-12.1.4.tgz#95bbab622f117a8a3e49f95917b08655040c66a8"
+ integrity sha512-ZIdzmdy4o4WyqywMEpprRCrehjCSQrHkaRTVZV411GyLigFQHlEBSJITAihLAWe88Qy/8SyoIe5uKvAsV5vRqQ==
dependencies:
conventional-changelog-conventionalcommits "^4.3.1"
"@commitlint/config-lerna-scopes@^12.0.1":
- version "12.1.1"
- resolved "https://registry.yarnpkg.com/@commitlint/config-lerna-scopes/-/config-lerna-scopes-12.1.1.tgz#d7ebb34c083b181620d2ac97d8de566c37199e87"
- integrity sha512-j5u3UHbd4nccBTz0DVraO5cJDVdMgEh7sfuW9BH9SPxlI2F0LmLUIssrUuyCNL1bk+VIH2pdAWonlIlAAfJ4Nw==
+ version "12.1.4"
+ resolved "https://registry.yarnpkg.com/@commitlint/config-lerna-scopes/-/config-lerna-scopes-12.1.4.tgz#af6786d2a479eb4c90838782368bb3958547327a"
+ integrity sha512-D/VqvATs8fYi2CFpFdjLYeOHGm/KkxUSehGqwIPJfYXHHua19V5UqmUOeXTNAJaD+bTpiHvoBTK75NcmWpBQSg==
dependencies:
globby "^11.0.1"
import-from "3.0.0"
@@ -460,10 +465,10 @@
dependencies:
chalk "^4.0.0"
-"@cspell/cspell-bundled-dicts@^5.4.0":
- version "5.4.0"
- resolved "https://registry.yarnpkg.com/@cspell/cspell-bundled-dicts/-/cspell-bundled-dicts-5.4.0.tgz#ef241c9cee00e674fd8ac034bd1dacec77d94f5c"
- integrity sha512-aZyml0UaJ2BXmqcrjdMJWyKGQVu33FQ1eRsnV2SZ4WkdkRsxPtdQoFDi+lKSSvIEYSfRkis6lffzwvp0CPQOmw==
+"@cspell/cspell-bundled-dicts@^5.4.1":
+ version "5.4.1"
+ resolved "https://registry.yarnpkg.com/@cspell/cspell-bundled-dicts/-/cspell-bundled-dicts-5.4.1.tgz#d06a921d518e9705551edaf391369904e721c918"
+ integrity sha512-EkghG4i5rf2DDDGX2qlRDiBGzYlHhgBcnxIUzOo/DBTRKKPgrvGJ244V83DHw3ttBUPfzcHrEJIBu5nGfYaMfw==
dependencies:
"@cspell/dict-ada" "^1.1.2"
"@cspell/dict-aws" "^1.0.14"
@@ -497,13 +502,13 @@
"@cspell/dict-ruby" "^1.0.13"
"@cspell/dict-rust" "^1.0.22"
"@cspell/dict-scala" "^1.0.21"
- "@cspell/dict-software-terms" "^1.0.28"
+ "@cspell/dict-software-terms" "^1.0.29"
"@cspell/dict-typescript" "^1.0.17"
-"@cspell/cspell-types@^5.4.0":
- version "5.4.0"
- resolved "https://registry.yarnpkg.com/@cspell/cspell-types/-/cspell-types-5.4.0.tgz#af555d9a9c08a75cdd2b38bac259a5127a59cb31"
- integrity sha512-mQM+65u0jbTilhj0Mrnufk3jC7dWRymlWdxVK9phLRqtJsDJsxpa0opumVw1CnoBHfPj6HnW7SBGufmcCQp/PQ==
+"@cspell/cspell-types@^5.4.1":
+ version "5.4.1"
+ resolved "https://registry.yarnpkg.com/@cspell/cspell-types/-/cspell-types-5.4.1.tgz#75560fc7873ede01d1e9e8913ce64190fb1c8b38"
+ integrity sha512-Z+L3aYZTfMePmDetfCjyc/VrxDfbdhS4F8Zvs2aTaEFTiiLefzvBo6yn3KCV2irXeb3wL70PTabrej+1QStKxg==
"@cspell/dict-ada@^1.1.2":
version "1.1.2"
@@ -665,10 +670,10 @@
resolved "https://registry.yarnpkg.com/@cspell/dict-scala/-/dict-scala-1.0.21.tgz#bfda392329061e2352fbcd33d228617742c93831"
integrity sha512-5V/R7PRbbminTpPS3ywgdAalI9BHzcEjEj9ug4kWYvBIGwSnS7T6QCFCiu+e9LvEGUqQC+NHgLY4zs1NaBj2vA==
-"@cspell/dict-software-terms@^1.0.28":
- version "1.0.28"
- resolved "https://registry.yarnpkg.com/@cspell/dict-software-terms/-/dict-software-terms-1.0.28.tgz#0c26bbfa89546d257b52cd433000ba7fe86a1901"
- integrity sha512-N/5H+J68CgToDSZiMMSJl3ws5qU7GJOj1sXZ9oXr1wojvu/qifCp32zDh8hzFWrZF1VUdnStusNVTeW1Wq4Pog==
+"@cspell/dict-software-terms@^1.0.29":
+ version "1.0.29"
+ resolved "https://registry.yarnpkg.com/@cspell/dict-software-terms/-/dict-software-terms-1.0.29.tgz#da9218f94ee0209a4867f1129725d78335e7d8f5"
+ integrity sha512-cW4HTLqV5ckUmdL5JpRuHw7MrybsEtE/941US4qqmrkWpINgodYF6mhPBVzGNH2guL/dAznlCInDho4IDoe3qA==
"@cspell/dict-typescript@^1.0.17":
version "1.0.17"
@@ -1637,24 +1642,24 @@
npmlog "^4.1.2"
write-file-atomic "^2.3.0"
-"@microsoft/api-extractor-model@7.13.1":
- version "7.13.1"
- resolved "https://registry.yarnpkg.com/@microsoft/api-extractor-model/-/api-extractor-model-7.13.1.tgz#6dd9c4bd49b5d0d32b44c564a94c34b3c3aa2a87"
- integrity sha512-PKAjDmAJ6X07tvqCHSN1PRaKq8bZQXF9QI6WGEMnCHNFWwXUoITOAcvFW0Ol3TzwHO5rLbuy/CqWebfhv8eOtw==
+"@microsoft/api-extractor-model@7.13.2":
+ version "7.13.2"
+ resolved "https://registry.yarnpkg.com/@microsoft/api-extractor-model/-/api-extractor-model-7.13.2.tgz#7e640dbd421cc95a28e03c5a949d8ebcc63c936d"
+ integrity sha512-gA9Q8q5TPM2YYk7rLinAv9KqcodrmRC13BVmNzLswjtFxpz13lRh0BmrqD01/sddGpGMIuWFYlfUM4VSWxnggA==
dependencies:
"@microsoft/tsdoc" "0.13.2"
"@microsoft/tsdoc-config" "~0.15.2"
- "@rushstack/node-core-library" "3.37.0"
+ "@rushstack/node-core-library" "3.38.0"
"@microsoft/api-extractor@^7.13.2":
- version "7.15.1"
- resolved "https://registry.yarnpkg.com/@microsoft/api-extractor/-/api-extractor-7.15.1.tgz#c3791933367ddded72a2f1d3c437e17fa050eac5"
- integrity sha512-PYbGAvxbM5B6HbafXY7tJ4ObYpeUZrZFt9vlN68tpYG/7aeldMLAZSjTyB30VFXaGlArjeEooKZIcs2ZnVAbNg==
+ version "7.15.2"
+ resolved "https://registry.yarnpkg.com/@microsoft/api-extractor/-/api-extractor-7.15.2.tgz#7a06b857660e33d1cdc050d576eb6c6c05dc532a"
+ integrity sha512-/Y/n+QOc1vM6Vg3OAUByT/wXdZciE7jV3ay33+vxl3aKva5cNsuOauL14T7XQWUiLko3ilPwrcnFcEjzXpLsuA==
dependencies:
- "@microsoft/api-extractor-model" "7.13.1"
+ "@microsoft/api-extractor-model" "7.13.2"
"@microsoft/tsdoc" "0.13.2"
"@microsoft/tsdoc-config" "~0.15.2"
- "@rushstack/node-core-library" "3.37.0"
+ "@rushstack/node-core-library" "3.38.0"
"@rushstack/rig-package" "0.2.12"
"@rushstack/ts-command-line" "4.7.10"
colors "~1.2.1"
@@ -1822,10 +1827,10 @@
dependencies:
"@types/node" ">= 8"
-"@rushstack/node-core-library@3.37.0":
- version "3.37.0"
- resolved "https://registry.yarnpkg.com/@rushstack/node-core-library/-/node-core-library-3.37.0.tgz#6e8ebfdbe2829d380bc827bbb450361fb48e142c"
- integrity sha512-b0OGvl20zfepytLBnKsOtemtiadNZAVolXxaSYssV9VjXaLPF97oLvtLfwc58BX05ufIsrKZgXatnRo8YeffNg==
+"@rushstack/node-core-library@3.38.0":
+ version "3.38.0"
+ resolved "https://registry.yarnpkg.com/@rushstack/node-core-library/-/node-core-library-3.38.0.tgz#da1cc87f9ad141b06d4ce7c8eafb09b542c10e75"
+ integrity sha512-cmvl0yQx8sSmbuXwiRYJi8TO+jpTtrLJQ8UmFHhKvgPVJAW8cV8dnpD1Xx/BvTGrJZ2XtRAIkAhBS9okBnap4w==
dependencies:
"@types/node" "10.17.13"
colors "~1.2.1"
@@ -1992,9 +1997,9 @@
integrity sha1-7ihweulOEdK4J7y+UnC86n8+ce4=
"@types/lodash@*", "@types/lodash@^4.14.149":
- version "4.14.168"
- resolved "https://registry.yarnpkg.com/@types/lodash/-/lodash-4.14.168.tgz#fe24632e79b7ade3f132891afff86caa5e5ce008"
- integrity sha512-oVfRvqHV/V6D1yifJbVRU3TMp8OT6o6BG+U9MkwuJ3U8/CsDHvalRpsxBqivn71ztOFZBTfJMvETbqHiaNSj7Q==
+ version "4.14.169"
+ resolved "https://registry.yarnpkg.com/@types/lodash/-/lodash-4.14.169.tgz#83c217688f07a4d9ef8f28a3ebd1d318f6ff4cbb"
+ integrity sha512-DvmZHoHTFJ8zhVYwCLWbQ7uAbYQEk52Ev2/ZiQ7Y7gQGeV9pjBqjnQpECMHfKS1rCYAhMI7LHVxwyZLZinJgdw==
"@types/marked@*", "@types/marked@^2.0.0":
version "2.0.2"
@@ -2020,9 +2025,9 @@
form-data "^3.0.0"
"@types/node@*", "@types/node@>= 8", "@types/node@^15.0.2":
- version "15.0.2"
- resolved "https://registry.yarnpkg.com/@types/node/-/node-15.0.2.tgz#51e9c0920d1b45936ea04341aa3e2e58d339fb67"
- integrity sha512-p68+a+KoxpoB47015IeYZYRrdqMUcpbK8re/zpFB8Ld46LHC1lPEbp3EXgkEhAYEcPvjJF6ZO+869SQ0aH1dcA==
+ version "15.3.1"
+ resolved "https://registry.yarnpkg.com/@types/node/-/node-15.3.1.tgz#23a06b87eedb524016616e886b116b8fdcb180af"
+ integrity sha512-weaeiP4UF4XgF++3rpQhpIJWsCTS4QJw5gvBhQu6cFIxTwyxWIe3xbnrY/o2lTCQ0lsdb8YIUDUvLR4Vuz5rbw==
"@types/node@10.17.13":
version "10.17.13"
@@ -2053,9 +2058,9 @@
"@types/node" "*"
"@types/semver@*", "@types/semver@^7.3.4":
- version "7.3.5"
- resolved "https://registry.yarnpkg.com/@types/semver/-/semver-7.3.5.tgz#74deebbbcb1e86634dbf10a5b5e8798626f5a597"
- integrity sha512-iotVxtCCsPLRAvxMFFgxL8HD2l4mAZ2Oin7/VJ2ooWO0VOK4EGOGmZWZn1uCq7RofR3I/1IOSjCHlFT71eVK0Q==
+ version "7.3.6"
+ resolved "https://registry.yarnpkg.com/@types/semver/-/semver-7.3.6.tgz#e9831776f4512a7ba6da53e71c26e5fb67882d63"
+ integrity sha512-0caWDWmpCp0uifxFh+FaqK3CuZ2SkRR/ZRxAV5+zNdC3QVUi6wyOJnefhPvtNt8NQWXB5OA93BUvZsXpWat2Xw==
"@types/stack-utils@^2.0.0":
version "2.0.0"
@@ -3256,62 +3261,62 @@ crypto-random-string@^2.0.0:
resolved "https://registry.yarnpkg.com/crypto-random-string/-/crypto-random-string-2.0.0.tgz#ef2a7a966ec11083388369baa02ebead229b30d5"
integrity sha512-v1plID3y9r/lPhviJ1wrXpLeyUIGAZ2SHNYTEapm7/8A9nLPoyvVp3RK/EPFqn5kEznyWgYZNsRtYYIWbuG8KA==
-cspell-glob@^5.4.0:
- version "5.4.0"
- resolved "https://registry.yarnpkg.com/cspell-glob/-/cspell-glob-5.4.0.tgz#13a2948e9e1defc59f25d76a9a95134521057cfe"
- integrity sha512-4CwXDdO3Z0VdfZcD7OS7zFM8h5ay2ZHtzoc5oPLmxSs+tNQdRGNeFSPIv6CNt80AqILtZrlO7nVIbA6KtARqYA==
+cspell-glob@^5.4.1:
+ version "5.4.1"
+ resolved "https://registry.yarnpkg.com/cspell-glob/-/cspell-glob-5.4.1.tgz#c022284adf695f6fccedfab72dd82869795530ce"
+ integrity sha512-mxyCuzDYjEhgDRcan8KuZtwPw90/Fw6mlIuMHcENwmVUack4uXsmBcwzmax6nBpEdb8Ck+FF4Iav5EOOo8oXJA==
dependencies:
micromatch "^4.0.4"
-cspell-io@^5.4.0:
- version "5.4.0"
- resolved "https://registry.yarnpkg.com/cspell-io/-/cspell-io-5.4.0.tgz#b2b74f3cf20db86ca37b4c3a7f648b8db7184f4e"
- integrity sha512-VIPb/TmTNK/dG5nrbGhuhvWZQYAFXpYQQJ4hmlmuczhhQ2Qw1YSkRgoEB4Ir0neoRJTeEM2x5tgvSJCOwflSuA==
+cspell-io@^5.4.1:
+ version "5.4.1"
+ resolved "https://registry.yarnpkg.com/cspell-io/-/cspell-io-5.4.1.tgz#0c39e2b4e112282e68c1af4b7e8b25eb4377e18e"
+ integrity sha512-hf+kErIND/UiMh9qyJ9COJ73mrjrerf+XV4t6M5IkgfGW0qpDXUtORUHA3NNWtB1U7GbKVH7HpInjJ3XGAjcRw==
dependencies:
iconv-lite "^0.6.2"
iterable-to-stream "^1.0.1"
-cspell-lib@^5.4.0:
- version "5.4.0"
- resolved "https://registry.yarnpkg.com/cspell-lib/-/cspell-lib-5.4.0.tgz#8e60a2ad7d46e79965bcb95cff9f1d97c37b65f1"
- integrity sha512-ja1zvRF+pNi+hioWYZUGpWGXPFfhDujd+qbAoQ08It4xMTVER8cDYQpSo2ll4DPJ2YphPW//2Br6TBvQ5xO50Q==
+cspell-lib@^5.4.1:
+ version "5.4.1"
+ resolved "https://registry.yarnpkg.com/cspell-lib/-/cspell-lib-5.4.1.tgz#79595fedd4f48449c54ecba220603bb410f8dac3"
+ integrity sha512-Hj7Gv6wy3lEx3Hb8slILCU5CvxruXDWeCviolSsdYK6M83fRevNH+O0fIWkyW5NPv9AcW2FB+/FaJ5HAxDAtwQ==
dependencies:
- "@cspell/cspell-bundled-dicts" "^5.4.0"
- "@cspell/cspell-types" "^5.4.0"
+ "@cspell/cspell-bundled-dicts" "^5.4.1"
+ "@cspell/cspell-types" "^5.4.1"
comment-json "^4.1.0"
configstore "^5.0.1"
cosmiconfig "^7.0.0"
- cspell-glob "^5.4.0"
- cspell-io "^5.4.0"
- cspell-trie-lib "^5.4.0"
- fs-extra "^9.1.0"
+ cspell-glob "^5.4.1"
+ cspell-io "^5.4.1"
+ cspell-trie-lib "^5.4.1"
+ fs-extra "^10.0.0"
gensequence "^3.1.1"
resolve-from "^5.0.0"
resolve-global "^1.0.0"
vscode-uri "^3.0.2"
-cspell-trie-lib@^5.4.0:
- version "5.4.0"
- resolved "https://registry.yarnpkg.com/cspell-trie-lib/-/cspell-trie-lib-5.4.0.tgz#bfe721b6a5e5885f3edb73b5861500c142f3b46b"
- integrity sha512-IpDFdOoUEdiyzDGEUCIAoAUenIMy0FjOKotmsl9GTbOyq0XPHE6s7Yz5s9pFzX9IHxvsJ7Plhvn627k7QAC6DQ==
+cspell-trie-lib@^5.4.1:
+ version "5.4.1"
+ resolved "https://registry.yarnpkg.com/cspell-trie-lib/-/cspell-trie-lib-5.4.1.tgz#0210890db497e5c514829afc0a2744921e48c4c2"
+ integrity sha512-+yla0OQ4mgCtRYRbRRQ9Udg91mSwwXD2RfkuMMMjDUmjnIp/63+08w68TyWW3faolXKF/uR5ya9ItZfee+juCQ==
dependencies:
- fs-extra "^9.1.0"
+ fs-extra "^10.0.0"
gensequence "^3.1.1"
cspell@^5.2.4:
- version "5.4.0"
- resolved "https://registry.yarnpkg.com/cspell/-/cspell-5.4.0.tgz#3cafddc67b445deaea52b72af318b8c716891748"
- integrity sha512-613oEbxry/xJWrFf/r6RS3jQ88Az0W3LRazGi0s+tcIAlprJn78inTKUn23oQslhoF0dhYADJdFaR6Q4Fd6+zw==
+ version "5.4.1"
+ resolved "https://registry.yarnpkg.com/cspell/-/cspell-5.4.1.tgz#5b92cf2886a4478aa285d14eaa404033437bb98d"
+ integrity sha512-P4Vgfh8+SbdtbOp6boqFe1z7dVHoJif+Z55S6gQNR/KUrBFzajZEYKYjkDnWAHFV1zG6JcJinMzqDdc/EfiAGQ==
dependencies:
- "@cspell/cspell-types" "^5.4.0"
+ "@cspell/cspell-types" "^5.4.1"
chalk "^4.1.1"
commander "^7.2.0"
comment-json "^4.1.0"
- cspell-glob "^5.4.0"
- cspell-lib "^5.4.0"
- fs-extra "^9.1.0"
+ cspell-glob "^5.4.1"
+ cspell-lib "^5.4.1"
+ fs-extra "^10.0.0"
get-stdin "^8.0.0"
- glob "^7.1.6"
+ glob "^7.1.7"
strip-ansi "^6.0.0"
cssom@^0.4.4:
@@ -4335,7 +4340,16 @@ fs-extra@8.1.0, fs-extra@^8.1.0:
jsonfile "^4.0.0"
universalify "^0.1.0"
-fs-extra@^9.0.0, fs-extra@^9.1.0:
+fs-extra@^10.0.0:
+ version "10.0.0"
+ resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-10.0.0.tgz#9ff61b655dde53fb34a82df84bb214ce802e17c1"
+ integrity sha512-C5owb14u9eJwizKGdchcDUQeFtlSHHthBk8pbX9Vc1PFZrLombudjDnNns88aYslCyF6IY5SUw3Roz6xShcEIQ==
+ dependencies:
+ graceful-fs "^4.2.0"
+ jsonfile "^6.0.1"
+ universalify "^2.0.0"
+
+fs-extra@^9.0.0:
version "9.1.0"
resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-9.1.0.tgz#5954460c764a8da2094ba3554bf839e6b9a7c86d"
integrity sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ==
@@ -4572,7 +4586,7 @@ glob-to-regexp@^0.3.0:
resolved "https://registry.yarnpkg.com/glob-to-regexp/-/glob-to-regexp-0.3.0.tgz#8c5a1494d2066c570cc3bfe4496175acc4d502ab"
integrity sha1-jFoUlNIGbFcMw7/kSWF1rMTVAqs=
-glob@*, glob@^7.0.0, glob@^7.1.1, glob@^7.1.2, glob@^7.1.3, glob@^7.1.4, glob@^7.1.6, glob@~7.1.6:
+glob@*, glob@^7.0.0, glob@^7.1.1, glob@^7.1.2, glob@^7.1.3, glob@^7.1.4, glob@^7.1.6, glob@^7.1.7, glob@~7.1.6:
version "7.1.7"
resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.7.tgz#3b193e9233f01d42d0b3f78294bbeeb418f94a90"
integrity sha512-OvD9ENzPLbegENnYP5UUfJIirTg4+XwMWGaQfQTY0JenxNvvIKP3U3/tAQSPIu/lHxXYSZmpXlUHeqAIdKzBLQ==
@@ -6354,9 +6368,9 @@ markdownlint@~0.23.1:
markdown-it "12.0.4"
marked@^2.0.0:
- version "2.0.3"
- resolved "https://registry.yarnpkg.com/marked/-/marked-2.0.3.tgz#3551c4958c4da36897bda2a16812ef1399c8d6b0"
- integrity sha512-5otztIIcJfPc2qGTN8cVtOJEjNJZ0jwa46INMagrYfk0EvqtRuEHLsEe0LrFS0/q+ZRKT0+kXK7P2T1AN5lWRA==
+ version "2.0.4"
+ resolved "https://registry.yarnpkg.com/marked/-/marked-2.0.4.tgz#71d54d41f27d91ac2ed308f73c301fe9f0657a94"
+ integrity sha512-MIL0xKRDQM3DE7dJr/wa6JV0EmK9yZ3cwuTc2bu66FNm/tmEMm9cJCgJZpt9R+K1T+pB2iBNV55wvnwSd345zg==
mdurl@^1.0.1:
version "1.0.1"
@@ -8849,10 +8863,10 @@ typedarray@^0.0.6:
resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777"
integrity sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=
-typescript@*, typescript@4.2.2, "typescript@>=3.3.1 <4.3.0", typescript@^4.1.0-dev.20201026, typescript@~4.2.4:
- version "4.2.2"
- resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.2.2.tgz#1450f020618f872db0ea17317d16d8da8ddb8c4c"
- integrity sha512-tbb+NVrLfnsJy3M59lsDgrzWIflR4d4TIUjz+heUnHZwdF7YsrMTKoRERiIvI2lvBG95dfpLxB21WZhys1bgaQ==
+typescript@*, typescript@4.3.1-rc, "typescript@>=3.3.1 <4.4.0 || 4.3.1-rc", typescript@^4.1.0-dev.20201026, typescript@~4.2.4:
+ version "4.3.1-rc"
+ resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.3.1-rc.tgz#925149c8d8514e20a6bd8d4bd7f42adac67ab59c"
+ integrity sha512-L3uJ0gcntaRaKni9aV2amYB+pCDVodKe/B5+IREyvtKGsDOF7cYjchHb/B894skqkgD52ykRuWatIZMqEsHIqA==
uc.micro@^1.0.1, uc.micro@^1.0.5:
version "1.0.6"