From 9da0b8d0bfa375cb55f21083020ee0a36446e389 Mon Sep 17 00:00:00 2001 From: Brad Zacher Date: Fri, 25 Aug 2023 10:14:09 +1000 Subject: [PATCH 1/2] feat: bump supported TS version to 5.2 --- package.json | 4 +- .../src/lib/decorators.legacy.ts | 2 +- packages/scope-manager/src/lib/decorators.ts | 2 +- .../scope-manager/src/lib/dom.iterable.ts | 2 +- packages/scope-manager/src/lib/dom.ts | 2 +- .../src/lib/es2015.collection.ts | 4 +- packages/scope-manager/src/lib/es2015.core.ts | 2 +- .../scope-manager/src/lib/es2015.generator.ts | 4 +- .../scope-manager/src/lib/es2015.iterable.ts | 4 +- .../scope-manager/src/lib/es2015.promise.ts | 2 +- .../scope-manager/src/lib/es2015.proxy.ts | 2 +- .../scope-manager/src/lib/es2015.reflect.ts | 2 +- .../scope-manager/src/lib/es2015.symbol.ts | 2 +- .../src/lib/es2015.symbol.wellknown.ts | 4 +- packages/scope-manager/src/lib/es2015.ts | 6 +- .../src/lib/es2016.array.include.ts | 2 +- packages/scope-manager/src/lib/es2016.full.ts | 8 +- packages/scope-manager/src/lib/es2016.ts | 2 +- packages/scope-manager/src/lib/es2017.date.ts | 2 +- packages/scope-manager/src/lib/es2017.full.ts | 8 +- packages/scope-manager/src/lib/es2017.intl.ts | 2 +- .../scope-manager/src/lib/es2017.object.ts | 2 +- .../src/lib/es2017.sharedmemory.ts | 4 +- .../scope-manager/src/lib/es2017.string.ts | 2 +- packages/scope-manager/src/lib/es2017.ts | 6 +- .../src/lib/es2017.typedarrays.ts | 2 +- .../src/lib/es2018.asyncgenerator.ts | 4 +- .../src/lib/es2018.asynciterable.ts | 6 +- packages/scope-manager/src/lib/es2018.full.ts | 8 +- packages/scope-manager/src/lib/es2018.intl.ts | 2 +- .../scope-manager/src/lib/es2018.promise.ts | 2 +- .../scope-manager/src/lib/es2018.regexp.ts | 2 +- packages/scope-manager/src/lib/es2018.ts | 6 +- .../scope-manager/src/lib/es2019.array.ts | 2 +- packages/scope-manager/src/lib/es2019.full.ts | 8 +- packages/scope-manager/src/lib/es2019.intl.ts | 2 +- .../scope-manager/src/lib/es2019.object.ts | 4 +- .../scope-manager/src/lib/es2019.string.ts | 2 +- .../scope-manager/src/lib/es2019.symbol.ts | 2 +- packages/scope-manager/src/lib/es2019.ts | 4 +- .../scope-manager/src/lib/es2020.bigint.ts | 4 +- packages/scope-manager/src/lib/es2020.date.ts | 4 +- packages/scope-manager/src/lib/es2020.full.ts | 8 +- packages/scope-manager/src/lib/es2020.intl.ts | 4 +- .../scope-manager/src/lib/es2020.number.ts | 4 +- .../scope-manager/src/lib/es2020.promise.ts | 2 +- .../src/lib/es2020.sharedmemory.ts | 2 +- .../scope-manager/src/lib/es2020.string.ts | 4 +- .../src/lib/es2020.symbol.wellknown.ts | 4 +- packages/scope-manager/src/lib/es2020.ts | 4 +- packages/scope-manager/src/lib/es2021.full.ts | 8 +- packages/scope-manager/src/lib/es2021.intl.ts | 2 +- .../scope-manager/src/lib/es2021.promise.ts | 4 +- .../scope-manager/src/lib/es2021.string.ts | 2 +- packages/scope-manager/src/lib/es2021.ts | 4 +- .../scope-manager/src/lib/es2021.weakref.ts | 4 +- .../scope-manager/src/lib/es2022.array.ts | 2 +- .../scope-manager/src/lib/es2022.error.ts | 2 +- packages/scope-manager/src/lib/es2022.full.ts | 8 +- packages/scope-manager/src/lib/es2022.intl.ts | 2 +- .../scope-manager/src/lib/es2022.object.ts | 2 +- .../scope-manager/src/lib/es2022.regexp.ts | 2 +- .../src/lib/es2022.sharedmemory.ts | 2 +- .../scope-manager/src/lib/es2022.string.ts | 2 +- packages/scope-manager/src/lib/es2022.ts | 4 +- .../scope-manager/src/lib/es2023.array.ts | 2 +- .../src/lib/es2023.collection.ts | 2 +- packages/scope-manager/src/lib/es2023.full.ts | 8 +- packages/scope-manager/src/lib/es2023.ts | 2 +- packages/scope-manager/src/lib/es5.ts | 4 +- packages/scope-manager/src/lib/es6.ts | 6 +- packages/scope-manager/src/lib/es7.ts | 2 +- .../scope-manager/src/lib/esnext.array.ts | 2 +- .../src/lib/esnext.asynciterable.ts | 6 +- .../scope-manager/src/lib/esnext.bigint.ts | 4 +- .../src/lib/esnext.collection.ts | 2 +- .../src/lib/esnext.decorators.ts | 6 +- .../src/lib/esnext.disposable.ts | 4 +- packages/scope-manager/src/lib/esnext.full.ts | 8 +- packages/scope-manager/src/lib/esnext.intl.ts | 2 +- .../scope-manager/src/lib/esnext.promise.ts | 4 +- .../scope-manager/src/lib/esnext.string.ts | 2 +- .../scope-manager/src/lib/esnext.symbol.ts | 2 +- packages/scope-manager/src/lib/esnext.ts | 4 +- .../scope-manager/src/lib/esnext.weakref.ts | 4 +- packages/scope-manager/src/lib/index.ts | 80 +++++++++---------- packages/scope-manager/src/lib/lib.ts | 6 +- packages/scope-manager/src/lib/scripthost.ts | 4 +- .../src/lib/webworker.importscripts.ts | 2 +- .../src/lib/webworker.iterable.ts | 2 +- packages/scope-manager/src/lib/webworker.ts | 2 +- .../src/parseSettings/warnAboutTSVersion.ts | 4 +- packages/website/src/vendor/sandbox.d.ts | 1 + .../website/src/vendor/typescript-vfs.d.ts | 10 ++- yarn.lock | 18 ++--- 95 files changed, 219 insertions(+), 214 deletions(-) diff --git a/package.json b/package.json index 17e6aeaafa0f..4ed71a07a7b4 100644 --- a/package.json +++ b/package.json @@ -117,7 +117,7 @@ "ts-node": "10.7.0", "tslint": "^6.1.3", "tsx": "^3.12.7", - "typescript": ">=4.3.5 <5.2.0 || 5.2.1-rc" + "typescript": ">=4.3.5 <5.3.0" }, "resolutions": { "@jest/create-cache-key-function": "^29", @@ -142,7 +142,7 @@ "jest-util": "^29", "pretty-format": "^29", "tsx": "^3.12.7", - "typescript": "5.2.1-rc" + "typescript": "5.2.2" }, "packageManager": "yarn@3.6.2" } diff --git a/packages/scope-manager/src/lib/decorators.legacy.ts b/packages/scope-manager/src/lib/decorators.legacy.ts index 8a02028b68e9..17e5d2041bb5 100644 --- a/packages/scope-manager/src/lib/decorators.legacy.ts +++ b/packages/scope-manager/src/lib/decorators.legacy.ts @@ -3,7 +3,7 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import type { ImplicitLibVariableOptions } from '../variable'; +import { ImplicitLibVariableOptions } from '../variable'; import { TYPE } from './base-config'; export const decorators_legacy = { diff --git a/packages/scope-manager/src/lib/decorators.ts b/packages/scope-manager/src/lib/decorators.ts index 958281bea4c2..d1229602fb6c 100644 --- a/packages/scope-manager/src/lib/decorators.ts +++ b/packages/scope-manager/src/lib/decorators.ts @@ -3,7 +3,7 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import type { ImplicitLibVariableOptions } from '../variable'; +import { ImplicitLibVariableOptions } from '../variable'; import { TYPE } from './base-config'; export const decorators = { diff --git a/packages/scope-manager/src/lib/dom.iterable.ts b/packages/scope-manager/src/lib/dom.iterable.ts index 594de3c38f14..b1e1e02b8c2f 100644 --- a/packages/scope-manager/src/lib/dom.iterable.ts +++ b/packages/scope-manager/src/lib/dom.iterable.ts @@ -3,7 +3,7 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import type { ImplicitLibVariableOptions } from '../variable'; +import { ImplicitLibVariableOptions } from '../variable'; import { TYPE } from './base-config'; export const dom_iterable = { diff --git a/packages/scope-manager/src/lib/dom.ts b/packages/scope-manager/src/lib/dom.ts index 462c92498668..3c458e09a23d 100644 --- a/packages/scope-manager/src/lib/dom.ts +++ b/packages/scope-manager/src/lib/dom.ts @@ -3,7 +3,7 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import type { ImplicitLibVariableOptions } from '../variable'; +import { ImplicitLibVariableOptions } from '../variable'; import { TYPE, TYPE_VALUE } from './base-config'; export const dom = { diff --git a/packages/scope-manager/src/lib/es2015.collection.ts b/packages/scope-manager/src/lib/es2015.collection.ts index 51386ebcc748..98933f1c1fda 100644 --- a/packages/scope-manager/src/lib/es2015.collection.ts +++ b/packages/scope-manager/src/lib/es2015.collection.ts @@ -3,8 +3,8 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import type { ImplicitLibVariableOptions } from '../variable'; -import { TYPE, TYPE_VALUE } from './base-config'; +import { ImplicitLibVariableOptions } from '../variable'; +import { TYPE_VALUE, TYPE } from './base-config'; export const es2015_collection = { Map: TYPE_VALUE, diff --git a/packages/scope-manager/src/lib/es2015.core.ts b/packages/scope-manager/src/lib/es2015.core.ts index f9475d7db1d6..ba44cf290b4e 100644 --- a/packages/scope-manager/src/lib/es2015.core.ts +++ b/packages/scope-manager/src/lib/es2015.core.ts @@ -3,7 +3,7 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import type { ImplicitLibVariableOptions } from '../variable'; +import { ImplicitLibVariableOptions } from '../variable'; import { TYPE } from './base-config'; export const es2015_core = { diff --git a/packages/scope-manager/src/lib/es2015.generator.ts b/packages/scope-manager/src/lib/es2015.generator.ts index 90d26e1ea0de..f5dce9611ae2 100644 --- a/packages/scope-manager/src/lib/es2015.generator.ts +++ b/packages/scope-manager/src/lib/es2015.generator.ts @@ -3,9 +3,9 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import type { ImplicitLibVariableOptions } from '../variable'; -import { TYPE } from './base-config'; +import { ImplicitLibVariableOptions } from '../variable'; import { es2015_iterable } from './es2015.iterable'; +import { TYPE } from './base-config'; export const es2015_generator = { ...es2015_iterable, diff --git a/packages/scope-manager/src/lib/es2015.iterable.ts b/packages/scope-manager/src/lib/es2015.iterable.ts index 2ab60a44b842..d27ab2efcc67 100644 --- a/packages/scope-manager/src/lib/es2015.iterable.ts +++ b/packages/scope-manager/src/lib/es2015.iterable.ts @@ -3,9 +3,9 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import type { ImplicitLibVariableOptions } from '../variable'; -import { TYPE } from './base-config'; +import { ImplicitLibVariableOptions } from '../variable'; import { es2015_symbol } from './es2015.symbol'; +import { TYPE } from './base-config'; export const es2015_iterable = { ...es2015_symbol, diff --git a/packages/scope-manager/src/lib/es2015.promise.ts b/packages/scope-manager/src/lib/es2015.promise.ts index a3896e0f46f6..1334b2abca4f 100644 --- a/packages/scope-manager/src/lib/es2015.promise.ts +++ b/packages/scope-manager/src/lib/es2015.promise.ts @@ -3,7 +3,7 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import type { ImplicitLibVariableOptions } from '../variable'; +import { ImplicitLibVariableOptions } from '../variable'; import { TYPE } from './base-config'; export const es2015_promise = { diff --git a/packages/scope-manager/src/lib/es2015.proxy.ts b/packages/scope-manager/src/lib/es2015.proxy.ts index 2dbc6e222639..d2c0d9b66162 100644 --- a/packages/scope-manager/src/lib/es2015.proxy.ts +++ b/packages/scope-manager/src/lib/es2015.proxy.ts @@ -3,7 +3,7 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import type { ImplicitLibVariableOptions } from '../variable'; +import { ImplicitLibVariableOptions } from '../variable'; import { TYPE } from './base-config'; export const es2015_proxy = { diff --git a/packages/scope-manager/src/lib/es2015.reflect.ts b/packages/scope-manager/src/lib/es2015.reflect.ts index dcc2a5d910bf..4a71e4b9deff 100644 --- a/packages/scope-manager/src/lib/es2015.reflect.ts +++ b/packages/scope-manager/src/lib/es2015.reflect.ts @@ -3,7 +3,7 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import type { ImplicitLibVariableOptions } from '../variable'; +import { ImplicitLibVariableOptions } from '../variable'; import { TYPE_VALUE } from './base-config'; export const es2015_reflect = { diff --git a/packages/scope-manager/src/lib/es2015.symbol.ts b/packages/scope-manager/src/lib/es2015.symbol.ts index eef09036f87d..c027cae3b382 100644 --- a/packages/scope-manager/src/lib/es2015.symbol.ts +++ b/packages/scope-manager/src/lib/es2015.symbol.ts @@ -3,7 +3,7 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import type { ImplicitLibVariableOptions } from '../variable'; +import { ImplicitLibVariableOptions } from '../variable'; import { TYPE } from './base-config'; export const es2015_symbol = { diff --git a/packages/scope-manager/src/lib/es2015.symbol.wellknown.ts b/packages/scope-manager/src/lib/es2015.symbol.wellknown.ts index 94e522cfe03d..4e7b82dbe72f 100644 --- a/packages/scope-manager/src/lib/es2015.symbol.wellknown.ts +++ b/packages/scope-manager/src/lib/es2015.symbol.wellknown.ts @@ -3,9 +3,9 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import type { ImplicitLibVariableOptions } from '../variable'; -import { TYPE } from './base-config'; +import { ImplicitLibVariableOptions } from '../variable'; import { es2015_symbol } from './es2015.symbol'; +import { TYPE } from './base-config'; export const es2015_symbol_wellknown = { ...es2015_symbol, diff --git a/packages/scope-manager/src/lib/es2015.ts b/packages/scope-manager/src/lib/es2015.ts index f6a8aa8ab73e..9e225bddb33d 100644 --- a/packages/scope-manager/src/lib/es2015.ts +++ b/packages/scope-manager/src/lib/es2015.ts @@ -3,12 +3,12 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import type { ImplicitLibVariableOptions } from '../variable'; +import { ImplicitLibVariableOptions } from '../variable'; import { es5 } from './es5'; -import { es2015_collection } from './es2015.collection'; import { es2015_core } from './es2015.core'; -import { es2015_generator } from './es2015.generator'; +import { es2015_collection } from './es2015.collection'; import { es2015_iterable } from './es2015.iterable'; +import { es2015_generator } from './es2015.generator'; import { es2015_promise } from './es2015.promise'; import { es2015_proxy } from './es2015.proxy'; import { es2015_reflect } from './es2015.reflect'; diff --git a/packages/scope-manager/src/lib/es2016.array.include.ts b/packages/scope-manager/src/lib/es2016.array.include.ts index 17c927bd467c..7cab0a4c84dd 100644 --- a/packages/scope-manager/src/lib/es2016.array.include.ts +++ b/packages/scope-manager/src/lib/es2016.array.include.ts @@ -3,7 +3,7 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import type { ImplicitLibVariableOptions } from '../variable'; +import { ImplicitLibVariableOptions } from '../variable'; import { TYPE } from './base-config'; export const es2016_array_include = { diff --git a/packages/scope-manager/src/lib/es2016.full.ts b/packages/scope-manager/src/lib/es2016.full.ts index e7fb9802cb76..cfc4632c7dad 100644 --- a/packages/scope-manager/src/lib/es2016.full.ts +++ b/packages/scope-manager/src/lib/es2016.full.ts @@ -3,12 +3,12 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import type { ImplicitLibVariableOptions } from '../variable'; -import { dom } from './dom'; -import { dom_iterable } from './dom.iterable'; +import { ImplicitLibVariableOptions } from '../variable'; import { es2016 } from './es2016'; -import { scripthost } from './scripthost'; +import { dom } from './dom'; import { webworker_importscripts } from './webworker.importscripts'; +import { scripthost } from './scripthost'; +import { dom_iterable } from './dom.iterable'; export const es2016_full = { ...es2016, diff --git a/packages/scope-manager/src/lib/es2016.ts b/packages/scope-manager/src/lib/es2016.ts index f00abac6c4f3..f4ac61374c33 100644 --- a/packages/scope-manager/src/lib/es2016.ts +++ b/packages/scope-manager/src/lib/es2016.ts @@ -3,7 +3,7 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import type { ImplicitLibVariableOptions } from '../variable'; +import { ImplicitLibVariableOptions } from '../variable'; import { es2015 } from './es2015'; import { es2016_array_include } from './es2016.array.include'; diff --git a/packages/scope-manager/src/lib/es2017.date.ts b/packages/scope-manager/src/lib/es2017.date.ts index 031a79e51fcb..7dcf903afd80 100644 --- a/packages/scope-manager/src/lib/es2017.date.ts +++ b/packages/scope-manager/src/lib/es2017.date.ts @@ -3,7 +3,7 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import type { ImplicitLibVariableOptions } from '../variable'; +import { ImplicitLibVariableOptions } from '../variable'; import { TYPE } from './base-config'; export const es2017_date = { diff --git a/packages/scope-manager/src/lib/es2017.full.ts b/packages/scope-manager/src/lib/es2017.full.ts index a1d8c386bb42..26d2c2b1f8c3 100644 --- a/packages/scope-manager/src/lib/es2017.full.ts +++ b/packages/scope-manager/src/lib/es2017.full.ts @@ -3,12 +3,12 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import type { ImplicitLibVariableOptions } from '../variable'; -import { dom } from './dom'; -import { dom_iterable } from './dom.iterable'; +import { ImplicitLibVariableOptions } from '../variable'; import { es2017 } from './es2017'; -import { scripthost } from './scripthost'; +import { dom } from './dom'; import { webworker_importscripts } from './webworker.importscripts'; +import { scripthost } from './scripthost'; +import { dom_iterable } from './dom.iterable'; export const es2017_full = { ...es2017, diff --git a/packages/scope-manager/src/lib/es2017.intl.ts b/packages/scope-manager/src/lib/es2017.intl.ts index b8f1325672e9..48e7fe21715e 100644 --- a/packages/scope-manager/src/lib/es2017.intl.ts +++ b/packages/scope-manager/src/lib/es2017.intl.ts @@ -3,7 +3,7 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import type { ImplicitLibVariableOptions } from '../variable'; +import { ImplicitLibVariableOptions } from '../variable'; import { TYPE_VALUE } from './base-config'; export const es2017_intl = { diff --git a/packages/scope-manager/src/lib/es2017.object.ts b/packages/scope-manager/src/lib/es2017.object.ts index 66bea4e7d3f6..17344ec65912 100644 --- a/packages/scope-manager/src/lib/es2017.object.ts +++ b/packages/scope-manager/src/lib/es2017.object.ts @@ -3,7 +3,7 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import type { ImplicitLibVariableOptions } from '../variable'; +import { ImplicitLibVariableOptions } from '../variable'; import { TYPE } from './base-config'; export const es2017_object = { diff --git a/packages/scope-manager/src/lib/es2017.sharedmemory.ts b/packages/scope-manager/src/lib/es2017.sharedmemory.ts index 998d41493fd5..d5f3c8970b2c 100644 --- a/packages/scope-manager/src/lib/es2017.sharedmemory.ts +++ b/packages/scope-manager/src/lib/es2017.sharedmemory.ts @@ -3,10 +3,10 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import type { ImplicitLibVariableOptions } from '../variable'; -import { TYPE, TYPE_VALUE } from './base-config'; +import { ImplicitLibVariableOptions } from '../variable'; import { es2015_symbol } from './es2015.symbol'; import { es2015_symbol_wellknown } from './es2015.symbol.wellknown'; +import { TYPE_VALUE, TYPE } from './base-config'; export const es2017_sharedmemory = { ...es2015_symbol, diff --git a/packages/scope-manager/src/lib/es2017.string.ts b/packages/scope-manager/src/lib/es2017.string.ts index 64ec52f30745..8ca832f3cf83 100644 --- a/packages/scope-manager/src/lib/es2017.string.ts +++ b/packages/scope-manager/src/lib/es2017.string.ts @@ -3,7 +3,7 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import type { ImplicitLibVariableOptions } from '../variable'; +import { ImplicitLibVariableOptions } from '../variable'; import { TYPE } from './base-config'; export const es2017_string = { diff --git a/packages/scope-manager/src/lib/es2017.ts b/packages/scope-manager/src/lib/es2017.ts index ec07b52c5a44..acba2c9b6e21 100644 --- a/packages/scope-manager/src/lib/es2017.ts +++ b/packages/scope-manager/src/lib/es2017.ts @@ -3,14 +3,14 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import type { ImplicitLibVariableOptions } from '../variable'; +import { ImplicitLibVariableOptions } from '../variable'; import { es2016 } from './es2016'; -import { es2017_date } from './es2017.date'; -import { es2017_intl } from './es2017.intl'; import { es2017_object } from './es2017.object'; import { es2017_sharedmemory } from './es2017.sharedmemory'; import { es2017_string } from './es2017.string'; +import { es2017_intl } from './es2017.intl'; import { es2017_typedarrays } from './es2017.typedarrays'; +import { es2017_date } from './es2017.date'; export const es2017 = { ...es2016, diff --git a/packages/scope-manager/src/lib/es2017.typedarrays.ts b/packages/scope-manager/src/lib/es2017.typedarrays.ts index 8fdb9a962812..0c9a43160b86 100644 --- a/packages/scope-manager/src/lib/es2017.typedarrays.ts +++ b/packages/scope-manager/src/lib/es2017.typedarrays.ts @@ -3,7 +3,7 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import type { ImplicitLibVariableOptions } from '../variable'; +import { ImplicitLibVariableOptions } from '../variable'; import { TYPE } from './base-config'; export const es2017_typedarrays = { diff --git a/packages/scope-manager/src/lib/es2018.asyncgenerator.ts b/packages/scope-manager/src/lib/es2018.asyncgenerator.ts index 5af8bd0a6630..68f67bd6483a 100644 --- a/packages/scope-manager/src/lib/es2018.asyncgenerator.ts +++ b/packages/scope-manager/src/lib/es2018.asyncgenerator.ts @@ -3,9 +3,9 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import type { ImplicitLibVariableOptions } from '../variable'; -import { TYPE } from './base-config'; +import { ImplicitLibVariableOptions } from '../variable'; import { es2018_asynciterable } from './es2018.asynciterable'; +import { TYPE } from './base-config'; export const es2018_asyncgenerator = { ...es2018_asynciterable, diff --git a/packages/scope-manager/src/lib/es2018.asynciterable.ts b/packages/scope-manager/src/lib/es2018.asynciterable.ts index 5d4e373ef768..ce4aebafb0dc 100644 --- a/packages/scope-manager/src/lib/es2018.asynciterable.ts +++ b/packages/scope-manager/src/lib/es2018.asynciterable.ts @@ -3,10 +3,10 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import type { ImplicitLibVariableOptions } from '../variable'; -import { TYPE } from './base-config'; -import { es2015_iterable } from './es2015.iterable'; +import { ImplicitLibVariableOptions } from '../variable'; import { es2015_symbol } from './es2015.symbol'; +import { es2015_iterable } from './es2015.iterable'; +import { TYPE } from './base-config'; export const es2018_asynciterable = { ...es2015_symbol, diff --git a/packages/scope-manager/src/lib/es2018.full.ts b/packages/scope-manager/src/lib/es2018.full.ts index 802e30c6659e..8e0ab3621f26 100644 --- a/packages/scope-manager/src/lib/es2018.full.ts +++ b/packages/scope-manager/src/lib/es2018.full.ts @@ -3,12 +3,12 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import type { ImplicitLibVariableOptions } from '../variable'; -import { dom } from './dom'; -import { dom_iterable } from './dom.iterable'; +import { ImplicitLibVariableOptions } from '../variable'; import { es2018 } from './es2018'; -import { scripthost } from './scripthost'; +import { dom } from './dom'; import { webworker_importscripts } from './webworker.importscripts'; +import { scripthost } from './scripthost'; +import { dom_iterable } from './dom.iterable'; export const es2018_full = { ...es2018, diff --git a/packages/scope-manager/src/lib/es2018.intl.ts b/packages/scope-manager/src/lib/es2018.intl.ts index 9736c0ba48a0..8496761b2d21 100644 --- a/packages/scope-manager/src/lib/es2018.intl.ts +++ b/packages/scope-manager/src/lib/es2018.intl.ts @@ -3,7 +3,7 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import type { ImplicitLibVariableOptions } from '../variable'; +import { ImplicitLibVariableOptions } from '../variable'; import { TYPE_VALUE } from './base-config'; export const es2018_intl = { diff --git a/packages/scope-manager/src/lib/es2018.promise.ts b/packages/scope-manager/src/lib/es2018.promise.ts index ac1e02d8a053..cc74f3b02b86 100644 --- a/packages/scope-manager/src/lib/es2018.promise.ts +++ b/packages/scope-manager/src/lib/es2018.promise.ts @@ -3,7 +3,7 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import type { ImplicitLibVariableOptions } from '../variable'; +import { ImplicitLibVariableOptions } from '../variable'; import { TYPE } from './base-config'; export const es2018_promise = { diff --git a/packages/scope-manager/src/lib/es2018.regexp.ts b/packages/scope-manager/src/lib/es2018.regexp.ts index 0fdf10f793a3..7c1ca120117c 100644 --- a/packages/scope-manager/src/lib/es2018.regexp.ts +++ b/packages/scope-manager/src/lib/es2018.regexp.ts @@ -3,7 +3,7 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import type { ImplicitLibVariableOptions } from '../variable'; +import { ImplicitLibVariableOptions } from '../variable'; import { TYPE } from './base-config'; export const es2018_regexp = { diff --git a/packages/scope-manager/src/lib/es2018.ts b/packages/scope-manager/src/lib/es2018.ts index d79390a3b87a..a3b3fbe508cc 100644 --- a/packages/scope-manager/src/lib/es2018.ts +++ b/packages/scope-manager/src/lib/es2018.ts @@ -3,13 +3,13 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import type { ImplicitLibVariableOptions } from '../variable'; +import { ImplicitLibVariableOptions } from '../variable'; import { es2017 } from './es2017'; -import { es2018_asyncgenerator } from './es2018.asyncgenerator'; import { es2018_asynciterable } from './es2018.asynciterable'; -import { es2018_intl } from './es2018.intl'; +import { es2018_asyncgenerator } from './es2018.asyncgenerator'; import { es2018_promise } from './es2018.promise'; import { es2018_regexp } from './es2018.regexp'; +import { es2018_intl } from './es2018.intl'; export const es2018 = { ...es2017, diff --git a/packages/scope-manager/src/lib/es2019.array.ts b/packages/scope-manager/src/lib/es2019.array.ts index b682bb044575..6d814131f529 100644 --- a/packages/scope-manager/src/lib/es2019.array.ts +++ b/packages/scope-manager/src/lib/es2019.array.ts @@ -3,7 +3,7 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import type { ImplicitLibVariableOptions } from '../variable'; +import { ImplicitLibVariableOptions } from '../variable'; import { TYPE } from './base-config'; export const es2019_array = { diff --git a/packages/scope-manager/src/lib/es2019.full.ts b/packages/scope-manager/src/lib/es2019.full.ts index 8cee3178bc68..a97c713f5a00 100644 --- a/packages/scope-manager/src/lib/es2019.full.ts +++ b/packages/scope-manager/src/lib/es2019.full.ts @@ -3,12 +3,12 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import type { ImplicitLibVariableOptions } from '../variable'; -import { dom } from './dom'; -import { dom_iterable } from './dom.iterable'; +import { ImplicitLibVariableOptions } from '../variable'; import { es2019 } from './es2019'; -import { scripthost } from './scripthost'; +import { dom } from './dom'; import { webworker_importscripts } from './webworker.importscripts'; +import { scripthost } from './scripthost'; +import { dom_iterable } from './dom.iterable'; export const es2019_full = { ...es2019, diff --git a/packages/scope-manager/src/lib/es2019.intl.ts b/packages/scope-manager/src/lib/es2019.intl.ts index 64b46f40ebbc..8e44ef6d0cd9 100644 --- a/packages/scope-manager/src/lib/es2019.intl.ts +++ b/packages/scope-manager/src/lib/es2019.intl.ts @@ -3,7 +3,7 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import type { ImplicitLibVariableOptions } from '../variable'; +import { ImplicitLibVariableOptions } from '../variable'; import { TYPE_VALUE } from './base-config'; export const es2019_intl = { diff --git a/packages/scope-manager/src/lib/es2019.object.ts b/packages/scope-manager/src/lib/es2019.object.ts index f1f113ed54d5..87f3bb33f458 100644 --- a/packages/scope-manager/src/lib/es2019.object.ts +++ b/packages/scope-manager/src/lib/es2019.object.ts @@ -3,9 +3,9 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import type { ImplicitLibVariableOptions } from '../variable'; -import { TYPE } from './base-config'; +import { ImplicitLibVariableOptions } from '../variable'; import { es2015_iterable } from './es2015.iterable'; +import { TYPE } from './base-config'; export const es2019_object = { ...es2015_iterable, diff --git a/packages/scope-manager/src/lib/es2019.string.ts b/packages/scope-manager/src/lib/es2019.string.ts index eae2a44d3761..af1f1f8f2b5c 100644 --- a/packages/scope-manager/src/lib/es2019.string.ts +++ b/packages/scope-manager/src/lib/es2019.string.ts @@ -3,7 +3,7 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import type { ImplicitLibVariableOptions } from '../variable'; +import { ImplicitLibVariableOptions } from '../variable'; import { TYPE } from './base-config'; export const es2019_string = { diff --git a/packages/scope-manager/src/lib/es2019.symbol.ts b/packages/scope-manager/src/lib/es2019.symbol.ts index b39b41add7a1..5c8a1fd2894d 100644 --- a/packages/scope-manager/src/lib/es2019.symbol.ts +++ b/packages/scope-manager/src/lib/es2019.symbol.ts @@ -3,7 +3,7 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import type { ImplicitLibVariableOptions } from '../variable'; +import { ImplicitLibVariableOptions } from '../variable'; import { TYPE } from './base-config'; export const es2019_symbol = { diff --git a/packages/scope-manager/src/lib/es2019.ts b/packages/scope-manager/src/lib/es2019.ts index cd6d33c1f5d7..e41e53c1524e 100644 --- a/packages/scope-manager/src/lib/es2019.ts +++ b/packages/scope-manager/src/lib/es2019.ts @@ -3,13 +3,13 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import type { ImplicitLibVariableOptions } from '../variable'; +import { ImplicitLibVariableOptions } from '../variable'; import { es2018 } from './es2018'; import { es2019_array } from './es2019.array'; -import { es2019_intl } from './es2019.intl'; import { es2019_object } from './es2019.object'; import { es2019_string } from './es2019.string'; import { es2019_symbol } from './es2019.symbol'; +import { es2019_intl } from './es2019.intl'; export const es2019 = { ...es2018, diff --git a/packages/scope-manager/src/lib/es2020.bigint.ts b/packages/scope-manager/src/lib/es2020.bigint.ts index 52fbba1ca2ea..3444dc701a21 100644 --- a/packages/scope-manager/src/lib/es2020.bigint.ts +++ b/packages/scope-manager/src/lib/es2020.bigint.ts @@ -3,9 +3,9 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import type { ImplicitLibVariableOptions } from '../variable'; -import { TYPE, TYPE_VALUE } from './base-config'; +import { ImplicitLibVariableOptions } from '../variable'; import { es2020_intl } from './es2020.intl'; +import { TYPE, TYPE_VALUE } from './base-config'; export const es2020_bigint = { ...es2020_intl, diff --git a/packages/scope-manager/src/lib/es2020.date.ts b/packages/scope-manager/src/lib/es2020.date.ts index b4c3d319deb3..1a5ed0d23f3e 100644 --- a/packages/scope-manager/src/lib/es2020.date.ts +++ b/packages/scope-manager/src/lib/es2020.date.ts @@ -3,9 +3,9 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import type { ImplicitLibVariableOptions } from '../variable'; -import { TYPE } from './base-config'; +import { ImplicitLibVariableOptions } from '../variable'; import { es2020_intl } from './es2020.intl'; +import { TYPE } from './base-config'; export const es2020_date = { ...es2020_intl, diff --git a/packages/scope-manager/src/lib/es2020.full.ts b/packages/scope-manager/src/lib/es2020.full.ts index 1de20eaecc4e..6467ba7818d4 100644 --- a/packages/scope-manager/src/lib/es2020.full.ts +++ b/packages/scope-manager/src/lib/es2020.full.ts @@ -3,12 +3,12 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import type { ImplicitLibVariableOptions } from '../variable'; -import { dom } from './dom'; -import { dom_iterable } from './dom.iterable'; +import { ImplicitLibVariableOptions } from '../variable'; import { es2020 } from './es2020'; -import { scripthost } from './scripthost'; +import { dom } from './dom'; import { webworker_importscripts } from './webworker.importscripts'; +import { scripthost } from './scripthost'; +import { dom_iterable } from './dom.iterable'; export const es2020_full = { ...es2020, diff --git a/packages/scope-manager/src/lib/es2020.intl.ts b/packages/scope-manager/src/lib/es2020.intl.ts index 2866dde791e8..6cf997c0ca37 100644 --- a/packages/scope-manager/src/lib/es2020.intl.ts +++ b/packages/scope-manager/src/lib/es2020.intl.ts @@ -3,9 +3,9 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import type { ImplicitLibVariableOptions } from '../variable'; -import { TYPE_VALUE } from './base-config'; +import { ImplicitLibVariableOptions } from '../variable'; import { es2018_intl } from './es2018.intl'; +import { TYPE_VALUE } from './base-config'; export const es2020_intl = { ...es2018_intl, diff --git a/packages/scope-manager/src/lib/es2020.number.ts b/packages/scope-manager/src/lib/es2020.number.ts index 445b60733640..04ba01bc4bf3 100644 --- a/packages/scope-manager/src/lib/es2020.number.ts +++ b/packages/scope-manager/src/lib/es2020.number.ts @@ -3,9 +3,9 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import type { ImplicitLibVariableOptions } from '../variable'; -import { TYPE } from './base-config'; +import { ImplicitLibVariableOptions } from '../variable'; import { es2020_intl } from './es2020.intl'; +import { TYPE } from './base-config'; export const es2020_number = { ...es2020_intl, diff --git a/packages/scope-manager/src/lib/es2020.promise.ts b/packages/scope-manager/src/lib/es2020.promise.ts index 0352586806d4..c875a4c7b316 100644 --- a/packages/scope-manager/src/lib/es2020.promise.ts +++ b/packages/scope-manager/src/lib/es2020.promise.ts @@ -3,7 +3,7 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import type { ImplicitLibVariableOptions } from '../variable'; +import { ImplicitLibVariableOptions } from '../variable'; import { TYPE } from './base-config'; export const es2020_promise = { diff --git a/packages/scope-manager/src/lib/es2020.sharedmemory.ts b/packages/scope-manager/src/lib/es2020.sharedmemory.ts index 180e291c0cc2..e927965e621b 100644 --- a/packages/scope-manager/src/lib/es2020.sharedmemory.ts +++ b/packages/scope-manager/src/lib/es2020.sharedmemory.ts @@ -3,7 +3,7 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import type { ImplicitLibVariableOptions } from '../variable'; +import { ImplicitLibVariableOptions } from '../variable'; import { TYPE } from './base-config'; export const es2020_sharedmemory = { diff --git a/packages/scope-manager/src/lib/es2020.string.ts b/packages/scope-manager/src/lib/es2020.string.ts index ef0a81e1ca87..c33be91dd3f9 100644 --- a/packages/scope-manager/src/lib/es2020.string.ts +++ b/packages/scope-manager/src/lib/es2020.string.ts @@ -3,9 +3,9 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import type { ImplicitLibVariableOptions } from '../variable'; -import { TYPE } from './base-config'; +import { ImplicitLibVariableOptions } from '../variable'; import { es2015_iterable } from './es2015.iterable'; +import { TYPE } from './base-config'; export const es2020_string = { ...es2015_iterable, diff --git a/packages/scope-manager/src/lib/es2020.symbol.wellknown.ts b/packages/scope-manager/src/lib/es2020.symbol.wellknown.ts index 1e1047000322..db8d79e9f44b 100644 --- a/packages/scope-manager/src/lib/es2020.symbol.wellknown.ts +++ b/packages/scope-manager/src/lib/es2020.symbol.wellknown.ts @@ -3,10 +3,10 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import type { ImplicitLibVariableOptions } from '../variable'; -import { TYPE } from './base-config'; +import { ImplicitLibVariableOptions } from '../variable'; import { es2015_iterable } from './es2015.iterable'; import { es2015_symbol } from './es2015.symbol'; +import { TYPE } from './base-config'; export const es2020_symbol_wellknown = { ...es2015_iterable, diff --git a/packages/scope-manager/src/lib/es2020.ts b/packages/scope-manager/src/lib/es2020.ts index c6b1140596ba..3a89464f4563 100644 --- a/packages/scope-manager/src/lib/es2020.ts +++ b/packages/scope-manager/src/lib/es2020.ts @@ -3,16 +3,16 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import type { ImplicitLibVariableOptions } from '../variable'; +import { ImplicitLibVariableOptions } from '../variable'; import { es2019 } from './es2019'; import { es2020_bigint } from './es2020.bigint'; import { es2020_date } from './es2020.date'; -import { es2020_intl } from './es2020.intl'; import { es2020_number } from './es2020.number'; import { es2020_promise } from './es2020.promise'; import { es2020_sharedmemory } from './es2020.sharedmemory'; import { es2020_string } from './es2020.string'; import { es2020_symbol_wellknown } from './es2020.symbol.wellknown'; +import { es2020_intl } from './es2020.intl'; export const es2020 = { ...es2019, diff --git a/packages/scope-manager/src/lib/es2021.full.ts b/packages/scope-manager/src/lib/es2021.full.ts index e45a862ff2bd..2bf87c06e1ae 100644 --- a/packages/scope-manager/src/lib/es2021.full.ts +++ b/packages/scope-manager/src/lib/es2021.full.ts @@ -3,12 +3,12 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import type { ImplicitLibVariableOptions } from '../variable'; -import { dom } from './dom'; -import { dom_iterable } from './dom.iterable'; +import { ImplicitLibVariableOptions } from '../variable'; import { es2021 } from './es2021'; -import { scripthost } from './scripthost'; +import { dom } from './dom'; import { webworker_importscripts } from './webworker.importscripts'; +import { scripthost } from './scripthost'; +import { dom_iterable } from './dom.iterable'; export const es2021_full = { ...es2021, diff --git a/packages/scope-manager/src/lib/es2021.intl.ts b/packages/scope-manager/src/lib/es2021.intl.ts index e8cebf8ed078..f73cbe394ab5 100644 --- a/packages/scope-manager/src/lib/es2021.intl.ts +++ b/packages/scope-manager/src/lib/es2021.intl.ts @@ -3,7 +3,7 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import type { ImplicitLibVariableOptions } from '../variable'; +import { ImplicitLibVariableOptions } from '../variable'; import { TYPE_VALUE } from './base-config'; export const es2021_intl = { diff --git a/packages/scope-manager/src/lib/es2021.promise.ts b/packages/scope-manager/src/lib/es2021.promise.ts index 20d1f1b313cc..3607632e743c 100644 --- a/packages/scope-manager/src/lib/es2021.promise.ts +++ b/packages/scope-manager/src/lib/es2021.promise.ts @@ -3,8 +3,8 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import type { ImplicitLibVariableOptions } from '../variable'; -import { TYPE, TYPE_VALUE } from './base-config'; +import { ImplicitLibVariableOptions } from '../variable'; +import { TYPE_VALUE, TYPE } from './base-config'; export const es2021_promise = { AggregateError: TYPE_VALUE, diff --git a/packages/scope-manager/src/lib/es2021.string.ts b/packages/scope-manager/src/lib/es2021.string.ts index 8b7aa25c5a5c..28e9af00f37a 100644 --- a/packages/scope-manager/src/lib/es2021.string.ts +++ b/packages/scope-manager/src/lib/es2021.string.ts @@ -3,7 +3,7 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import type { ImplicitLibVariableOptions } from '../variable'; +import { ImplicitLibVariableOptions } from '../variable'; import { TYPE } from './base-config'; export const es2021_string = { diff --git a/packages/scope-manager/src/lib/es2021.ts b/packages/scope-manager/src/lib/es2021.ts index c54cfc31ccbd..43fd33f9abe1 100644 --- a/packages/scope-manager/src/lib/es2021.ts +++ b/packages/scope-manager/src/lib/es2021.ts @@ -3,12 +3,12 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import type { ImplicitLibVariableOptions } from '../variable'; +import { ImplicitLibVariableOptions } from '../variable'; import { es2020 } from './es2020'; -import { es2021_intl } from './es2021.intl'; import { es2021_promise } from './es2021.promise'; import { es2021_string } from './es2021.string'; import { es2021_weakref } from './es2021.weakref'; +import { es2021_intl } from './es2021.intl'; export const es2021 = { ...es2020, diff --git a/packages/scope-manager/src/lib/es2021.weakref.ts b/packages/scope-manager/src/lib/es2021.weakref.ts index a65c90a8058b..4a7ee2ea44c2 100644 --- a/packages/scope-manager/src/lib/es2021.weakref.ts +++ b/packages/scope-manager/src/lib/es2021.weakref.ts @@ -3,8 +3,8 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import type { ImplicitLibVariableOptions } from '../variable'; -import { TYPE, TYPE_VALUE } from './base-config'; +import { ImplicitLibVariableOptions } from '../variable'; +import { TYPE_VALUE, TYPE } from './base-config'; export const es2021_weakref = { WeakRef: TYPE_VALUE, diff --git a/packages/scope-manager/src/lib/es2022.array.ts b/packages/scope-manager/src/lib/es2022.array.ts index 3927f26851e2..95785becd3de 100644 --- a/packages/scope-manager/src/lib/es2022.array.ts +++ b/packages/scope-manager/src/lib/es2022.array.ts @@ -3,7 +3,7 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import type { ImplicitLibVariableOptions } from '../variable'; +import { ImplicitLibVariableOptions } from '../variable'; import { TYPE } from './base-config'; export const es2022_array = { diff --git a/packages/scope-manager/src/lib/es2022.error.ts b/packages/scope-manager/src/lib/es2022.error.ts index 282f66648bb4..f1e1bc2fa0f7 100644 --- a/packages/scope-manager/src/lib/es2022.error.ts +++ b/packages/scope-manager/src/lib/es2022.error.ts @@ -3,7 +3,7 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import type { ImplicitLibVariableOptions } from '../variable'; +import { ImplicitLibVariableOptions } from '../variable'; import { TYPE } from './base-config'; export const es2022_error = { diff --git a/packages/scope-manager/src/lib/es2022.full.ts b/packages/scope-manager/src/lib/es2022.full.ts index 1cf84cd17eb7..3ef0dd62ecae 100644 --- a/packages/scope-manager/src/lib/es2022.full.ts +++ b/packages/scope-manager/src/lib/es2022.full.ts @@ -3,12 +3,12 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import type { ImplicitLibVariableOptions } from '../variable'; -import { dom } from './dom'; -import { dom_iterable } from './dom.iterable'; +import { ImplicitLibVariableOptions } from '../variable'; import { es2022 } from './es2022'; -import { scripthost } from './scripthost'; +import { dom } from './dom'; import { webworker_importscripts } from './webworker.importscripts'; +import { scripthost } from './scripthost'; +import { dom_iterable } from './dom.iterable'; export const es2022_full = { ...es2022, diff --git a/packages/scope-manager/src/lib/es2022.intl.ts b/packages/scope-manager/src/lib/es2022.intl.ts index 22c7fc5694df..f91ef8640a0a 100644 --- a/packages/scope-manager/src/lib/es2022.intl.ts +++ b/packages/scope-manager/src/lib/es2022.intl.ts @@ -3,7 +3,7 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import type { ImplicitLibVariableOptions } from '../variable'; +import { ImplicitLibVariableOptions } from '../variable'; import { TYPE_VALUE } from './base-config'; export const es2022_intl = { diff --git a/packages/scope-manager/src/lib/es2022.object.ts b/packages/scope-manager/src/lib/es2022.object.ts index ea209894d13d..650a01c38355 100644 --- a/packages/scope-manager/src/lib/es2022.object.ts +++ b/packages/scope-manager/src/lib/es2022.object.ts @@ -3,7 +3,7 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import type { ImplicitLibVariableOptions } from '../variable'; +import { ImplicitLibVariableOptions } from '../variable'; import { TYPE } from './base-config'; export const es2022_object = { diff --git a/packages/scope-manager/src/lib/es2022.regexp.ts b/packages/scope-manager/src/lib/es2022.regexp.ts index 85998ffe3682..ae83987de09b 100644 --- a/packages/scope-manager/src/lib/es2022.regexp.ts +++ b/packages/scope-manager/src/lib/es2022.regexp.ts @@ -3,7 +3,7 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import type { ImplicitLibVariableOptions } from '../variable'; +import { ImplicitLibVariableOptions } from '../variable'; import { TYPE } from './base-config'; export const es2022_regexp = { diff --git a/packages/scope-manager/src/lib/es2022.sharedmemory.ts b/packages/scope-manager/src/lib/es2022.sharedmemory.ts index 24d82d609120..8efb4b9d8c97 100644 --- a/packages/scope-manager/src/lib/es2022.sharedmemory.ts +++ b/packages/scope-manager/src/lib/es2022.sharedmemory.ts @@ -3,7 +3,7 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import type { ImplicitLibVariableOptions } from '../variable'; +import { ImplicitLibVariableOptions } from '../variable'; import { TYPE } from './base-config'; export const es2022_sharedmemory = { diff --git a/packages/scope-manager/src/lib/es2022.string.ts b/packages/scope-manager/src/lib/es2022.string.ts index 8cd490c9bc54..3c4e1a766cd7 100644 --- a/packages/scope-manager/src/lib/es2022.string.ts +++ b/packages/scope-manager/src/lib/es2022.string.ts @@ -3,7 +3,7 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import type { ImplicitLibVariableOptions } from '../variable'; +import { ImplicitLibVariableOptions } from '../variable'; import { TYPE } from './base-config'; export const es2022_string = { diff --git a/packages/scope-manager/src/lib/es2022.ts b/packages/scope-manager/src/lib/es2022.ts index 1e5eb867a2b6..004ebe2466a2 100644 --- a/packages/scope-manager/src/lib/es2022.ts +++ b/packages/scope-manager/src/lib/es2022.ts @@ -3,15 +3,15 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import type { ImplicitLibVariableOptions } from '../variable'; +import { ImplicitLibVariableOptions } from '../variable'; import { es2021 } from './es2021'; import { es2022_array } from './es2022.array'; import { es2022_error } from './es2022.error'; import { es2022_intl } from './es2022.intl'; import { es2022_object } from './es2022.object'; -import { es2022_regexp } from './es2022.regexp'; import { es2022_sharedmemory } from './es2022.sharedmemory'; import { es2022_string } from './es2022.string'; +import { es2022_regexp } from './es2022.regexp'; export const es2022 = { ...es2021, diff --git a/packages/scope-manager/src/lib/es2023.array.ts b/packages/scope-manager/src/lib/es2023.array.ts index 029b058a8cdd..87cc83e54c94 100644 --- a/packages/scope-manager/src/lib/es2023.array.ts +++ b/packages/scope-manager/src/lib/es2023.array.ts @@ -3,7 +3,7 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import type { ImplicitLibVariableOptions } from '../variable'; +import { ImplicitLibVariableOptions } from '../variable'; import { TYPE } from './base-config'; export const es2023_array = { diff --git a/packages/scope-manager/src/lib/es2023.collection.ts b/packages/scope-manager/src/lib/es2023.collection.ts index 12ef36c331b9..40fe6fe219ce 100644 --- a/packages/scope-manager/src/lib/es2023.collection.ts +++ b/packages/scope-manager/src/lib/es2023.collection.ts @@ -3,7 +3,7 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import type { ImplicitLibVariableOptions } from '../variable'; +import { ImplicitLibVariableOptions } from '../variable'; import { TYPE } from './base-config'; export const es2023_collection = { diff --git a/packages/scope-manager/src/lib/es2023.full.ts b/packages/scope-manager/src/lib/es2023.full.ts index b8a3c9310b6e..b42d1aa17023 100644 --- a/packages/scope-manager/src/lib/es2023.full.ts +++ b/packages/scope-manager/src/lib/es2023.full.ts @@ -3,12 +3,12 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import type { ImplicitLibVariableOptions } from '../variable'; -import { dom } from './dom'; -import { dom_iterable } from './dom.iterable'; +import { ImplicitLibVariableOptions } from '../variable'; import { es2023 } from './es2023'; -import { scripthost } from './scripthost'; +import { dom } from './dom'; import { webworker_importscripts } from './webworker.importscripts'; +import { scripthost } from './scripthost'; +import { dom_iterable } from './dom.iterable'; export const es2023_full = { ...es2023, diff --git a/packages/scope-manager/src/lib/es2023.ts b/packages/scope-manager/src/lib/es2023.ts index a3da668dd598..4509f1a85caf 100644 --- a/packages/scope-manager/src/lib/es2023.ts +++ b/packages/scope-manager/src/lib/es2023.ts @@ -3,7 +3,7 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import type { ImplicitLibVariableOptions } from '../variable'; +import { ImplicitLibVariableOptions } from '../variable'; import { es2022 } from './es2022'; import { es2023_array } from './es2023.array'; import { es2023_collection } from './es2023.collection'; diff --git a/packages/scope-manager/src/lib/es5.ts b/packages/scope-manager/src/lib/es5.ts index 9be707e1ff03..6ca668915821 100644 --- a/packages/scope-manager/src/lib/es5.ts +++ b/packages/scope-manager/src/lib/es5.ts @@ -3,10 +3,10 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import type { ImplicitLibVariableOptions } from '../variable'; -import { TYPE, TYPE_VALUE } from './base-config'; +import { ImplicitLibVariableOptions } from '../variable'; import { decorators } from './decorators'; import { decorators_legacy } from './decorators.legacy'; +import { TYPE, TYPE_VALUE } from './base-config'; export const es5 = { ...decorators, diff --git a/packages/scope-manager/src/lib/es6.ts b/packages/scope-manager/src/lib/es6.ts index 12bf80e84c90..57c3eca62344 100644 --- a/packages/scope-manager/src/lib/es6.ts +++ b/packages/scope-manager/src/lib/es6.ts @@ -3,12 +3,12 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import type { ImplicitLibVariableOptions } from '../variable'; +import { ImplicitLibVariableOptions } from '../variable'; import { es5 } from './es5'; -import { es2015_collection } from './es2015.collection'; import { es2015_core } from './es2015.core'; -import { es2015_generator } from './es2015.generator'; +import { es2015_collection } from './es2015.collection'; import { es2015_iterable } from './es2015.iterable'; +import { es2015_generator } from './es2015.generator'; import { es2015_promise } from './es2015.promise'; import { es2015_proxy } from './es2015.proxy'; import { es2015_reflect } from './es2015.reflect'; diff --git a/packages/scope-manager/src/lib/es7.ts b/packages/scope-manager/src/lib/es7.ts index e79a1dd39c78..dd0ae5bef609 100644 --- a/packages/scope-manager/src/lib/es7.ts +++ b/packages/scope-manager/src/lib/es7.ts @@ -3,7 +3,7 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import type { ImplicitLibVariableOptions } from '../variable'; +import { ImplicitLibVariableOptions } from '../variable'; import { es2015 } from './es2015'; import { es2016_array_include } from './es2016.array.include'; diff --git a/packages/scope-manager/src/lib/esnext.array.ts b/packages/scope-manager/src/lib/esnext.array.ts index e7d9824cf8c4..87709c583e43 100644 --- a/packages/scope-manager/src/lib/esnext.array.ts +++ b/packages/scope-manager/src/lib/esnext.array.ts @@ -3,7 +3,7 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import type { ImplicitLibVariableOptions } from '../variable'; +import { ImplicitLibVariableOptions } from '../variable'; import { TYPE } from './base-config'; export const esnext_array = { diff --git a/packages/scope-manager/src/lib/esnext.asynciterable.ts b/packages/scope-manager/src/lib/esnext.asynciterable.ts index 2479b1509049..22c97a070407 100644 --- a/packages/scope-manager/src/lib/esnext.asynciterable.ts +++ b/packages/scope-manager/src/lib/esnext.asynciterable.ts @@ -3,10 +3,10 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import type { ImplicitLibVariableOptions } from '../variable'; -import { TYPE } from './base-config'; -import { es2015_iterable } from './es2015.iterable'; +import { ImplicitLibVariableOptions } from '../variable'; import { es2015_symbol } from './es2015.symbol'; +import { es2015_iterable } from './es2015.iterable'; +import { TYPE } from './base-config'; export const esnext_asynciterable = { ...es2015_symbol, diff --git a/packages/scope-manager/src/lib/esnext.bigint.ts b/packages/scope-manager/src/lib/esnext.bigint.ts index ccd2ae93293d..079bc59bf87d 100644 --- a/packages/scope-manager/src/lib/esnext.bigint.ts +++ b/packages/scope-manager/src/lib/esnext.bigint.ts @@ -3,9 +3,9 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import type { ImplicitLibVariableOptions } from '../variable'; -import { TYPE, TYPE_VALUE } from './base-config'; +import { ImplicitLibVariableOptions } from '../variable'; import { es2020_intl } from './es2020.intl'; +import { TYPE, TYPE_VALUE } from './base-config'; export const esnext_bigint = { ...es2020_intl, diff --git a/packages/scope-manager/src/lib/esnext.collection.ts b/packages/scope-manager/src/lib/esnext.collection.ts index 2b5c49b7aebb..408f24b21f9a 100644 --- a/packages/scope-manager/src/lib/esnext.collection.ts +++ b/packages/scope-manager/src/lib/esnext.collection.ts @@ -3,7 +3,7 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import type { ImplicitLibVariableOptions } from '../variable'; +import { ImplicitLibVariableOptions } from '../variable'; import { TYPE } from './base-config'; export const esnext_collection = { diff --git a/packages/scope-manager/src/lib/esnext.decorators.ts b/packages/scope-manager/src/lib/esnext.decorators.ts index 5a5a5f93bc22..5243935723ad 100644 --- a/packages/scope-manager/src/lib/esnext.decorators.ts +++ b/packages/scope-manager/src/lib/esnext.decorators.ts @@ -3,10 +3,10 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import type { ImplicitLibVariableOptions } from '../variable'; -import { TYPE } from './base-config'; -import { decorators } from './decorators'; +import { ImplicitLibVariableOptions } from '../variable'; import { es2015_symbol } from './es2015.symbol'; +import { decorators } from './decorators'; +import { TYPE } from './base-config'; export const esnext_decorators = { ...es2015_symbol, diff --git a/packages/scope-manager/src/lib/esnext.disposable.ts b/packages/scope-manager/src/lib/esnext.disposable.ts index 9bcaa62ec525..8d00c530065b 100644 --- a/packages/scope-manager/src/lib/esnext.disposable.ts +++ b/packages/scope-manager/src/lib/esnext.disposable.ts @@ -3,9 +3,9 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import type { ImplicitLibVariableOptions } from '../variable'; -import { TYPE, TYPE_VALUE } from './base-config'; +import { ImplicitLibVariableOptions } from '../variable'; import { es2015_symbol } from './es2015.symbol'; +import { TYPE, TYPE_VALUE } from './base-config'; export const esnext_disposable = { ...es2015_symbol, diff --git a/packages/scope-manager/src/lib/esnext.full.ts b/packages/scope-manager/src/lib/esnext.full.ts index 2bae36c386e6..5d7b43c2b66c 100644 --- a/packages/scope-manager/src/lib/esnext.full.ts +++ b/packages/scope-manager/src/lib/esnext.full.ts @@ -3,12 +3,12 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import type { ImplicitLibVariableOptions } from '../variable'; -import { dom } from './dom'; -import { dom_iterable } from './dom.iterable'; +import { ImplicitLibVariableOptions } from '../variable'; import { esnext } from './esnext'; -import { scripthost } from './scripthost'; +import { dom } from './dom'; import { webworker_importscripts } from './webworker.importscripts'; +import { scripthost } from './scripthost'; +import { dom_iterable } from './dom.iterable'; export const esnext_full = { ...esnext, diff --git a/packages/scope-manager/src/lib/esnext.intl.ts b/packages/scope-manager/src/lib/esnext.intl.ts index 35c7ef82ddb1..03cc1fb5997d 100644 --- a/packages/scope-manager/src/lib/esnext.intl.ts +++ b/packages/scope-manager/src/lib/esnext.intl.ts @@ -3,7 +3,7 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import type { ImplicitLibVariableOptions } from '../variable'; +import { ImplicitLibVariableOptions } from '../variable'; import { TYPE_VALUE } from './base-config'; export const esnext_intl = { diff --git a/packages/scope-manager/src/lib/esnext.promise.ts b/packages/scope-manager/src/lib/esnext.promise.ts index 08c9e142841e..8042c77f8b4e 100644 --- a/packages/scope-manager/src/lib/esnext.promise.ts +++ b/packages/scope-manager/src/lib/esnext.promise.ts @@ -3,8 +3,8 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import type { ImplicitLibVariableOptions } from '../variable'; -import { TYPE, TYPE_VALUE } from './base-config'; +import { ImplicitLibVariableOptions } from '../variable'; +import { TYPE_VALUE, TYPE } from './base-config'; export const esnext_promise = { AggregateError: TYPE_VALUE, diff --git a/packages/scope-manager/src/lib/esnext.string.ts b/packages/scope-manager/src/lib/esnext.string.ts index d0bacb659a4d..354c5d6dfeaa 100644 --- a/packages/scope-manager/src/lib/esnext.string.ts +++ b/packages/scope-manager/src/lib/esnext.string.ts @@ -3,7 +3,7 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import type { ImplicitLibVariableOptions } from '../variable'; +import { ImplicitLibVariableOptions } from '../variable'; import { TYPE } from './base-config'; export const esnext_string = { diff --git a/packages/scope-manager/src/lib/esnext.symbol.ts b/packages/scope-manager/src/lib/esnext.symbol.ts index fb16e1cb55a2..49b2a8c9cd7f 100644 --- a/packages/scope-manager/src/lib/esnext.symbol.ts +++ b/packages/scope-manager/src/lib/esnext.symbol.ts @@ -3,7 +3,7 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import type { ImplicitLibVariableOptions } from '../variable'; +import { ImplicitLibVariableOptions } from '../variable'; import { TYPE } from './base-config'; export const esnext_symbol = { diff --git a/packages/scope-manager/src/lib/esnext.ts b/packages/scope-manager/src/lib/esnext.ts index a2498b34c5a6..9f5511836f89 100644 --- a/packages/scope-manager/src/lib/esnext.ts +++ b/packages/scope-manager/src/lib/esnext.ts @@ -3,11 +3,11 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import type { ImplicitLibVariableOptions } from '../variable'; +import { ImplicitLibVariableOptions } from '../variable'; import { es2023 } from './es2023'; +import { esnext_intl } from './esnext.intl'; import { esnext_decorators } from './esnext.decorators'; import { esnext_disposable } from './esnext.disposable'; -import { esnext_intl } from './esnext.intl'; export const esnext = { ...es2023, diff --git a/packages/scope-manager/src/lib/esnext.weakref.ts b/packages/scope-manager/src/lib/esnext.weakref.ts index 9a7df1c6d58c..aec8e3070bfb 100644 --- a/packages/scope-manager/src/lib/esnext.weakref.ts +++ b/packages/scope-manager/src/lib/esnext.weakref.ts @@ -3,8 +3,8 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import type { ImplicitLibVariableOptions } from '../variable'; -import { TYPE, TYPE_VALUE } from './base-config'; +import { ImplicitLibVariableOptions } from '../variable'; +import { TYPE_VALUE, TYPE } from './base-config'; export const esnext_weakref = { WeakRef: TYPE_VALUE, diff --git a/packages/scope-manager/src/lib/index.ts b/packages/scope-manager/src/lib/index.ts index b3d4ab1a78f3..c684a9dca1de 100644 --- a/packages/scope-manager/src/lib/index.ts +++ b/packages/scope-manager/src/lib/index.ts @@ -3,16 +3,27 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import { decorators } from './decorators'; -import { decorators_legacy } from './decorators.legacy'; -import { dom } from './dom'; -import { dom_iterable } from './dom.iterable'; import { es5 } from './es5'; import { es6 } from './es6'; -import { es7 } from './es7'; import { es2015 } from './es2015'; -import { es2015_collection } from './es2015.collection'; +import { es7 } from './es7'; +import { es2016 } from './es2016'; +import { es2017 } from './es2017'; +import { es2018 } from './es2018'; +import { es2019 } from './es2019'; +import { es2020 } from './es2020'; +import { es2021 } from './es2021'; +import { es2022 } from './es2022'; +import { es2023 } from './es2023'; +import { esnext } from './esnext'; +import { dom } from './dom'; +import { dom_iterable } from './dom.iterable'; +import { webworker } from './webworker'; +import { webworker_importscripts } from './webworker.importscripts'; +import { webworker_iterable } from './webworker.iterable'; +import { scripthost } from './scripthost'; import { es2015_core } from './es2015.core'; +import { es2015_collection } from './es2015.collection'; import { es2015_generator } from './es2015.generator'; import { es2015_iterable } from './es2015.iterable'; import { es2015_promise } from './es2015.promise'; @@ -20,78 +31,67 @@ import { es2015_proxy } from './es2015.proxy'; import { es2015_reflect } from './es2015.reflect'; import { es2015_symbol } from './es2015.symbol'; import { es2015_symbol_wellknown } from './es2015.symbol.wellknown'; -import { es2016 } from './es2016'; import { es2016_array_include } from './es2016.array.include'; -import { es2016_full } from './es2016.full'; -import { es2017 } from './es2017'; import { es2017_date } from './es2017.date'; -import { es2017_full } from './es2017.full'; -import { es2017_intl } from './es2017.intl'; import { es2017_object } from './es2017.object'; import { es2017_sharedmemory } from './es2017.sharedmemory'; import { es2017_string } from './es2017.string'; +import { es2017_intl } from './es2017.intl'; import { es2017_typedarrays } from './es2017.typedarrays'; -import { es2018 } from './es2018'; import { es2018_asyncgenerator } from './es2018.asyncgenerator'; import { es2018_asynciterable } from './es2018.asynciterable'; -import { es2018_full } from './es2018.full'; import { es2018_intl } from './es2018.intl'; import { es2018_promise } from './es2018.promise'; import { es2018_regexp } from './es2018.regexp'; -import { es2019 } from './es2019'; import { es2019_array } from './es2019.array'; -import { es2019_full } from './es2019.full'; -import { es2019_intl } from './es2019.intl'; import { es2019_object } from './es2019.object'; import { es2019_string } from './es2019.string'; import { es2019_symbol } from './es2019.symbol'; -import { es2020 } from './es2020'; +import { es2019_intl } from './es2019.intl'; import { es2020_bigint } from './es2020.bigint'; import { es2020_date } from './es2020.date'; -import { es2020_full } from './es2020.full'; -import { es2020_intl } from './es2020.intl'; -import { es2020_number } from './es2020.number'; import { es2020_promise } from './es2020.promise'; import { es2020_sharedmemory } from './es2020.sharedmemory'; import { es2020_string } from './es2020.string'; import { es2020_symbol_wellknown } from './es2020.symbol.wellknown'; -import { es2021 } from './es2021'; -import { es2021_full } from './es2021.full'; -import { es2021_intl } from './es2021.intl'; +import { es2020_intl } from './es2020.intl'; +import { es2020_number } from './es2020.number'; import { es2021_promise } from './es2021.promise'; import { es2021_string } from './es2021.string'; import { es2021_weakref } from './es2021.weakref'; -import { es2022 } from './es2022'; +import { es2021_intl } from './es2021.intl'; import { es2022_array } from './es2022.array'; import { es2022_error } from './es2022.error'; -import { es2022_full } from './es2022.full'; import { es2022_intl } from './es2022.intl'; import { es2022_object } from './es2022.object'; -import { es2022_regexp } from './es2022.regexp'; import { es2022_sharedmemory } from './es2022.sharedmemory'; import { es2022_string } from './es2022.string'; -import { es2023 } from './es2023'; +import { es2022_regexp } from './es2022.regexp'; import { es2023_array } from './es2023.array'; import { es2023_collection } from './es2023.collection'; -import { es2023_full } from './es2023.full'; -import { esnext } from './esnext'; import { esnext_array } from './esnext.array'; -import { esnext_asynciterable } from './esnext.asynciterable'; -import { esnext_bigint } from './esnext.bigint'; import { esnext_collection } from './esnext.collection'; -import { esnext_decorators } from './esnext.decorators'; -import { esnext_disposable } from './esnext.disposable'; -import { esnext_full } from './esnext.full'; +import { esnext_symbol } from './esnext.symbol'; +import { esnext_asynciterable } from './esnext.asynciterable'; import { esnext_intl } from './esnext.intl'; -import { esnext_promise } from './esnext.promise'; +import { esnext_disposable } from './esnext.disposable'; +import { esnext_bigint } from './esnext.bigint'; import { esnext_string } from './esnext.string'; -import { esnext_symbol } from './esnext.symbol'; +import { esnext_promise } from './esnext.promise'; import { esnext_weakref } from './esnext.weakref'; +import { esnext_decorators } from './esnext.decorators'; +import { decorators } from './decorators'; +import { decorators_legacy } from './decorators.legacy'; +import { es2016_full } from './es2016.full'; +import { es2017_full } from './es2017.full'; +import { es2018_full } from './es2018.full'; +import { es2019_full } from './es2019.full'; +import { es2020_full } from './es2020.full'; +import { es2021_full } from './es2021.full'; +import { es2022_full } from './es2022.full'; +import { es2023_full } from './es2023.full'; +import { esnext_full } from './esnext.full'; import { lib as libBase } from './lib'; -import { scripthost } from './scripthost'; -import { webworker } from './webworker'; -import { webworker_importscripts } from './webworker.importscripts'; -import { webworker_iterable } from './webworker.iterable'; const lib = { es5, diff --git a/packages/scope-manager/src/lib/lib.ts b/packages/scope-manager/src/lib/lib.ts index 4ec72e9e80bc..68367da23d95 100644 --- a/packages/scope-manager/src/lib/lib.ts +++ b/packages/scope-manager/src/lib/lib.ts @@ -3,11 +3,11 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import type { ImplicitLibVariableOptions } from '../variable'; -import { dom } from './dom'; +import { ImplicitLibVariableOptions } from '../variable'; import { es5 } from './es5'; -import { scripthost } from './scripthost'; +import { dom } from './dom'; import { webworker_importscripts } from './webworker.importscripts'; +import { scripthost } from './scripthost'; export const lib = { ...es5, diff --git a/packages/scope-manager/src/lib/scripthost.ts b/packages/scope-manager/src/lib/scripthost.ts index cf802a3abad2..c143fc8ae591 100644 --- a/packages/scope-manager/src/lib/scripthost.ts +++ b/packages/scope-manager/src/lib/scripthost.ts @@ -3,8 +3,8 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import type { ImplicitLibVariableOptions } from '../variable'; -import { TYPE, TYPE_VALUE } from './base-config'; +import { ImplicitLibVariableOptions } from '../variable'; +import { TYPE_VALUE, TYPE } from './base-config'; export const scripthost = { ActiveXObject: TYPE_VALUE, diff --git a/packages/scope-manager/src/lib/webworker.importscripts.ts b/packages/scope-manager/src/lib/webworker.importscripts.ts index f7f1cb026bce..4b3bb5f95c6c 100644 --- a/packages/scope-manager/src/lib/webworker.importscripts.ts +++ b/packages/scope-manager/src/lib/webworker.importscripts.ts @@ -3,7 +3,7 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import type { ImplicitLibVariableOptions } from '../variable'; +import { ImplicitLibVariableOptions } from '../variable'; export const webworker_importscripts = {} as Record< string, diff --git a/packages/scope-manager/src/lib/webworker.iterable.ts b/packages/scope-manager/src/lib/webworker.iterable.ts index 7bdb8cf82a20..4b90e2164613 100644 --- a/packages/scope-manager/src/lib/webworker.iterable.ts +++ b/packages/scope-manager/src/lib/webworker.iterable.ts @@ -3,7 +3,7 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import type { ImplicitLibVariableOptions } from '../variable'; +import { ImplicitLibVariableOptions } from '../variable'; import { TYPE } from './base-config'; export const webworker_iterable = { diff --git a/packages/scope-manager/src/lib/webworker.ts b/packages/scope-manager/src/lib/webworker.ts index bec9a0f3f3bc..ce8278e7c67b 100644 --- a/packages/scope-manager/src/lib/webworker.ts +++ b/packages/scope-manager/src/lib/webworker.ts @@ -3,7 +3,7 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import type { ImplicitLibVariableOptions } from '../variable'; +import { ImplicitLibVariableOptions } from '../variable'; import { TYPE, TYPE_VALUE } from './base-config'; export const webworker = { diff --git a/packages/typescript-estree/src/parseSettings/warnAboutTSVersion.ts b/packages/typescript-estree/src/parseSettings/warnAboutTSVersion.ts index 1bc33c89542f..a92c690ee6d0 100644 --- a/packages/typescript-estree/src/parseSettings/warnAboutTSVersion.ts +++ b/packages/typescript-estree/src/parseSettings/warnAboutTSVersion.ts @@ -6,13 +6,13 @@ import type { ParseSettings } from './index'; * This needs to be kept in sync with /docs/users/Versioning.mdx * in the typescript-eslint monorepo */ -const SUPPORTED_TYPESCRIPT_VERSIONS = '>=4.3.5 <5.2.0'; +const SUPPORTED_TYPESCRIPT_VERSIONS = '>=4.3.5 <5.3.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[] = ['5.2.1-rc']; +const SUPPORTED_PRERELEASE_RANGES: string[] = []; const ACTIVE_TYPESCRIPT_VERSION = ts.version; const isRunningSupportedTypeScriptVersion = semver.satisfies( ACTIVE_TYPESCRIPT_VERSION, diff --git a/packages/website/src/vendor/sandbox.d.ts b/packages/website/src/vendor/sandbox.d.ts index 14b3310bb49c..9a43757ba3db 100644 --- a/packages/website/src/vendor/sandbox.d.ts +++ b/packages/website/src/vendor/sandbox.d.ts @@ -115,6 +115,7 @@ export declare const createTypeScriptSandbox: ( }; /** A list of TypeScript versions you can use with the TypeScript sandbox */ supportedVersions: readonly [ + '5.2.1-rc', '5.2.0-beta', '5.1.6', '5.0.4', diff --git a/packages/website/src/vendor/typescript-vfs.d.ts b/packages/website/src/vendor/typescript-vfs.d.ts index 81d54ea45366..e6c7df7b4391 100644 --- a/packages/website/src/vendor/typescript-vfs.d.ts +++ b/packages/website/src/vendor/typescript-vfs.d.ts @@ -46,7 +46,8 @@ export declare function createVirtualTypeScriptEnvironment( ): VirtualTypeScriptEnvironment; /** * Grab the list of lib files for a particular target, will return a bit more than necessary (by including - * the dom) but that's OK + * the dom) but that's OK, we're really working with the constraint that you can't get a list of files + * when running in a browser. * * @param target The compiler settings target baseline * @param ts A copy of the TypeScript module @@ -58,10 +59,13 @@ export declare const knownLibFilesForCompilerOptions: ( /** * Sets up a Map with lib contents by grabbing the necessary files from * the local copy of typescript via the file system. + * + * The first two args are un-used, but kept around so as to not cause a + * semver major bump for no gain to module users. */ export declare const createDefaultMapFromNodeModules: ( - compilerOptions: CompilerOptions, - ts?: typeof ts, + _compilerOptions: CompilerOptions, + _ts?: typeof ts, tsLibDirectory?: string, ) => Map; /** diff --git a/yarn.lock b/yarn.lock index dda2a22bc286..1aefdc54ab67 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6019,7 +6019,7 @@ __metadata: ts-node: 10.7.0 tslint: ^6.1.3 tsx: ^3.12.7 - typescript: ">=4.3.5 <5.2.0 || 5.2.1-rc" + typescript: ">=4.3.5 <5.3.0" languageName: unknown linkType: soft @@ -20017,23 +20017,23 @@ __metadata: languageName: node linkType: hard -"typescript@npm:5.2.1-rc": - version: 5.2.1-rc - resolution: "typescript@npm:5.2.1-rc" +"typescript@npm:5.2.2": + version: 5.2.2 + resolution: "typescript@npm:5.2.2" bin: tsc: bin/tsc tsserver: bin/tsserver - checksum: 0bea857151b74d76d36af16e77ad348b1fbf9630b0002be4cda9713fee692e50e2faa5d1d63fccbc3e3a4999e0356c0b722d993344ab0d014ecfc4d500b178ca + checksum: 7912821dac4d962d315c36800fe387cdc0a6298dba7ec171b350b4a6e988b51d7b8f051317786db1094bd7431d526b648aba7da8236607febb26cf5b871d2d3c languageName: node linkType: hard -"typescript@patch:typescript@npm%3A5.2.1-rc#~builtin": - version: 5.2.1-rc - resolution: "typescript@patch:typescript@npm%3A5.2.1-rc#~builtin::version=5.2.1-rc&hash=f3b441" +"typescript@patch:typescript@npm%3A5.2.2#~builtin": + version: 5.2.2 + resolution: "typescript@patch:typescript@npm%3A5.2.2#~builtin::version=5.2.2&hash=f3b441" bin: tsc: bin/tsc tsserver: bin/tsserver - checksum: 3128667694c92cdafc4683aa3c75c6da4e9d38b95464cad6e9d76732d2a8c55b12fa7d20ccae59c46b2baabbecd04ed8e1ec2bad7fb1da01200b800dfacd2eb7 + checksum: 0f4da2f15e6f1245e49db15801dbee52f2bbfb267e1c39225afdab5afee1a72839cd86000e65ee9d7e4dfaff12239d28beaf5ee431357fcced15fb08583d72ca languageName: node linkType: hard From 7251239a5d5a51ce4c8293eb7a7adceb60c30644 Mon Sep 17 00:00:00 2001 From: Brad Zacher Date: Fri, 25 Aug 2023 10:58:03 +1000 Subject: [PATCH 2/2] lint fix generated code --- .../src/lib/decorators.legacy.ts | 2 +- packages/scope-manager/src/lib/decorators.ts | 2 +- .../scope-manager/src/lib/dom.iterable.ts | 2 +- packages/scope-manager/src/lib/dom.ts | 2 +- .../src/lib/es2015.collection.ts | 4 +- packages/scope-manager/src/lib/es2015.core.ts | 2 +- .../scope-manager/src/lib/es2015.generator.ts | 4 +- .../scope-manager/src/lib/es2015.iterable.ts | 4 +- .../scope-manager/src/lib/es2015.promise.ts | 2 +- .../scope-manager/src/lib/es2015.proxy.ts | 2 +- .../scope-manager/src/lib/es2015.reflect.ts | 2 +- .../scope-manager/src/lib/es2015.symbol.ts | 2 +- .../src/lib/es2015.symbol.wellknown.ts | 4 +- packages/scope-manager/src/lib/es2015.ts | 6 +- .../src/lib/es2016.array.include.ts | 2 +- packages/scope-manager/src/lib/es2016.full.ts | 8 +- packages/scope-manager/src/lib/es2016.ts | 2 +- packages/scope-manager/src/lib/es2017.date.ts | 2 +- packages/scope-manager/src/lib/es2017.full.ts | 8 +- packages/scope-manager/src/lib/es2017.intl.ts | 2 +- .../scope-manager/src/lib/es2017.object.ts | 2 +- .../src/lib/es2017.sharedmemory.ts | 4 +- .../scope-manager/src/lib/es2017.string.ts | 2 +- packages/scope-manager/src/lib/es2017.ts | 6 +- .../src/lib/es2017.typedarrays.ts | 2 +- .../src/lib/es2018.asyncgenerator.ts | 4 +- .../src/lib/es2018.asynciterable.ts | 6 +- packages/scope-manager/src/lib/es2018.full.ts | 8 +- packages/scope-manager/src/lib/es2018.intl.ts | 2 +- .../scope-manager/src/lib/es2018.promise.ts | 2 +- .../scope-manager/src/lib/es2018.regexp.ts | 2 +- packages/scope-manager/src/lib/es2018.ts | 6 +- .../scope-manager/src/lib/es2019.array.ts | 2 +- packages/scope-manager/src/lib/es2019.full.ts | 8 +- packages/scope-manager/src/lib/es2019.intl.ts | 2 +- .../scope-manager/src/lib/es2019.object.ts | 4 +- .../scope-manager/src/lib/es2019.string.ts | 2 +- .../scope-manager/src/lib/es2019.symbol.ts | 2 +- packages/scope-manager/src/lib/es2019.ts | 4 +- .../scope-manager/src/lib/es2020.bigint.ts | 4 +- packages/scope-manager/src/lib/es2020.date.ts | 4 +- packages/scope-manager/src/lib/es2020.full.ts | 8 +- packages/scope-manager/src/lib/es2020.intl.ts | 4 +- .../scope-manager/src/lib/es2020.number.ts | 4 +- .../scope-manager/src/lib/es2020.promise.ts | 2 +- .../src/lib/es2020.sharedmemory.ts | 2 +- .../scope-manager/src/lib/es2020.string.ts | 4 +- .../src/lib/es2020.symbol.wellknown.ts | 4 +- packages/scope-manager/src/lib/es2020.ts | 4 +- packages/scope-manager/src/lib/es2021.full.ts | 8 +- packages/scope-manager/src/lib/es2021.intl.ts | 2 +- .../scope-manager/src/lib/es2021.promise.ts | 4 +- .../scope-manager/src/lib/es2021.string.ts | 2 +- packages/scope-manager/src/lib/es2021.ts | 4 +- .../scope-manager/src/lib/es2021.weakref.ts | 4 +- .../scope-manager/src/lib/es2022.array.ts | 2 +- .../scope-manager/src/lib/es2022.error.ts | 2 +- packages/scope-manager/src/lib/es2022.full.ts | 8 +- packages/scope-manager/src/lib/es2022.intl.ts | 2 +- .../scope-manager/src/lib/es2022.object.ts | 2 +- .../scope-manager/src/lib/es2022.regexp.ts | 2 +- .../src/lib/es2022.sharedmemory.ts | 2 +- .../scope-manager/src/lib/es2022.string.ts | 2 +- packages/scope-manager/src/lib/es2022.ts | 4 +- .../scope-manager/src/lib/es2023.array.ts | 2 +- .../src/lib/es2023.collection.ts | 2 +- packages/scope-manager/src/lib/es2023.full.ts | 8 +- packages/scope-manager/src/lib/es2023.ts | 2 +- packages/scope-manager/src/lib/es5.ts | 4 +- packages/scope-manager/src/lib/es6.ts | 6 +- packages/scope-manager/src/lib/es7.ts | 2 +- .../scope-manager/src/lib/esnext.array.ts | 2 +- .../src/lib/esnext.asynciterable.ts | 6 +- .../scope-manager/src/lib/esnext.bigint.ts | 4 +- .../src/lib/esnext.collection.ts | 2 +- .../src/lib/esnext.decorators.ts | 6 +- .../src/lib/esnext.disposable.ts | 4 +- packages/scope-manager/src/lib/esnext.full.ts | 8 +- packages/scope-manager/src/lib/esnext.intl.ts | 2 +- .../scope-manager/src/lib/esnext.promise.ts | 4 +- .../scope-manager/src/lib/esnext.string.ts | 2 +- .../scope-manager/src/lib/esnext.symbol.ts | 2 +- packages/scope-manager/src/lib/esnext.ts | 4 +- .../scope-manager/src/lib/esnext.weakref.ts | 4 +- packages/scope-manager/src/lib/index.ts | 80 +++++++++---------- packages/scope-manager/src/lib/lib.ts | 6 +- packages/scope-manager/src/lib/scripthost.ts | 4 +- .../src/lib/webworker.importscripts.ts | 2 +- .../src/lib/webworker.iterable.ts | 2 +- packages/scope-manager/src/lib/webworker.ts | 2 +- packages/scope-manager/tools/generate-lib.ts | 29 ++++++- 91 files changed, 223 insertions(+), 202 deletions(-) diff --git a/packages/scope-manager/src/lib/decorators.legacy.ts b/packages/scope-manager/src/lib/decorators.legacy.ts index 17e5d2041bb5..8a02028b68e9 100644 --- a/packages/scope-manager/src/lib/decorators.legacy.ts +++ b/packages/scope-manager/src/lib/decorators.legacy.ts @@ -3,7 +3,7 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import { ImplicitLibVariableOptions } from '../variable'; +import type { ImplicitLibVariableOptions } from '../variable'; import { TYPE } from './base-config'; export const decorators_legacy = { diff --git a/packages/scope-manager/src/lib/decorators.ts b/packages/scope-manager/src/lib/decorators.ts index d1229602fb6c..958281bea4c2 100644 --- a/packages/scope-manager/src/lib/decorators.ts +++ b/packages/scope-manager/src/lib/decorators.ts @@ -3,7 +3,7 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import { ImplicitLibVariableOptions } from '../variable'; +import type { ImplicitLibVariableOptions } from '../variable'; import { TYPE } from './base-config'; export const decorators = { diff --git a/packages/scope-manager/src/lib/dom.iterable.ts b/packages/scope-manager/src/lib/dom.iterable.ts index b1e1e02b8c2f..594de3c38f14 100644 --- a/packages/scope-manager/src/lib/dom.iterable.ts +++ b/packages/scope-manager/src/lib/dom.iterable.ts @@ -3,7 +3,7 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import { ImplicitLibVariableOptions } from '../variable'; +import type { ImplicitLibVariableOptions } from '../variable'; import { TYPE } from './base-config'; export const dom_iterable = { diff --git a/packages/scope-manager/src/lib/dom.ts b/packages/scope-manager/src/lib/dom.ts index 3c458e09a23d..462c92498668 100644 --- a/packages/scope-manager/src/lib/dom.ts +++ b/packages/scope-manager/src/lib/dom.ts @@ -3,7 +3,7 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import { ImplicitLibVariableOptions } from '../variable'; +import type { ImplicitLibVariableOptions } from '../variable'; import { TYPE, TYPE_VALUE } from './base-config'; export const dom = { diff --git a/packages/scope-manager/src/lib/es2015.collection.ts b/packages/scope-manager/src/lib/es2015.collection.ts index 98933f1c1fda..51386ebcc748 100644 --- a/packages/scope-manager/src/lib/es2015.collection.ts +++ b/packages/scope-manager/src/lib/es2015.collection.ts @@ -3,8 +3,8 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import { ImplicitLibVariableOptions } from '../variable'; -import { TYPE_VALUE, TYPE } from './base-config'; +import type { ImplicitLibVariableOptions } from '../variable'; +import { TYPE, TYPE_VALUE } from './base-config'; export const es2015_collection = { Map: TYPE_VALUE, diff --git a/packages/scope-manager/src/lib/es2015.core.ts b/packages/scope-manager/src/lib/es2015.core.ts index ba44cf290b4e..f9475d7db1d6 100644 --- a/packages/scope-manager/src/lib/es2015.core.ts +++ b/packages/scope-manager/src/lib/es2015.core.ts @@ -3,7 +3,7 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import { ImplicitLibVariableOptions } from '../variable'; +import type { ImplicitLibVariableOptions } from '../variable'; import { TYPE } from './base-config'; export const es2015_core = { diff --git a/packages/scope-manager/src/lib/es2015.generator.ts b/packages/scope-manager/src/lib/es2015.generator.ts index f5dce9611ae2..90d26e1ea0de 100644 --- a/packages/scope-manager/src/lib/es2015.generator.ts +++ b/packages/scope-manager/src/lib/es2015.generator.ts @@ -3,9 +3,9 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import { ImplicitLibVariableOptions } from '../variable'; -import { es2015_iterable } from './es2015.iterable'; +import type { ImplicitLibVariableOptions } from '../variable'; import { TYPE } from './base-config'; +import { es2015_iterable } from './es2015.iterable'; export const es2015_generator = { ...es2015_iterable, diff --git a/packages/scope-manager/src/lib/es2015.iterable.ts b/packages/scope-manager/src/lib/es2015.iterable.ts index d27ab2efcc67..2ab60a44b842 100644 --- a/packages/scope-manager/src/lib/es2015.iterable.ts +++ b/packages/scope-manager/src/lib/es2015.iterable.ts @@ -3,9 +3,9 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import { ImplicitLibVariableOptions } from '../variable'; -import { es2015_symbol } from './es2015.symbol'; +import type { ImplicitLibVariableOptions } from '../variable'; import { TYPE } from './base-config'; +import { es2015_symbol } from './es2015.symbol'; export const es2015_iterable = { ...es2015_symbol, diff --git a/packages/scope-manager/src/lib/es2015.promise.ts b/packages/scope-manager/src/lib/es2015.promise.ts index 1334b2abca4f..a3896e0f46f6 100644 --- a/packages/scope-manager/src/lib/es2015.promise.ts +++ b/packages/scope-manager/src/lib/es2015.promise.ts @@ -3,7 +3,7 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import { ImplicitLibVariableOptions } from '../variable'; +import type { ImplicitLibVariableOptions } from '../variable'; import { TYPE } from './base-config'; export const es2015_promise = { diff --git a/packages/scope-manager/src/lib/es2015.proxy.ts b/packages/scope-manager/src/lib/es2015.proxy.ts index d2c0d9b66162..2dbc6e222639 100644 --- a/packages/scope-manager/src/lib/es2015.proxy.ts +++ b/packages/scope-manager/src/lib/es2015.proxy.ts @@ -3,7 +3,7 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import { ImplicitLibVariableOptions } from '../variable'; +import type { ImplicitLibVariableOptions } from '../variable'; import { TYPE } from './base-config'; export const es2015_proxy = { diff --git a/packages/scope-manager/src/lib/es2015.reflect.ts b/packages/scope-manager/src/lib/es2015.reflect.ts index 4a71e4b9deff..dcc2a5d910bf 100644 --- a/packages/scope-manager/src/lib/es2015.reflect.ts +++ b/packages/scope-manager/src/lib/es2015.reflect.ts @@ -3,7 +3,7 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import { ImplicitLibVariableOptions } from '../variable'; +import type { ImplicitLibVariableOptions } from '../variable'; import { TYPE_VALUE } from './base-config'; export const es2015_reflect = { diff --git a/packages/scope-manager/src/lib/es2015.symbol.ts b/packages/scope-manager/src/lib/es2015.symbol.ts index c027cae3b382..eef09036f87d 100644 --- a/packages/scope-manager/src/lib/es2015.symbol.ts +++ b/packages/scope-manager/src/lib/es2015.symbol.ts @@ -3,7 +3,7 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import { ImplicitLibVariableOptions } from '../variable'; +import type { ImplicitLibVariableOptions } from '../variable'; import { TYPE } from './base-config'; export const es2015_symbol = { diff --git a/packages/scope-manager/src/lib/es2015.symbol.wellknown.ts b/packages/scope-manager/src/lib/es2015.symbol.wellknown.ts index 4e7b82dbe72f..94e522cfe03d 100644 --- a/packages/scope-manager/src/lib/es2015.symbol.wellknown.ts +++ b/packages/scope-manager/src/lib/es2015.symbol.wellknown.ts @@ -3,9 +3,9 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import { ImplicitLibVariableOptions } from '../variable'; -import { es2015_symbol } from './es2015.symbol'; +import type { ImplicitLibVariableOptions } from '../variable'; import { TYPE } from './base-config'; +import { es2015_symbol } from './es2015.symbol'; export const es2015_symbol_wellknown = { ...es2015_symbol, diff --git a/packages/scope-manager/src/lib/es2015.ts b/packages/scope-manager/src/lib/es2015.ts index 9e225bddb33d..f6a8aa8ab73e 100644 --- a/packages/scope-manager/src/lib/es2015.ts +++ b/packages/scope-manager/src/lib/es2015.ts @@ -3,12 +3,12 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import { ImplicitLibVariableOptions } from '../variable'; +import type { ImplicitLibVariableOptions } from '../variable'; import { es5 } from './es5'; -import { es2015_core } from './es2015.core'; import { es2015_collection } from './es2015.collection'; -import { es2015_iterable } from './es2015.iterable'; +import { es2015_core } from './es2015.core'; import { es2015_generator } from './es2015.generator'; +import { es2015_iterable } from './es2015.iterable'; import { es2015_promise } from './es2015.promise'; import { es2015_proxy } from './es2015.proxy'; import { es2015_reflect } from './es2015.reflect'; diff --git a/packages/scope-manager/src/lib/es2016.array.include.ts b/packages/scope-manager/src/lib/es2016.array.include.ts index 7cab0a4c84dd..17c927bd467c 100644 --- a/packages/scope-manager/src/lib/es2016.array.include.ts +++ b/packages/scope-manager/src/lib/es2016.array.include.ts @@ -3,7 +3,7 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import { ImplicitLibVariableOptions } from '../variable'; +import type { ImplicitLibVariableOptions } from '../variable'; import { TYPE } from './base-config'; export const es2016_array_include = { diff --git a/packages/scope-manager/src/lib/es2016.full.ts b/packages/scope-manager/src/lib/es2016.full.ts index cfc4632c7dad..e7fb9802cb76 100644 --- a/packages/scope-manager/src/lib/es2016.full.ts +++ b/packages/scope-manager/src/lib/es2016.full.ts @@ -3,12 +3,12 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import { ImplicitLibVariableOptions } from '../variable'; -import { es2016 } from './es2016'; +import type { ImplicitLibVariableOptions } from '../variable'; import { dom } from './dom'; -import { webworker_importscripts } from './webworker.importscripts'; -import { scripthost } from './scripthost'; import { dom_iterable } from './dom.iterable'; +import { es2016 } from './es2016'; +import { scripthost } from './scripthost'; +import { webworker_importscripts } from './webworker.importscripts'; export const es2016_full = { ...es2016, diff --git a/packages/scope-manager/src/lib/es2016.ts b/packages/scope-manager/src/lib/es2016.ts index f4ac61374c33..f00abac6c4f3 100644 --- a/packages/scope-manager/src/lib/es2016.ts +++ b/packages/scope-manager/src/lib/es2016.ts @@ -3,7 +3,7 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import { ImplicitLibVariableOptions } from '../variable'; +import type { ImplicitLibVariableOptions } from '../variable'; import { es2015 } from './es2015'; import { es2016_array_include } from './es2016.array.include'; diff --git a/packages/scope-manager/src/lib/es2017.date.ts b/packages/scope-manager/src/lib/es2017.date.ts index 7dcf903afd80..031a79e51fcb 100644 --- a/packages/scope-manager/src/lib/es2017.date.ts +++ b/packages/scope-manager/src/lib/es2017.date.ts @@ -3,7 +3,7 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import { ImplicitLibVariableOptions } from '../variable'; +import type { ImplicitLibVariableOptions } from '../variable'; import { TYPE } from './base-config'; export const es2017_date = { diff --git a/packages/scope-manager/src/lib/es2017.full.ts b/packages/scope-manager/src/lib/es2017.full.ts index 26d2c2b1f8c3..a1d8c386bb42 100644 --- a/packages/scope-manager/src/lib/es2017.full.ts +++ b/packages/scope-manager/src/lib/es2017.full.ts @@ -3,12 +3,12 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import { ImplicitLibVariableOptions } from '../variable'; -import { es2017 } from './es2017'; +import type { ImplicitLibVariableOptions } from '../variable'; import { dom } from './dom'; -import { webworker_importscripts } from './webworker.importscripts'; -import { scripthost } from './scripthost'; import { dom_iterable } from './dom.iterable'; +import { es2017 } from './es2017'; +import { scripthost } from './scripthost'; +import { webworker_importscripts } from './webworker.importscripts'; export const es2017_full = { ...es2017, diff --git a/packages/scope-manager/src/lib/es2017.intl.ts b/packages/scope-manager/src/lib/es2017.intl.ts index 48e7fe21715e..b8f1325672e9 100644 --- a/packages/scope-manager/src/lib/es2017.intl.ts +++ b/packages/scope-manager/src/lib/es2017.intl.ts @@ -3,7 +3,7 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import { ImplicitLibVariableOptions } from '../variable'; +import type { ImplicitLibVariableOptions } from '../variable'; import { TYPE_VALUE } from './base-config'; export const es2017_intl = { diff --git a/packages/scope-manager/src/lib/es2017.object.ts b/packages/scope-manager/src/lib/es2017.object.ts index 17344ec65912..66bea4e7d3f6 100644 --- a/packages/scope-manager/src/lib/es2017.object.ts +++ b/packages/scope-manager/src/lib/es2017.object.ts @@ -3,7 +3,7 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import { ImplicitLibVariableOptions } from '../variable'; +import type { ImplicitLibVariableOptions } from '../variable'; import { TYPE } from './base-config'; export const es2017_object = { diff --git a/packages/scope-manager/src/lib/es2017.sharedmemory.ts b/packages/scope-manager/src/lib/es2017.sharedmemory.ts index d5f3c8970b2c..998d41493fd5 100644 --- a/packages/scope-manager/src/lib/es2017.sharedmemory.ts +++ b/packages/scope-manager/src/lib/es2017.sharedmemory.ts @@ -3,10 +3,10 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import { ImplicitLibVariableOptions } from '../variable'; +import type { ImplicitLibVariableOptions } from '../variable'; +import { TYPE, TYPE_VALUE } from './base-config'; import { es2015_symbol } from './es2015.symbol'; import { es2015_symbol_wellknown } from './es2015.symbol.wellknown'; -import { TYPE_VALUE, TYPE } from './base-config'; export const es2017_sharedmemory = { ...es2015_symbol, diff --git a/packages/scope-manager/src/lib/es2017.string.ts b/packages/scope-manager/src/lib/es2017.string.ts index 8ca832f3cf83..64ec52f30745 100644 --- a/packages/scope-manager/src/lib/es2017.string.ts +++ b/packages/scope-manager/src/lib/es2017.string.ts @@ -3,7 +3,7 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import { ImplicitLibVariableOptions } from '../variable'; +import type { ImplicitLibVariableOptions } from '../variable'; import { TYPE } from './base-config'; export const es2017_string = { diff --git a/packages/scope-manager/src/lib/es2017.ts b/packages/scope-manager/src/lib/es2017.ts index acba2c9b6e21..ec07b52c5a44 100644 --- a/packages/scope-manager/src/lib/es2017.ts +++ b/packages/scope-manager/src/lib/es2017.ts @@ -3,14 +3,14 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import { ImplicitLibVariableOptions } from '../variable'; +import type { ImplicitLibVariableOptions } from '../variable'; import { es2016 } from './es2016'; +import { es2017_date } from './es2017.date'; +import { es2017_intl } from './es2017.intl'; import { es2017_object } from './es2017.object'; import { es2017_sharedmemory } from './es2017.sharedmemory'; import { es2017_string } from './es2017.string'; -import { es2017_intl } from './es2017.intl'; import { es2017_typedarrays } from './es2017.typedarrays'; -import { es2017_date } from './es2017.date'; export const es2017 = { ...es2016, diff --git a/packages/scope-manager/src/lib/es2017.typedarrays.ts b/packages/scope-manager/src/lib/es2017.typedarrays.ts index 0c9a43160b86..8fdb9a962812 100644 --- a/packages/scope-manager/src/lib/es2017.typedarrays.ts +++ b/packages/scope-manager/src/lib/es2017.typedarrays.ts @@ -3,7 +3,7 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import { ImplicitLibVariableOptions } from '../variable'; +import type { ImplicitLibVariableOptions } from '../variable'; import { TYPE } from './base-config'; export const es2017_typedarrays = { diff --git a/packages/scope-manager/src/lib/es2018.asyncgenerator.ts b/packages/scope-manager/src/lib/es2018.asyncgenerator.ts index 68f67bd6483a..5af8bd0a6630 100644 --- a/packages/scope-manager/src/lib/es2018.asyncgenerator.ts +++ b/packages/scope-manager/src/lib/es2018.asyncgenerator.ts @@ -3,9 +3,9 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import { ImplicitLibVariableOptions } from '../variable'; -import { es2018_asynciterable } from './es2018.asynciterable'; +import type { ImplicitLibVariableOptions } from '../variable'; import { TYPE } from './base-config'; +import { es2018_asynciterable } from './es2018.asynciterable'; export const es2018_asyncgenerator = { ...es2018_asynciterable, diff --git a/packages/scope-manager/src/lib/es2018.asynciterable.ts b/packages/scope-manager/src/lib/es2018.asynciterable.ts index ce4aebafb0dc..5d4e373ef768 100644 --- a/packages/scope-manager/src/lib/es2018.asynciterable.ts +++ b/packages/scope-manager/src/lib/es2018.asynciterable.ts @@ -3,10 +3,10 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import { ImplicitLibVariableOptions } from '../variable'; -import { es2015_symbol } from './es2015.symbol'; -import { es2015_iterable } from './es2015.iterable'; +import type { ImplicitLibVariableOptions } from '../variable'; import { TYPE } from './base-config'; +import { es2015_iterable } from './es2015.iterable'; +import { es2015_symbol } from './es2015.symbol'; export const es2018_asynciterable = { ...es2015_symbol, diff --git a/packages/scope-manager/src/lib/es2018.full.ts b/packages/scope-manager/src/lib/es2018.full.ts index 8e0ab3621f26..802e30c6659e 100644 --- a/packages/scope-manager/src/lib/es2018.full.ts +++ b/packages/scope-manager/src/lib/es2018.full.ts @@ -3,12 +3,12 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import { ImplicitLibVariableOptions } from '../variable'; -import { es2018 } from './es2018'; +import type { ImplicitLibVariableOptions } from '../variable'; import { dom } from './dom'; -import { webworker_importscripts } from './webworker.importscripts'; -import { scripthost } from './scripthost'; import { dom_iterable } from './dom.iterable'; +import { es2018 } from './es2018'; +import { scripthost } from './scripthost'; +import { webworker_importscripts } from './webworker.importscripts'; export const es2018_full = { ...es2018, diff --git a/packages/scope-manager/src/lib/es2018.intl.ts b/packages/scope-manager/src/lib/es2018.intl.ts index 8496761b2d21..9736c0ba48a0 100644 --- a/packages/scope-manager/src/lib/es2018.intl.ts +++ b/packages/scope-manager/src/lib/es2018.intl.ts @@ -3,7 +3,7 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import { ImplicitLibVariableOptions } from '../variable'; +import type { ImplicitLibVariableOptions } from '../variable'; import { TYPE_VALUE } from './base-config'; export const es2018_intl = { diff --git a/packages/scope-manager/src/lib/es2018.promise.ts b/packages/scope-manager/src/lib/es2018.promise.ts index cc74f3b02b86..ac1e02d8a053 100644 --- a/packages/scope-manager/src/lib/es2018.promise.ts +++ b/packages/scope-manager/src/lib/es2018.promise.ts @@ -3,7 +3,7 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import { ImplicitLibVariableOptions } from '../variable'; +import type { ImplicitLibVariableOptions } from '../variable'; import { TYPE } from './base-config'; export const es2018_promise = { diff --git a/packages/scope-manager/src/lib/es2018.regexp.ts b/packages/scope-manager/src/lib/es2018.regexp.ts index 7c1ca120117c..0fdf10f793a3 100644 --- a/packages/scope-manager/src/lib/es2018.regexp.ts +++ b/packages/scope-manager/src/lib/es2018.regexp.ts @@ -3,7 +3,7 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import { ImplicitLibVariableOptions } from '../variable'; +import type { ImplicitLibVariableOptions } from '../variable'; import { TYPE } from './base-config'; export const es2018_regexp = { diff --git a/packages/scope-manager/src/lib/es2018.ts b/packages/scope-manager/src/lib/es2018.ts index a3b3fbe508cc..d79390a3b87a 100644 --- a/packages/scope-manager/src/lib/es2018.ts +++ b/packages/scope-manager/src/lib/es2018.ts @@ -3,13 +3,13 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import { ImplicitLibVariableOptions } from '../variable'; +import type { ImplicitLibVariableOptions } from '../variable'; import { es2017 } from './es2017'; -import { es2018_asynciterable } from './es2018.asynciterable'; import { es2018_asyncgenerator } from './es2018.asyncgenerator'; +import { es2018_asynciterable } from './es2018.asynciterable'; +import { es2018_intl } from './es2018.intl'; import { es2018_promise } from './es2018.promise'; import { es2018_regexp } from './es2018.regexp'; -import { es2018_intl } from './es2018.intl'; export const es2018 = { ...es2017, diff --git a/packages/scope-manager/src/lib/es2019.array.ts b/packages/scope-manager/src/lib/es2019.array.ts index 6d814131f529..b682bb044575 100644 --- a/packages/scope-manager/src/lib/es2019.array.ts +++ b/packages/scope-manager/src/lib/es2019.array.ts @@ -3,7 +3,7 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import { ImplicitLibVariableOptions } from '../variable'; +import type { ImplicitLibVariableOptions } from '../variable'; import { TYPE } from './base-config'; export const es2019_array = { diff --git a/packages/scope-manager/src/lib/es2019.full.ts b/packages/scope-manager/src/lib/es2019.full.ts index a97c713f5a00..8cee3178bc68 100644 --- a/packages/scope-manager/src/lib/es2019.full.ts +++ b/packages/scope-manager/src/lib/es2019.full.ts @@ -3,12 +3,12 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import { ImplicitLibVariableOptions } from '../variable'; -import { es2019 } from './es2019'; +import type { ImplicitLibVariableOptions } from '../variable'; import { dom } from './dom'; -import { webworker_importscripts } from './webworker.importscripts'; -import { scripthost } from './scripthost'; import { dom_iterable } from './dom.iterable'; +import { es2019 } from './es2019'; +import { scripthost } from './scripthost'; +import { webworker_importscripts } from './webworker.importscripts'; export const es2019_full = { ...es2019, diff --git a/packages/scope-manager/src/lib/es2019.intl.ts b/packages/scope-manager/src/lib/es2019.intl.ts index 8e44ef6d0cd9..64b46f40ebbc 100644 --- a/packages/scope-manager/src/lib/es2019.intl.ts +++ b/packages/scope-manager/src/lib/es2019.intl.ts @@ -3,7 +3,7 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import { ImplicitLibVariableOptions } from '../variable'; +import type { ImplicitLibVariableOptions } from '../variable'; import { TYPE_VALUE } from './base-config'; export const es2019_intl = { diff --git a/packages/scope-manager/src/lib/es2019.object.ts b/packages/scope-manager/src/lib/es2019.object.ts index 87f3bb33f458..f1f113ed54d5 100644 --- a/packages/scope-manager/src/lib/es2019.object.ts +++ b/packages/scope-manager/src/lib/es2019.object.ts @@ -3,9 +3,9 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import { ImplicitLibVariableOptions } from '../variable'; -import { es2015_iterable } from './es2015.iterable'; +import type { ImplicitLibVariableOptions } from '../variable'; import { TYPE } from './base-config'; +import { es2015_iterable } from './es2015.iterable'; export const es2019_object = { ...es2015_iterable, diff --git a/packages/scope-manager/src/lib/es2019.string.ts b/packages/scope-manager/src/lib/es2019.string.ts index af1f1f8f2b5c..eae2a44d3761 100644 --- a/packages/scope-manager/src/lib/es2019.string.ts +++ b/packages/scope-manager/src/lib/es2019.string.ts @@ -3,7 +3,7 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import { ImplicitLibVariableOptions } from '../variable'; +import type { ImplicitLibVariableOptions } from '../variable'; import { TYPE } from './base-config'; export const es2019_string = { diff --git a/packages/scope-manager/src/lib/es2019.symbol.ts b/packages/scope-manager/src/lib/es2019.symbol.ts index 5c8a1fd2894d..b39b41add7a1 100644 --- a/packages/scope-manager/src/lib/es2019.symbol.ts +++ b/packages/scope-manager/src/lib/es2019.symbol.ts @@ -3,7 +3,7 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import { ImplicitLibVariableOptions } from '../variable'; +import type { ImplicitLibVariableOptions } from '../variable'; import { TYPE } from './base-config'; export const es2019_symbol = { diff --git a/packages/scope-manager/src/lib/es2019.ts b/packages/scope-manager/src/lib/es2019.ts index e41e53c1524e..cd6d33c1f5d7 100644 --- a/packages/scope-manager/src/lib/es2019.ts +++ b/packages/scope-manager/src/lib/es2019.ts @@ -3,13 +3,13 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import { ImplicitLibVariableOptions } from '../variable'; +import type { ImplicitLibVariableOptions } from '../variable'; import { es2018 } from './es2018'; import { es2019_array } from './es2019.array'; +import { es2019_intl } from './es2019.intl'; import { es2019_object } from './es2019.object'; import { es2019_string } from './es2019.string'; import { es2019_symbol } from './es2019.symbol'; -import { es2019_intl } from './es2019.intl'; export const es2019 = { ...es2018, diff --git a/packages/scope-manager/src/lib/es2020.bigint.ts b/packages/scope-manager/src/lib/es2020.bigint.ts index 3444dc701a21..52fbba1ca2ea 100644 --- a/packages/scope-manager/src/lib/es2020.bigint.ts +++ b/packages/scope-manager/src/lib/es2020.bigint.ts @@ -3,9 +3,9 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import { ImplicitLibVariableOptions } from '../variable'; -import { es2020_intl } from './es2020.intl'; +import type { ImplicitLibVariableOptions } from '../variable'; import { TYPE, TYPE_VALUE } from './base-config'; +import { es2020_intl } from './es2020.intl'; export const es2020_bigint = { ...es2020_intl, diff --git a/packages/scope-manager/src/lib/es2020.date.ts b/packages/scope-manager/src/lib/es2020.date.ts index 1a5ed0d23f3e..b4c3d319deb3 100644 --- a/packages/scope-manager/src/lib/es2020.date.ts +++ b/packages/scope-manager/src/lib/es2020.date.ts @@ -3,9 +3,9 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import { ImplicitLibVariableOptions } from '../variable'; -import { es2020_intl } from './es2020.intl'; +import type { ImplicitLibVariableOptions } from '../variable'; import { TYPE } from './base-config'; +import { es2020_intl } from './es2020.intl'; export const es2020_date = { ...es2020_intl, diff --git a/packages/scope-manager/src/lib/es2020.full.ts b/packages/scope-manager/src/lib/es2020.full.ts index 6467ba7818d4..1de20eaecc4e 100644 --- a/packages/scope-manager/src/lib/es2020.full.ts +++ b/packages/scope-manager/src/lib/es2020.full.ts @@ -3,12 +3,12 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import { ImplicitLibVariableOptions } from '../variable'; -import { es2020 } from './es2020'; +import type { ImplicitLibVariableOptions } from '../variable'; import { dom } from './dom'; -import { webworker_importscripts } from './webworker.importscripts'; -import { scripthost } from './scripthost'; import { dom_iterable } from './dom.iterable'; +import { es2020 } from './es2020'; +import { scripthost } from './scripthost'; +import { webworker_importscripts } from './webworker.importscripts'; export const es2020_full = { ...es2020, diff --git a/packages/scope-manager/src/lib/es2020.intl.ts b/packages/scope-manager/src/lib/es2020.intl.ts index 6cf997c0ca37..2866dde791e8 100644 --- a/packages/scope-manager/src/lib/es2020.intl.ts +++ b/packages/scope-manager/src/lib/es2020.intl.ts @@ -3,9 +3,9 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import { ImplicitLibVariableOptions } from '../variable'; -import { es2018_intl } from './es2018.intl'; +import type { ImplicitLibVariableOptions } from '../variable'; import { TYPE_VALUE } from './base-config'; +import { es2018_intl } from './es2018.intl'; export const es2020_intl = { ...es2018_intl, diff --git a/packages/scope-manager/src/lib/es2020.number.ts b/packages/scope-manager/src/lib/es2020.number.ts index 04ba01bc4bf3..445b60733640 100644 --- a/packages/scope-manager/src/lib/es2020.number.ts +++ b/packages/scope-manager/src/lib/es2020.number.ts @@ -3,9 +3,9 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import { ImplicitLibVariableOptions } from '../variable'; -import { es2020_intl } from './es2020.intl'; +import type { ImplicitLibVariableOptions } from '../variable'; import { TYPE } from './base-config'; +import { es2020_intl } from './es2020.intl'; export const es2020_number = { ...es2020_intl, diff --git a/packages/scope-manager/src/lib/es2020.promise.ts b/packages/scope-manager/src/lib/es2020.promise.ts index c875a4c7b316..0352586806d4 100644 --- a/packages/scope-manager/src/lib/es2020.promise.ts +++ b/packages/scope-manager/src/lib/es2020.promise.ts @@ -3,7 +3,7 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import { ImplicitLibVariableOptions } from '../variable'; +import type { ImplicitLibVariableOptions } from '../variable'; import { TYPE } from './base-config'; export const es2020_promise = { diff --git a/packages/scope-manager/src/lib/es2020.sharedmemory.ts b/packages/scope-manager/src/lib/es2020.sharedmemory.ts index e927965e621b..180e291c0cc2 100644 --- a/packages/scope-manager/src/lib/es2020.sharedmemory.ts +++ b/packages/scope-manager/src/lib/es2020.sharedmemory.ts @@ -3,7 +3,7 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import { ImplicitLibVariableOptions } from '../variable'; +import type { ImplicitLibVariableOptions } from '../variable'; import { TYPE } from './base-config'; export const es2020_sharedmemory = { diff --git a/packages/scope-manager/src/lib/es2020.string.ts b/packages/scope-manager/src/lib/es2020.string.ts index c33be91dd3f9..ef0a81e1ca87 100644 --- a/packages/scope-manager/src/lib/es2020.string.ts +++ b/packages/scope-manager/src/lib/es2020.string.ts @@ -3,9 +3,9 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import { ImplicitLibVariableOptions } from '../variable'; -import { es2015_iterable } from './es2015.iterable'; +import type { ImplicitLibVariableOptions } from '../variable'; import { TYPE } from './base-config'; +import { es2015_iterable } from './es2015.iterable'; export const es2020_string = { ...es2015_iterable, diff --git a/packages/scope-manager/src/lib/es2020.symbol.wellknown.ts b/packages/scope-manager/src/lib/es2020.symbol.wellknown.ts index db8d79e9f44b..1e1047000322 100644 --- a/packages/scope-manager/src/lib/es2020.symbol.wellknown.ts +++ b/packages/scope-manager/src/lib/es2020.symbol.wellknown.ts @@ -3,10 +3,10 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import { ImplicitLibVariableOptions } from '../variable'; +import type { ImplicitLibVariableOptions } from '../variable'; +import { TYPE } from './base-config'; import { es2015_iterable } from './es2015.iterable'; import { es2015_symbol } from './es2015.symbol'; -import { TYPE } from './base-config'; export const es2020_symbol_wellknown = { ...es2015_iterable, diff --git a/packages/scope-manager/src/lib/es2020.ts b/packages/scope-manager/src/lib/es2020.ts index 3a89464f4563..c6b1140596ba 100644 --- a/packages/scope-manager/src/lib/es2020.ts +++ b/packages/scope-manager/src/lib/es2020.ts @@ -3,16 +3,16 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import { ImplicitLibVariableOptions } from '../variable'; +import type { ImplicitLibVariableOptions } from '../variable'; import { es2019 } from './es2019'; import { es2020_bigint } from './es2020.bigint'; import { es2020_date } from './es2020.date'; +import { es2020_intl } from './es2020.intl'; import { es2020_number } from './es2020.number'; import { es2020_promise } from './es2020.promise'; import { es2020_sharedmemory } from './es2020.sharedmemory'; import { es2020_string } from './es2020.string'; import { es2020_symbol_wellknown } from './es2020.symbol.wellknown'; -import { es2020_intl } from './es2020.intl'; export const es2020 = { ...es2019, diff --git a/packages/scope-manager/src/lib/es2021.full.ts b/packages/scope-manager/src/lib/es2021.full.ts index 2bf87c06e1ae..e45a862ff2bd 100644 --- a/packages/scope-manager/src/lib/es2021.full.ts +++ b/packages/scope-manager/src/lib/es2021.full.ts @@ -3,12 +3,12 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import { ImplicitLibVariableOptions } from '../variable'; -import { es2021 } from './es2021'; +import type { ImplicitLibVariableOptions } from '../variable'; import { dom } from './dom'; -import { webworker_importscripts } from './webworker.importscripts'; -import { scripthost } from './scripthost'; import { dom_iterable } from './dom.iterable'; +import { es2021 } from './es2021'; +import { scripthost } from './scripthost'; +import { webworker_importscripts } from './webworker.importscripts'; export const es2021_full = { ...es2021, diff --git a/packages/scope-manager/src/lib/es2021.intl.ts b/packages/scope-manager/src/lib/es2021.intl.ts index f73cbe394ab5..e8cebf8ed078 100644 --- a/packages/scope-manager/src/lib/es2021.intl.ts +++ b/packages/scope-manager/src/lib/es2021.intl.ts @@ -3,7 +3,7 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import { ImplicitLibVariableOptions } from '../variable'; +import type { ImplicitLibVariableOptions } from '../variable'; import { TYPE_VALUE } from './base-config'; export const es2021_intl = { diff --git a/packages/scope-manager/src/lib/es2021.promise.ts b/packages/scope-manager/src/lib/es2021.promise.ts index 3607632e743c..20d1f1b313cc 100644 --- a/packages/scope-manager/src/lib/es2021.promise.ts +++ b/packages/scope-manager/src/lib/es2021.promise.ts @@ -3,8 +3,8 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import { ImplicitLibVariableOptions } from '../variable'; -import { TYPE_VALUE, TYPE } from './base-config'; +import type { ImplicitLibVariableOptions } from '../variable'; +import { TYPE, TYPE_VALUE } from './base-config'; export const es2021_promise = { AggregateError: TYPE_VALUE, diff --git a/packages/scope-manager/src/lib/es2021.string.ts b/packages/scope-manager/src/lib/es2021.string.ts index 28e9af00f37a..8b7aa25c5a5c 100644 --- a/packages/scope-manager/src/lib/es2021.string.ts +++ b/packages/scope-manager/src/lib/es2021.string.ts @@ -3,7 +3,7 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import { ImplicitLibVariableOptions } from '../variable'; +import type { ImplicitLibVariableOptions } from '../variable'; import { TYPE } from './base-config'; export const es2021_string = { diff --git a/packages/scope-manager/src/lib/es2021.ts b/packages/scope-manager/src/lib/es2021.ts index 43fd33f9abe1..c54cfc31ccbd 100644 --- a/packages/scope-manager/src/lib/es2021.ts +++ b/packages/scope-manager/src/lib/es2021.ts @@ -3,12 +3,12 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import { ImplicitLibVariableOptions } from '../variable'; +import type { ImplicitLibVariableOptions } from '../variable'; import { es2020 } from './es2020'; +import { es2021_intl } from './es2021.intl'; import { es2021_promise } from './es2021.promise'; import { es2021_string } from './es2021.string'; import { es2021_weakref } from './es2021.weakref'; -import { es2021_intl } from './es2021.intl'; export const es2021 = { ...es2020, diff --git a/packages/scope-manager/src/lib/es2021.weakref.ts b/packages/scope-manager/src/lib/es2021.weakref.ts index 4a7ee2ea44c2..a65c90a8058b 100644 --- a/packages/scope-manager/src/lib/es2021.weakref.ts +++ b/packages/scope-manager/src/lib/es2021.weakref.ts @@ -3,8 +3,8 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import { ImplicitLibVariableOptions } from '../variable'; -import { TYPE_VALUE, TYPE } from './base-config'; +import type { ImplicitLibVariableOptions } from '../variable'; +import { TYPE, TYPE_VALUE } from './base-config'; export const es2021_weakref = { WeakRef: TYPE_VALUE, diff --git a/packages/scope-manager/src/lib/es2022.array.ts b/packages/scope-manager/src/lib/es2022.array.ts index 95785becd3de..3927f26851e2 100644 --- a/packages/scope-manager/src/lib/es2022.array.ts +++ b/packages/scope-manager/src/lib/es2022.array.ts @@ -3,7 +3,7 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import { ImplicitLibVariableOptions } from '../variable'; +import type { ImplicitLibVariableOptions } from '../variable'; import { TYPE } from './base-config'; export const es2022_array = { diff --git a/packages/scope-manager/src/lib/es2022.error.ts b/packages/scope-manager/src/lib/es2022.error.ts index f1e1bc2fa0f7..282f66648bb4 100644 --- a/packages/scope-manager/src/lib/es2022.error.ts +++ b/packages/scope-manager/src/lib/es2022.error.ts @@ -3,7 +3,7 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import { ImplicitLibVariableOptions } from '../variable'; +import type { ImplicitLibVariableOptions } from '../variable'; import { TYPE } from './base-config'; export const es2022_error = { diff --git a/packages/scope-manager/src/lib/es2022.full.ts b/packages/scope-manager/src/lib/es2022.full.ts index 3ef0dd62ecae..1cf84cd17eb7 100644 --- a/packages/scope-manager/src/lib/es2022.full.ts +++ b/packages/scope-manager/src/lib/es2022.full.ts @@ -3,12 +3,12 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import { ImplicitLibVariableOptions } from '../variable'; -import { es2022 } from './es2022'; +import type { ImplicitLibVariableOptions } from '../variable'; import { dom } from './dom'; -import { webworker_importscripts } from './webworker.importscripts'; -import { scripthost } from './scripthost'; import { dom_iterable } from './dom.iterable'; +import { es2022 } from './es2022'; +import { scripthost } from './scripthost'; +import { webworker_importscripts } from './webworker.importscripts'; export const es2022_full = { ...es2022, diff --git a/packages/scope-manager/src/lib/es2022.intl.ts b/packages/scope-manager/src/lib/es2022.intl.ts index f91ef8640a0a..22c7fc5694df 100644 --- a/packages/scope-manager/src/lib/es2022.intl.ts +++ b/packages/scope-manager/src/lib/es2022.intl.ts @@ -3,7 +3,7 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import { ImplicitLibVariableOptions } from '../variable'; +import type { ImplicitLibVariableOptions } from '../variable'; import { TYPE_VALUE } from './base-config'; export const es2022_intl = { diff --git a/packages/scope-manager/src/lib/es2022.object.ts b/packages/scope-manager/src/lib/es2022.object.ts index 650a01c38355..ea209894d13d 100644 --- a/packages/scope-manager/src/lib/es2022.object.ts +++ b/packages/scope-manager/src/lib/es2022.object.ts @@ -3,7 +3,7 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import { ImplicitLibVariableOptions } from '../variable'; +import type { ImplicitLibVariableOptions } from '../variable'; import { TYPE } from './base-config'; export const es2022_object = { diff --git a/packages/scope-manager/src/lib/es2022.regexp.ts b/packages/scope-manager/src/lib/es2022.regexp.ts index ae83987de09b..85998ffe3682 100644 --- a/packages/scope-manager/src/lib/es2022.regexp.ts +++ b/packages/scope-manager/src/lib/es2022.regexp.ts @@ -3,7 +3,7 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import { ImplicitLibVariableOptions } from '../variable'; +import type { ImplicitLibVariableOptions } from '../variable'; import { TYPE } from './base-config'; export const es2022_regexp = { diff --git a/packages/scope-manager/src/lib/es2022.sharedmemory.ts b/packages/scope-manager/src/lib/es2022.sharedmemory.ts index 8efb4b9d8c97..24d82d609120 100644 --- a/packages/scope-manager/src/lib/es2022.sharedmemory.ts +++ b/packages/scope-manager/src/lib/es2022.sharedmemory.ts @@ -3,7 +3,7 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import { ImplicitLibVariableOptions } from '../variable'; +import type { ImplicitLibVariableOptions } from '../variable'; import { TYPE } from './base-config'; export const es2022_sharedmemory = { diff --git a/packages/scope-manager/src/lib/es2022.string.ts b/packages/scope-manager/src/lib/es2022.string.ts index 3c4e1a766cd7..8cd490c9bc54 100644 --- a/packages/scope-manager/src/lib/es2022.string.ts +++ b/packages/scope-manager/src/lib/es2022.string.ts @@ -3,7 +3,7 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import { ImplicitLibVariableOptions } from '../variable'; +import type { ImplicitLibVariableOptions } from '../variable'; import { TYPE } from './base-config'; export const es2022_string = { diff --git a/packages/scope-manager/src/lib/es2022.ts b/packages/scope-manager/src/lib/es2022.ts index 004ebe2466a2..1e5eb867a2b6 100644 --- a/packages/scope-manager/src/lib/es2022.ts +++ b/packages/scope-manager/src/lib/es2022.ts @@ -3,15 +3,15 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import { ImplicitLibVariableOptions } from '../variable'; +import type { ImplicitLibVariableOptions } from '../variable'; import { es2021 } from './es2021'; import { es2022_array } from './es2022.array'; import { es2022_error } from './es2022.error'; import { es2022_intl } from './es2022.intl'; import { es2022_object } from './es2022.object'; +import { es2022_regexp } from './es2022.regexp'; import { es2022_sharedmemory } from './es2022.sharedmemory'; import { es2022_string } from './es2022.string'; -import { es2022_regexp } from './es2022.regexp'; export const es2022 = { ...es2021, diff --git a/packages/scope-manager/src/lib/es2023.array.ts b/packages/scope-manager/src/lib/es2023.array.ts index 87cc83e54c94..029b058a8cdd 100644 --- a/packages/scope-manager/src/lib/es2023.array.ts +++ b/packages/scope-manager/src/lib/es2023.array.ts @@ -3,7 +3,7 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import { ImplicitLibVariableOptions } from '../variable'; +import type { ImplicitLibVariableOptions } from '../variable'; import { TYPE } from './base-config'; export const es2023_array = { diff --git a/packages/scope-manager/src/lib/es2023.collection.ts b/packages/scope-manager/src/lib/es2023.collection.ts index 40fe6fe219ce..12ef36c331b9 100644 --- a/packages/scope-manager/src/lib/es2023.collection.ts +++ b/packages/scope-manager/src/lib/es2023.collection.ts @@ -3,7 +3,7 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import { ImplicitLibVariableOptions } from '../variable'; +import type { ImplicitLibVariableOptions } from '../variable'; import { TYPE } from './base-config'; export const es2023_collection = { diff --git a/packages/scope-manager/src/lib/es2023.full.ts b/packages/scope-manager/src/lib/es2023.full.ts index b42d1aa17023..b8a3c9310b6e 100644 --- a/packages/scope-manager/src/lib/es2023.full.ts +++ b/packages/scope-manager/src/lib/es2023.full.ts @@ -3,12 +3,12 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import { ImplicitLibVariableOptions } from '../variable'; -import { es2023 } from './es2023'; +import type { ImplicitLibVariableOptions } from '../variable'; import { dom } from './dom'; -import { webworker_importscripts } from './webworker.importscripts'; -import { scripthost } from './scripthost'; import { dom_iterable } from './dom.iterable'; +import { es2023 } from './es2023'; +import { scripthost } from './scripthost'; +import { webworker_importscripts } from './webworker.importscripts'; export const es2023_full = { ...es2023, diff --git a/packages/scope-manager/src/lib/es2023.ts b/packages/scope-manager/src/lib/es2023.ts index 4509f1a85caf..a3da668dd598 100644 --- a/packages/scope-manager/src/lib/es2023.ts +++ b/packages/scope-manager/src/lib/es2023.ts @@ -3,7 +3,7 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import { ImplicitLibVariableOptions } from '../variable'; +import type { ImplicitLibVariableOptions } from '../variable'; import { es2022 } from './es2022'; import { es2023_array } from './es2023.array'; import { es2023_collection } from './es2023.collection'; diff --git a/packages/scope-manager/src/lib/es5.ts b/packages/scope-manager/src/lib/es5.ts index 6ca668915821..9be707e1ff03 100644 --- a/packages/scope-manager/src/lib/es5.ts +++ b/packages/scope-manager/src/lib/es5.ts @@ -3,10 +3,10 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import { ImplicitLibVariableOptions } from '../variable'; +import type { ImplicitLibVariableOptions } from '../variable'; +import { TYPE, TYPE_VALUE } from './base-config'; import { decorators } from './decorators'; import { decorators_legacy } from './decorators.legacy'; -import { TYPE, TYPE_VALUE } from './base-config'; export const es5 = { ...decorators, diff --git a/packages/scope-manager/src/lib/es6.ts b/packages/scope-manager/src/lib/es6.ts index 57c3eca62344..12bf80e84c90 100644 --- a/packages/scope-manager/src/lib/es6.ts +++ b/packages/scope-manager/src/lib/es6.ts @@ -3,12 +3,12 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import { ImplicitLibVariableOptions } from '../variable'; +import type { ImplicitLibVariableOptions } from '../variable'; import { es5 } from './es5'; -import { es2015_core } from './es2015.core'; import { es2015_collection } from './es2015.collection'; -import { es2015_iterable } from './es2015.iterable'; +import { es2015_core } from './es2015.core'; import { es2015_generator } from './es2015.generator'; +import { es2015_iterable } from './es2015.iterable'; import { es2015_promise } from './es2015.promise'; import { es2015_proxy } from './es2015.proxy'; import { es2015_reflect } from './es2015.reflect'; diff --git a/packages/scope-manager/src/lib/es7.ts b/packages/scope-manager/src/lib/es7.ts index dd0ae5bef609..e79a1dd39c78 100644 --- a/packages/scope-manager/src/lib/es7.ts +++ b/packages/scope-manager/src/lib/es7.ts @@ -3,7 +3,7 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import { ImplicitLibVariableOptions } from '../variable'; +import type { ImplicitLibVariableOptions } from '../variable'; import { es2015 } from './es2015'; import { es2016_array_include } from './es2016.array.include'; diff --git a/packages/scope-manager/src/lib/esnext.array.ts b/packages/scope-manager/src/lib/esnext.array.ts index 87709c583e43..e7d9824cf8c4 100644 --- a/packages/scope-manager/src/lib/esnext.array.ts +++ b/packages/scope-manager/src/lib/esnext.array.ts @@ -3,7 +3,7 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import { ImplicitLibVariableOptions } from '../variable'; +import type { ImplicitLibVariableOptions } from '../variable'; import { TYPE } from './base-config'; export const esnext_array = { diff --git a/packages/scope-manager/src/lib/esnext.asynciterable.ts b/packages/scope-manager/src/lib/esnext.asynciterable.ts index 22c97a070407..2479b1509049 100644 --- a/packages/scope-manager/src/lib/esnext.asynciterable.ts +++ b/packages/scope-manager/src/lib/esnext.asynciterable.ts @@ -3,10 +3,10 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import { ImplicitLibVariableOptions } from '../variable'; -import { es2015_symbol } from './es2015.symbol'; -import { es2015_iterable } from './es2015.iterable'; +import type { ImplicitLibVariableOptions } from '../variable'; import { TYPE } from './base-config'; +import { es2015_iterable } from './es2015.iterable'; +import { es2015_symbol } from './es2015.symbol'; export const esnext_asynciterable = { ...es2015_symbol, diff --git a/packages/scope-manager/src/lib/esnext.bigint.ts b/packages/scope-manager/src/lib/esnext.bigint.ts index 079bc59bf87d..ccd2ae93293d 100644 --- a/packages/scope-manager/src/lib/esnext.bigint.ts +++ b/packages/scope-manager/src/lib/esnext.bigint.ts @@ -3,9 +3,9 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import { ImplicitLibVariableOptions } from '../variable'; -import { es2020_intl } from './es2020.intl'; +import type { ImplicitLibVariableOptions } from '../variable'; import { TYPE, TYPE_VALUE } from './base-config'; +import { es2020_intl } from './es2020.intl'; export const esnext_bigint = { ...es2020_intl, diff --git a/packages/scope-manager/src/lib/esnext.collection.ts b/packages/scope-manager/src/lib/esnext.collection.ts index 408f24b21f9a..2b5c49b7aebb 100644 --- a/packages/scope-manager/src/lib/esnext.collection.ts +++ b/packages/scope-manager/src/lib/esnext.collection.ts @@ -3,7 +3,7 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import { ImplicitLibVariableOptions } from '../variable'; +import type { ImplicitLibVariableOptions } from '../variable'; import { TYPE } from './base-config'; export const esnext_collection = { diff --git a/packages/scope-manager/src/lib/esnext.decorators.ts b/packages/scope-manager/src/lib/esnext.decorators.ts index 5243935723ad..5a5a5f93bc22 100644 --- a/packages/scope-manager/src/lib/esnext.decorators.ts +++ b/packages/scope-manager/src/lib/esnext.decorators.ts @@ -3,10 +3,10 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import { ImplicitLibVariableOptions } from '../variable'; -import { es2015_symbol } from './es2015.symbol'; -import { decorators } from './decorators'; +import type { ImplicitLibVariableOptions } from '../variable'; import { TYPE } from './base-config'; +import { decorators } from './decorators'; +import { es2015_symbol } from './es2015.symbol'; export const esnext_decorators = { ...es2015_symbol, diff --git a/packages/scope-manager/src/lib/esnext.disposable.ts b/packages/scope-manager/src/lib/esnext.disposable.ts index 8d00c530065b..9bcaa62ec525 100644 --- a/packages/scope-manager/src/lib/esnext.disposable.ts +++ b/packages/scope-manager/src/lib/esnext.disposable.ts @@ -3,9 +3,9 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import { ImplicitLibVariableOptions } from '../variable'; -import { es2015_symbol } from './es2015.symbol'; +import type { ImplicitLibVariableOptions } from '../variable'; import { TYPE, TYPE_VALUE } from './base-config'; +import { es2015_symbol } from './es2015.symbol'; export const esnext_disposable = { ...es2015_symbol, diff --git a/packages/scope-manager/src/lib/esnext.full.ts b/packages/scope-manager/src/lib/esnext.full.ts index 5d7b43c2b66c..2bae36c386e6 100644 --- a/packages/scope-manager/src/lib/esnext.full.ts +++ b/packages/scope-manager/src/lib/esnext.full.ts @@ -3,12 +3,12 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import { ImplicitLibVariableOptions } from '../variable'; -import { esnext } from './esnext'; +import type { ImplicitLibVariableOptions } from '../variable'; import { dom } from './dom'; -import { webworker_importscripts } from './webworker.importscripts'; -import { scripthost } from './scripthost'; import { dom_iterable } from './dom.iterable'; +import { esnext } from './esnext'; +import { scripthost } from './scripthost'; +import { webworker_importscripts } from './webworker.importscripts'; export const esnext_full = { ...esnext, diff --git a/packages/scope-manager/src/lib/esnext.intl.ts b/packages/scope-manager/src/lib/esnext.intl.ts index 03cc1fb5997d..35c7ef82ddb1 100644 --- a/packages/scope-manager/src/lib/esnext.intl.ts +++ b/packages/scope-manager/src/lib/esnext.intl.ts @@ -3,7 +3,7 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import { ImplicitLibVariableOptions } from '../variable'; +import type { ImplicitLibVariableOptions } from '../variable'; import { TYPE_VALUE } from './base-config'; export const esnext_intl = { diff --git a/packages/scope-manager/src/lib/esnext.promise.ts b/packages/scope-manager/src/lib/esnext.promise.ts index 8042c77f8b4e..08c9e142841e 100644 --- a/packages/scope-manager/src/lib/esnext.promise.ts +++ b/packages/scope-manager/src/lib/esnext.promise.ts @@ -3,8 +3,8 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import { ImplicitLibVariableOptions } from '../variable'; -import { TYPE_VALUE, TYPE } from './base-config'; +import type { ImplicitLibVariableOptions } from '../variable'; +import { TYPE, TYPE_VALUE } from './base-config'; export const esnext_promise = { AggregateError: TYPE_VALUE, diff --git a/packages/scope-manager/src/lib/esnext.string.ts b/packages/scope-manager/src/lib/esnext.string.ts index 354c5d6dfeaa..d0bacb659a4d 100644 --- a/packages/scope-manager/src/lib/esnext.string.ts +++ b/packages/scope-manager/src/lib/esnext.string.ts @@ -3,7 +3,7 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import { ImplicitLibVariableOptions } from '../variable'; +import type { ImplicitLibVariableOptions } from '../variable'; import { TYPE } from './base-config'; export const esnext_string = { diff --git a/packages/scope-manager/src/lib/esnext.symbol.ts b/packages/scope-manager/src/lib/esnext.symbol.ts index 49b2a8c9cd7f..fb16e1cb55a2 100644 --- a/packages/scope-manager/src/lib/esnext.symbol.ts +++ b/packages/scope-manager/src/lib/esnext.symbol.ts @@ -3,7 +3,7 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import { ImplicitLibVariableOptions } from '../variable'; +import type { ImplicitLibVariableOptions } from '../variable'; import { TYPE } from './base-config'; export const esnext_symbol = { diff --git a/packages/scope-manager/src/lib/esnext.ts b/packages/scope-manager/src/lib/esnext.ts index 9f5511836f89..a2498b34c5a6 100644 --- a/packages/scope-manager/src/lib/esnext.ts +++ b/packages/scope-manager/src/lib/esnext.ts @@ -3,11 +3,11 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import { ImplicitLibVariableOptions } from '../variable'; +import type { ImplicitLibVariableOptions } from '../variable'; import { es2023 } from './es2023'; -import { esnext_intl } from './esnext.intl'; import { esnext_decorators } from './esnext.decorators'; import { esnext_disposable } from './esnext.disposable'; +import { esnext_intl } from './esnext.intl'; export const esnext = { ...es2023, diff --git a/packages/scope-manager/src/lib/esnext.weakref.ts b/packages/scope-manager/src/lib/esnext.weakref.ts index aec8e3070bfb..9a7df1c6d58c 100644 --- a/packages/scope-manager/src/lib/esnext.weakref.ts +++ b/packages/scope-manager/src/lib/esnext.weakref.ts @@ -3,8 +3,8 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import { ImplicitLibVariableOptions } from '../variable'; -import { TYPE_VALUE, TYPE } from './base-config'; +import type { ImplicitLibVariableOptions } from '../variable'; +import { TYPE, TYPE_VALUE } from './base-config'; export const esnext_weakref = { WeakRef: TYPE_VALUE, diff --git a/packages/scope-manager/src/lib/index.ts b/packages/scope-manager/src/lib/index.ts index c684a9dca1de..b3d4ab1a78f3 100644 --- a/packages/scope-manager/src/lib/index.ts +++ b/packages/scope-manager/src/lib/index.ts @@ -3,27 +3,16 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager +import { decorators } from './decorators'; +import { decorators_legacy } from './decorators.legacy'; +import { dom } from './dom'; +import { dom_iterable } from './dom.iterable'; import { es5 } from './es5'; import { es6 } from './es6'; -import { es2015 } from './es2015'; import { es7 } from './es7'; -import { es2016 } from './es2016'; -import { es2017 } from './es2017'; -import { es2018 } from './es2018'; -import { es2019 } from './es2019'; -import { es2020 } from './es2020'; -import { es2021 } from './es2021'; -import { es2022 } from './es2022'; -import { es2023 } from './es2023'; -import { esnext } from './esnext'; -import { dom } from './dom'; -import { dom_iterable } from './dom.iterable'; -import { webworker } from './webworker'; -import { webworker_importscripts } from './webworker.importscripts'; -import { webworker_iterable } from './webworker.iterable'; -import { scripthost } from './scripthost'; -import { es2015_core } from './es2015.core'; +import { es2015 } from './es2015'; import { es2015_collection } from './es2015.collection'; +import { es2015_core } from './es2015.core'; import { es2015_generator } from './es2015.generator'; import { es2015_iterable } from './es2015.iterable'; import { es2015_promise } from './es2015.promise'; @@ -31,67 +20,78 @@ import { es2015_proxy } from './es2015.proxy'; import { es2015_reflect } from './es2015.reflect'; import { es2015_symbol } from './es2015.symbol'; import { es2015_symbol_wellknown } from './es2015.symbol.wellknown'; +import { es2016 } from './es2016'; import { es2016_array_include } from './es2016.array.include'; +import { es2016_full } from './es2016.full'; +import { es2017 } from './es2017'; import { es2017_date } from './es2017.date'; +import { es2017_full } from './es2017.full'; +import { es2017_intl } from './es2017.intl'; import { es2017_object } from './es2017.object'; import { es2017_sharedmemory } from './es2017.sharedmemory'; import { es2017_string } from './es2017.string'; -import { es2017_intl } from './es2017.intl'; import { es2017_typedarrays } from './es2017.typedarrays'; +import { es2018 } from './es2018'; import { es2018_asyncgenerator } from './es2018.asyncgenerator'; import { es2018_asynciterable } from './es2018.asynciterable'; +import { es2018_full } from './es2018.full'; import { es2018_intl } from './es2018.intl'; import { es2018_promise } from './es2018.promise'; import { es2018_regexp } from './es2018.regexp'; +import { es2019 } from './es2019'; import { es2019_array } from './es2019.array'; +import { es2019_full } from './es2019.full'; +import { es2019_intl } from './es2019.intl'; import { es2019_object } from './es2019.object'; import { es2019_string } from './es2019.string'; import { es2019_symbol } from './es2019.symbol'; -import { es2019_intl } from './es2019.intl'; +import { es2020 } from './es2020'; import { es2020_bigint } from './es2020.bigint'; import { es2020_date } from './es2020.date'; +import { es2020_full } from './es2020.full'; +import { es2020_intl } from './es2020.intl'; +import { es2020_number } from './es2020.number'; import { es2020_promise } from './es2020.promise'; import { es2020_sharedmemory } from './es2020.sharedmemory'; import { es2020_string } from './es2020.string'; import { es2020_symbol_wellknown } from './es2020.symbol.wellknown'; -import { es2020_intl } from './es2020.intl'; -import { es2020_number } from './es2020.number'; +import { es2021 } from './es2021'; +import { es2021_full } from './es2021.full'; +import { es2021_intl } from './es2021.intl'; import { es2021_promise } from './es2021.promise'; import { es2021_string } from './es2021.string'; import { es2021_weakref } from './es2021.weakref'; -import { es2021_intl } from './es2021.intl'; +import { es2022 } from './es2022'; import { es2022_array } from './es2022.array'; import { es2022_error } from './es2022.error'; +import { es2022_full } from './es2022.full'; import { es2022_intl } from './es2022.intl'; import { es2022_object } from './es2022.object'; +import { es2022_regexp } from './es2022.regexp'; import { es2022_sharedmemory } from './es2022.sharedmemory'; import { es2022_string } from './es2022.string'; -import { es2022_regexp } from './es2022.regexp'; +import { es2023 } from './es2023'; import { es2023_array } from './es2023.array'; import { es2023_collection } from './es2023.collection'; +import { es2023_full } from './es2023.full'; +import { esnext } from './esnext'; import { esnext_array } from './esnext.array'; -import { esnext_collection } from './esnext.collection'; -import { esnext_symbol } from './esnext.symbol'; import { esnext_asynciterable } from './esnext.asynciterable'; -import { esnext_intl } from './esnext.intl'; -import { esnext_disposable } from './esnext.disposable'; import { esnext_bigint } from './esnext.bigint'; -import { esnext_string } from './esnext.string'; -import { esnext_promise } from './esnext.promise'; -import { esnext_weakref } from './esnext.weakref'; +import { esnext_collection } from './esnext.collection'; import { esnext_decorators } from './esnext.decorators'; -import { decorators } from './decorators'; -import { decorators_legacy } from './decorators.legacy'; -import { es2016_full } from './es2016.full'; -import { es2017_full } from './es2017.full'; -import { es2018_full } from './es2018.full'; -import { es2019_full } from './es2019.full'; -import { es2020_full } from './es2020.full'; -import { es2021_full } from './es2021.full'; -import { es2022_full } from './es2022.full'; -import { es2023_full } from './es2023.full'; +import { esnext_disposable } from './esnext.disposable'; import { esnext_full } from './esnext.full'; +import { esnext_intl } from './esnext.intl'; +import { esnext_promise } from './esnext.promise'; +import { esnext_string } from './esnext.string'; +import { esnext_symbol } from './esnext.symbol'; +import { esnext_weakref } from './esnext.weakref'; import { lib as libBase } from './lib'; +import { scripthost } from './scripthost'; +import { webworker } from './webworker'; +import { webworker_importscripts } from './webworker.importscripts'; +import { webworker_iterable } from './webworker.iterable'; const lib = { es5, diff --git a/packages/scope-manager/src/lib/lib.ts b/packages/scope-manager/src/lib/lib.ts index 68367da23d95..4ec72e9e80bc 100644 --- a/packages/scope-manager/src/lib/lib.ts +++ b/packages/scope-manager/src/lib/lib.ts @@ -3,11 +3,11 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import { ImplicitLibVariableOptions } from '../variable'; -import { es5 } from './es5'; +import type { ImplicitLibVariableOptions } from '../variable'; import { dom } from './dom'; -import { webworker_importscripts } from './webworker.importscripts'; +import { es5 } from './es5'; import { scripthost } from './scripthost'; +import { webworker_importscripts } from './webworker.importscripts'; export const lib = { ...es5, diff --git a/packages/scope-manager/src/lib/scripthost.ts b/packages/scope-manager/src/lib/scripthost.ts index c143fc8ae591..cf802a3abad2 100644 --- a/packages/scope-manager/src/lib/scripthost.ts +++ b/packages/scope-manager/src/lib/scripthost.ts @@ -3,8 +3,8 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import { ImplicitLibVariableOptions } from '../variable'; -import { TYPE_VALUE, TYPE } from './base-config'; +import type { ImplicitLibVariableOptions } from '../variable'; +import { TYPE, TYPE_VALUE } from './base-config'; export const scripthost = { ActiveXObject: TYPE_VALUE, diff --git a/packages/scope-manager/src/lib/webworker.importscripts.ts b/packages/scope-manager/src/lib/webworker.importscripts.ts index 4b3bb5f95c6c..f7f1cb026bce 100644 --- a/packages/scope-manager/src/lib/webworker.importscripts.ts +++ b/packages/scope-manager/src/lib/webworker.importscripts.ts @@ -3,7 +3,7 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import { ImplicitLibVariableOptions } from '../variable'; +import type { ImplicitLibVariableOptions } from '../variable'; export const webworker_importscripts = {} as Record< string, diff --git a/packages/scope-manager/src/lib/webworker.iterable.ts b/packages/scope-manager/src/lib/webworker.iterable.ts index 4b90e2164613..7bdb8cf82a20 100644 --- a/packages/scope-manager/src/lib/webworker.iterable.ts +++ b/packages/scope-manager/src/lib/webworker.iterable.ts @@ -3,7 +3,7 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import { ImplicitLibVariableOptions } from '../variable'; +import type { ImplicitLibVariableOptions } from '../variable'; import { TYPE } from './base-config'; export const webworker_iterable = { diff --git a/packages/scope-manager/src/lib/webworker.ts b/packages/scope-manager/src/lib/webworker.ts index ce8278e7c67b..bec9a0f3f3bc 100644 --- a/packages/scope-manager/src/lib/webworker.ts +++ b/packages/scope-manager/src/lib/webworker.ts @@ -3,7 +3,7 @@ // RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: // npx nx generate-lib @typescript-eslint/scope-manager -import { ImplicitLibVariableOptions } from '../variable'; +import type { ImplicitLibVariableOptions } from '../variable'; import { TYPE, TYPE_VALUE } from './base-config'; export const webworker = { diff --git a/packages/scope-manager/tools/generate-lib.ts b/packages/scope-manager/tools/generate-lib.ts index 13cc9eaec093..d4572f24d3f7 100644 --- a/packages/scope-manager/tools/generate-lib.ts +++ b/packages/scope-manager/tools/generate-lib.ts @@ -1,5 +1,6 @@ import type { TSESTree } from '@typescript-eslint/types'; import { AST_TOKEN_TYPES } from '@typescript-eslint/types'; +import { ESLint } from '@typescript-eslint/utils/ts-eslint'; import * as fs from 'fs'; import * as path from 'path'; import { format, resolveConfig } from 'prettier'; @@ -53,6 +54,7 @@ const TYPES_FILE = path.resolve( 'src', 'lib.ts', ); +const BARREL_PATH = path.join(OUTPUT_FOLDER, 'index.ts'); const BASE_CONFIG_MODULE_NAME = 'base-config'; const SHARED_CONFIG_MODULE = path.resolve( @@ -110,7 +112,7 @@ function getReferences( return references; } -function main(): void { +async function main(): Promise { try { rimraf.sync(OUTPUT_FOLDER); } catch { @@ -122,6 +124,12 @@ function main(): void { // ignored } + const filesWritten: string[] = [ + SHARED_CONFIG_MODULE, + TYPES_FILE, + BARREL_PATH, + ]; + // the shared fs.writeFileSync( SHARED_CONFIG_MODULE, @@ -222,7 +230,9 @@ function main(): void { } const formattedCode = formatCode(code); - fs.writeFileSync(path.join(OUTPUT_FOLDER, `${libName}.ts`), formattedCode); + const writePath = path.join(OUTPUT_FOLDER, `${libName}.ts`); + fs.writeFileSync(writePath, formattedCode); + filesWritten.push(writePath); console.log( 'Wrote', @@ -254,7 +264,7 @@ function main(): void { const formattedBarrelCode = formatCode(barrelCode); - fs.writeFileSync(path.join(OUTPUT_FOLDER, 'index.ts'), formattedBarrelCode); + fs.writeFileSync(BARREL_PATH, formattedBarrelCode); console.log('Wrote barrel file'); // generate a string union type for the lib names @@ -270,6 +280,17 @@ function main(): void { fs.writeFileSync(TYPES_FILE, formattedLibUnionCode); console.log('Wrote Lib union type file'); + + const lint = new ESLint({ + fix: true, + }); + const results = await lint.lintFiles(filesWritten); + await ESLint.outputFixes(results); + console.log('Autofixed lint errors'); } -main(); +main().catch(e => { + console.error(e); + // eslint-disable-next-line no-process-exit + process.exit(1); +});