Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
feat: support TS4.1 features (#2748)
Fixes #2583 - Adds AST for Key Remapping in Mapped Types and Template Literal Types - Adds visitor keys for the above - Adds scope manager support for the above (just tests were required as it all is pretty simple) - Regenerates the scope-manager lib types
- Loading branch information
Showing
with
4,503 additions
and 119 deletions.
- +5 −3 .prettierignore
- +3 −3 package.json
- +28 −1 packages/eslint-plugin/tests/rules/no-unused-vars.test.ts
- +6 −0 packages/scope-manager/src/lib/dom.iterable.ts
- +39 −57 packages/scope-manager/src/lib/dom.ts
- +0 −6 packages/scope-manager/src/lib/es2015.iterable.ts
- +14 −0 packages/scope-manager/src/lib/es2020.sharedmemory.ts
- +2 −0 packages/scope-manager/src/lib/es2020.ts
- +24 −0 packages/scope-manager/src/lib/es5.ts
- +2 −0 packages/scope-manager/src/lib/esnext.ts
- +32 −0 packages/scope-manager/src/lib/esnext.weakref.ts
- +6 −0 packages/scope-manager/src/lib/index.ts
- +92 −0 packages/scope-manager/src/lib/webworker.iterable.ts
- +14 −14 packages/scope-manager/src/lib/webworker.ts
- +3 −0 packages/scope-manager/tests/fixtures/type-declaration/literal-type1.ts
- +87 −0 packages/scope-manager/tests/fixtures/type-declaration/literal-type1.ts.shot
- +2 −0 packages/scope-manager/tests/fixtures/type-declaration/literal-type2.ts
- +158 −0 packages/scope-manager/tests/fixtures/type-declaration/literal-type2.ts.shot
- +8 −0 packages/scope-manager/tests/fixtures/type-declaration/literal-type3.ts
- +121 −0 packages/scope-manager/tests/fixtures/type-declaration/literal-type3.ts.shot
- +2 −0 packages/scope-manager/tests/fixtures/type-declaration/mapped-named.ts
- +116 −0 packages/scope-manager/tests/fixtures/type-declaration/mapped-named.ts.shot
- +3 −0 packages/shared-fixtures/fixtures/typescript/types/mapped-named-type.src.ts
- +1 −0 packages/shared-fixtures/fixtures/typescript/types/template-literal-type-1.src.ts
- +1 −0 packages/shared-fixtures/fixtures/typescript/types/template-literal-type-2.src.ts
- +3 −0 packages/shared-fixtures/fixtures/typescript/types/template-literal-type-3.src.ts
- +2 −0 packages/shared-fixtures/fixtures/typescript/types/template-literal-type-4.src.ts
- +1 −0 packages/types/src/ast-node-types.ts
- +1 −5 packages/types/src/index.ts
- +3 −0 packages/types/src/lib.ts
- +16 −7 packages/types/src/ts-estree.ts
- +3 −3 packages/typescript-estree/package.json
- +16 −0 packages/typescript-estree/src/convert.ts
- +2 −2 packages/typescript-estree/src/parser.ts
- +1 −0 packages/typescript-estree/src/ts-estree/estree-to-ts-node-types.ts
- +1 −0 packages/typescript-estree/src/ts-estree/ts-nodes.ts
- +55 −2 packages/typescript-estree/tests/ast-alignment/fixtures-to-test.ts
- +2 −1 packages/typescript-estree/tests/ast-alignment/parse.ts
- +10 −0 packages/typescript-estree/tests/lib/__snapshots__/semantic-diagnostics-enabled.test.ts.snap
- +764 −0 packages/typescript-estree/tests/snapshots/typescript/types/mapped-named-type.src.ts.shot
- +1 −0 packages/typescript-estree/tests/snapshots/typescript/types/mapped-readonly-minus.src.ts.shot
- +1 −0 packages/typescript-estree/tests/snapshots/typescript/types/mapped-readonly-plus.src.ts.shot
- +1 −0 packages/typescript-estree/tests/snapshots/typescript/types/mapped-readonly.src.ts.shot
- +1 −0 packages/typescript-estree/tests/snapshots/typescript/types/mapped-untypped.src.ts.shot
- +1 −0 packages/typescript-estree/tests/snapshots/typescript/types/mapped.src.ts.shot
- +211 −0 packages/typescript-estree/tests/snapshots/typescript/types/template-literal-type-1.src.ts.shot
- +289 −0 packages/typescript-estree/tests/snapshots/typescript/types/template-literal-type-2.src.ts.shot
- +884 −0 packages/typescript-estree/tests/snapshots/typescript/types/template-literal-type-3.src.ts.shot
- +1,434 −0 packages/typescript-estree/tests/snapshots/typescript/types/template-literal-type-4.src.ts.shot
- +2 −1 packages/visitor-keys/src/visitor-keys.ts
- +29 −14 yarn.lock
@@ -0,0 +1,14 @@ | ||
// THIS CODE WAS AUTOMATICALLY GENERATED | ||
// DO NOT EDIT THIS CODE BY HAND | ||
// YOU CAN REGENERATE IT USING yarn generate:lib | ||
|
||
import { ImplicitLibVariableOptions } from '../variable'; | ||
|
||
export const es2020_sharedmemory = { | ||
Atomics: { | ||
eslintImplicitGlobalSetting: 'readonly', | ||
isTypeVariable: true, | ||
isValueVariable: false, | ||
name: 'Atomics', | ||
}, | ||
} as Record<string, ImplicitLibVariableOptions>; |
Oops, something went wrong.