eslint-plugin-awscdk 4.2.1 → 4.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -27
- package/dist/index.cjs +3621 -3243
- package/dist/index.d.cts +89 -135
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +89 -136
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +3614 -3238
- package/dist/index.mjs.map +1 -1
- package/package.json +12 -23
- package/src/configs/classic-config.ts +7 -6
- package/src/configs/flat-config.ts +3 -2
- package/src/configs/index.ts +6 -1
- package/src/core/cdk-construct/type-checker/is-resource-with-readonly-interface.ts +0 -1
- package/src/rules/index.ts +8 -1
- package/src/rules/no-import-private.ts +1 -2
- package/src/rules/no-unused-props/index.ts +0 -1
- package/src/rules/no-unused-props/props-usage-analyzer.ts +5 -1
- package/src/rules/no-unused-props/visitor/direct-props-usage-visitor.ts +0 -1
- package/src/rules/no-unused-props/visitor/instance-variable-usage-visitor.ts +0 -1
- package/src/rules/no-unused-props/visitor/method-call-collector-visitor.ts +4 -1
- package/src/rules/no-unused-props/visitor/props-alias-visitor.ts +0 -1
- package/src/rules/no-unused-props/visitor/traverse-nodes.ts +0 -1
- package/src/rules/prevent-construct-id-collision.ts +144 -0
package/dist/index.d.mts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import * as ts from "typescript";
|
|
2
2
|
import { Program as Program$1, SyntaxKind } from "typescript";
|
|
3
|
-
import "
|
|
4
|
-
import * as eslint from "eslint";
|
|
3
|
+
import { Rule } from "eslint";
|
|
5
4
|
|
|
6
|
-
//#region node_modules/.pnpm/@typescript-eslint+types@8.
|
|
5
|
+
//#region node_modules/.pnpm/@typescript-eslint+types@8.58.0/node_modules/@typescript-eslint/types/dist/generated/ast-spec.d.ts
|
|
7
6
|
declare type Accessibility = 'private' | 'protected' | 'public';
|
|
8
7
|
declare type AccessorProperty = AccessorPropertyComputedName | AccessorPropertyNonComputedName;
|
|
9
8
|
declare interface AccessorPropertyComputedName extends PropertyDefinitionComputedNameBase {
|
|
@@ -1330,7 +1329,7 @@ declare interface TemplateElement extends BaseNode {
|
|
|
1330
1329
|
type: AST_NODE_TYPES.TemplateElement;
|
|
1331
1330
|
tail: boolean;
|
|
1332
1331
|
value: {
|
|
1333
|
-
cooked: string;
|
|
1332
|
+
cooked: string | null;
|
|
1334
1333
|
raw: string;
|
|
1335
1334
|
};
|
|
1336
1335
|
}
|
|
@@ -2142,10 +2141,10 @@ declare interface YieldExpression extends BaseNode {
|
|
|
2142
2141
|
delegate: boolean;
|
|
2143
2142
|
}
|
|
2144
2143
|
//#endregion
|
|
2145
|
-
//#region node_modules/.pnpm/@typescript-eslint+types@8.
|
|
2146
|
-
type Lib = 'decorators' | 'decorators.legacy' | 'dom' | 'dom.asynciterable' | 'dom.iterable' | 'es5' | 'es6' | 'es7' | 'es2015' | 'es2015.collection' | 'es2015.core' | 'es2015.generator' | 'es2015.iterable' | 'es2015.promise' | 'es2015.proxy' | 'es2015.reflect' | 'es2015.symbol' | 'es2015.symbol.wellknown' | 'es2016' | 'es2016.array.include' | 'es2016.full' | 'es2016.intl' | 'es2017' | 'es2017.arraybuffer' | 'es2017.date' | 'es2017.full' | 'es2017.intl' | 'es2017.object' | 'es2017.sharedmemory' | 'es2017.string' | 'es2017.typedarrays' | 'es2018' | 'es2018.asyncgenerator' | 'es2018.asynciterable' | 'es2018.full' | 'es2018.intl' | 'es2018.promise' | 'es2018.regexp' | 'es2019' | 'es2019.array' | 'es2019.full' | 'es2019.intl' | 'es2019.object' | 'es2019.string' | 'es2019.symbol' | 'es2020' | 'es2020.bigint' | 'es2020.date' | 'es2020.full' | 'es2020.intl' | 'es2020.number' | 'es2020.promise' | 'es2020.sharedmemory' | 'es2020.string' | 'es2020.symbol.wellknown' | 'es2021' | 'es2021.full' | 'es2021.intl' | 'es2021.promise' | 'es2021.string' | 'es2021.weakref' | 'es2022' | 'es2022.array' | 'es2022.error' | 'es2022.full' | 'es2022.intl' | 'es2022.object' | 'es2022.regexp' | 'es2022.string' | 'es2023' | 'es2023.array' | 'es2023.collection' | 'es2023.full' | 'es2023.intl' | 'es2024' | 'es2024.arraybuffer' | 'es2024.collection' | 'es2024.full' | 'es2024.object' | 'es2024.promise' | 'es2024.regexp' | 'es2024.sharedmemory' | 'es2024.string' | 'esnext' | 'esnext.array' | 'esnext.asynciterable' | 'esnext.bigint' | 'esnext.collection' | 'esnext.decorators' | 'esnext.disposable' | 'esnext.error' | 'esnext.float16' | 'esnext.full' | 'esnext.intl' | 'esnext.iterator' | 'esnext.object' | 'esnext.promise' | 'esnext.regexp' | 'esnext.sharedmemory' | 'esnext.string' | 'esnext.symbol' | 'esnext.weakref' | 'lib' | 'scripthost' | 'webworker' | 'webworker.asynciterable' | 'webworker.importscripts' | 'webworker.iterable';
|
|
2144
|
+
//#region node_modules/.pnpm/@typescript-eslint+types@8.58.0/node_modules/@typescript-eslint/types/dist/lib.d.ts
|
|
2145
|
+
type Lib = 'decorators' | 'decorators.legacy' | 'dom' | 'dom.asynciterable' | 'dom.iterable' | 'es5' | 'es6' | 'es7' | 'es2015' | 'es2015.collection' | 'es2015.core' | 'es2015.generator' | 'es2015.iterable' | 'es2015.promise' | 'es2015.proxy' | 'es2015.reflect' | 'es2015.symbol' | 'es2015.symbol.wellknown' | 'es2016' | 'es2016.array.include' | 'es2016.full' | 'es2016.intl' | 'es2017' | 'es2017.arraybuffer' | 'es2017.date' | 'es2017.full' | 'es2017.intl' | 'es2017.object' | 'es2017.sharedmemory' | 'es2017.string' | 'es2017.typedarrays' | 'es2018' | 'es2018.asyncgenerator' | 'es2018.asynciterable' | 'es2018.full' | 'es2018.intl' | 'es2018.promise' | 'es2018.regexp' | 'es2019' | 'es2019.array' | 'es2019.full' | 'es2019.intl' | 'es2019.object' | 'es2019.string' | 'es2019.symbol' | 'es2020' | 'es2020.bigint' | 'es2020.date' | 'es2020.full' | 'es2020.intl' | 'es2020.number' | 'es2020.promise' | 'es2020.sharedmemory' | 'es2020.string' | 'es2020.symbol.wellknown' | 'es2021' | 'es2021.full' | 'es2021.intl' | 'es2021.promise' | 'es2021.string' | 'es2021.weakref' | 'es2022' | 'es2022.array' | 'es2022.error' | 'es2022.full' | 'es2022.intl' | 'es2022.object' | 'es2022.regexp' | 'es2022.string' | 'es2023' | 'es2023.array' | 'es2023.collection' | 'es2023.full' | 'es2023.intl' | 'es2024' | 'es2024.arraybuffer' | 'es2024.collection' | 'es2024.full' | 'es2024.object' | 'es2024.promise' | 'es2024.regexp' | 'es2024.sharedmemory' | 'es2024.string' | 'es2025' | 'es2025.collection' | 'es2025.float16' | 'es2025.full' | 'es2025.intl' | 'es2025.iterator' | 'es2025.promise' | 'es2025.regexp' | 'esnext' | 'esnext.array' | 'esnext.asynciterable' | 'esnext.bigint' | 'esnext.collection' | 'esnext.date' | 'esnext.decorators' | 'esnext.disposable' | 'esnext.error' | 'esnext.float16' | 'esnext.full' | 'esnext.intl' | 'esnext.iterator' | 'esnext.object' | 'esnext.promise' | 'esnext.regexp' | 'esnext.sharedmemory' | 'esnext.string' | 'esnext.symbol' | 'esnext.temporal' | 'esnext.typedarrays' | 'esnext.weakref' | 'lib' | 'scripthost' | 'webworker' | 'webworker.asynciterable' | 'webworker.importscripts' | 'webworker.iterable';
|
|
2147
2146
|
//#endregion
|
|
2148
|
-
//#region node_modules/.pnpm/@typescript-eslint+types@8.
|
|
2147
|
+
//#region node_modules/.pnpm/@typescript-eslint+types@8.58.0/node_modules/@typescript-eslint/types/dist/parser-options.d.ts
|
|
2149
2148
|
type DebugLevel = boolean | ('eslint' | 'typescript' | 'typescript-eslint')[];
|
|
2150
2149
|
type CacheDurationSeconds = number | 'Infinity';
|
|
2151
2150
|
type EcmaVersion$1 = 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 2015 | 2016 | 2017 | 2018 | 2019 | 2020 | 2021 | 2022 | 2023 | 2024 | 2025 | 2026 | 'latest' | undefined;
|
|
@@ -2213,7 +2212,7 @@ interface ParserOptions$1 {
|
|
|
2213
2212
|
warnOnUnsupportedTypeScriptVersion?: boolean;
|
|
2214
2213
|
}
|
|
2215
2214
|
//#endregion
|
|
2216
|
-
//#region node_modules/.pnpm/@typescript-eslint+types@8.
|
|
2215
|
+
//#region node_modules/.pnpm/@typescript-eslint+types@8.58.0/node_modules/@typescript-eslint/types/dist/ts-estree.d.ts
|
|
2217
2216
|
declare module './generated/ast-spec' {
|
|
2218
2217
|
interface BaseNode {
|
|
2219
2218
|
parent: Node;
|
|
@@ -2401,7 +2400,7 @@ declare module './generated/ast-spec' {
|
|
|
2401
2400
|
}
|
|
2402
2401
|
type NodeWithParent = Exclude<Node, Program$2>;
|
|
2403
2402
|
//#endregion
|
|
2404
|
-
//#region node_modules/.pnpm/@typescript-eslint+typescript-estree@8.
|
|
2403
|
+
//#region node_modules/.pnpm/@typescript-eslint+typescript-estree@8.58.0_typescript@5.9.3/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/ts-nodes.d.ts
|
|
2405
2404
|
declare module 'typescript' {
|
|
2406
2405
|
interface AssertClause extends ts.ImportAttributes {}
|
|
2407
2406
|
interface AssertEntry extends ts.ImportAttribute {}
|
|
@@ -2413,7 +2412,7 @@ declare module 'typescript' {
|
|
|
2413
2412
|
type TSToken = ts.Token<ts.SyntaxKind>;
|
|
2414
2413
|
type TSNode = ts.ArrayBindingPattern | ts.ArrayLiteralExpression | ts.ArrayTypeNode | ts.ArrowFunction | ts.AsExpression | ts.AssertClause | ts.AssertEntry | ts.AwaitExpression | ts.BigIntLiteral | ts.BinaryExpression | ts.BindingElement | ts.Block | ts.BooleanLiteral | ts.BreakStatement | ts.Bundle | ts.CallExpression | ts.CallSignatureDeclaration | ts.CaseBlock | ts.CaseClause | ts.CatchClause | ts.ClassDeclaration | ts.ClassExpression | ts.ClassStaticBlockDeclaration | ts.CommaListExpression | ts.ComputedPropertyName | ts.ConditionalExpression | ts.ConditionalTypeNode | ts.ConstructorDeclaration | ts.ConstructorTypeNode | ts.ConstructSignatureDeclaration | ts.ContinueStatement | ts.DebuggerStatement | ts.Decorator | ts.DefaultClause | ts.DeleteExpression | ts.DoStatement | ts.ElementAccessExpression | ts.EmptyStatement | ts.EnumDeclaration | ts.EnumMember | ts.ExportAssignment | ts.ExportDeclaration | ts.ExportSpecifier | ts.ExpressionStatement | ts.ExpressionWithTypeArguments | ts.ExternalModuleReference | ts.ForInStatement | ts.ForOfStatement | ts.ForStatement | ts.FunctionDeclaration | ts.FunctionExpression | ts.FunctionTypeNode | ts.GetAccessorDeclaration | ts.HeritageClause | ts.Identifier | ts.IfStatement | ts.ImportAttribute | ts.ImportAttributes | ts.ImportClause | ts.ImportDeclaration | ts.ImportEqualsDeclaration | ts.ImportExpression | ts.ImportSpecifier | ts.ImportTypeNode | ts.IndexedAccessTypeNode | ts.IndexSignatureDeclaration | ts.InferTypeNode | ts.InterfaceDeclaration | ts.IntersectionTypeNode | ts.JSDoc | ts.JSDocAllType | ts.JSDocAugmentsTag | ts.JSDocAuthorTag | ts.JSDocCallbackTag | ts.JSDocClassTag | ts.JSDocEnumTag | ts.JSDocFunctionType | ts.JSDocNonNullableType | ts.JSDocNullableType | ts.JSDocOptionalType | ts.JSDocParameterTag | ts.JSDocPropertyTag | ts.JSDocReturnTag | ts.JSDocSignature | ts.JSDocTemplateTag | ts.JSDocThisTag | ts.JSDocTypedefTag | ts.JSDocTypeExpression | ts.JSDocTypeLiteral | ts.JSDocTypeTag | ts.JSDocUnknownTag | ts.JSDocUnknownType | ts.JSDocVariadicType | ts.JsonMinusNumericLiteral | ts.JsxAttribute | ts.JsxClosingElement | ts.JsxClosingFragment | ts.JsxElement | ts.JsxExpression | ts.JsxFragment | ts.JsxNamespacedName | ts.JsxOpeningElement | ts.JsxOpeningFragment | ts.JsxSelfClosingElement | ts.JsxSpreadAttribute | ts.JsxText | ts.KeywordTypeNode | ts.LabeledStatement | ts.LiteralTypeNode | ts.MappedTypeNode | ts.MetaProperty | ts.MethodDeclaration | ts.MethodSignature | ts.MissingDeclaration | ts.Modifier | ts.ModuleBlock | ts.ModuleDeclaration | ts.NamedExports | ts.NamedImports | ts.NamedTupleMember | ts.NamespaceExportDeclaration | ts.NamespaceImport | ts.NewExpression | ts.NonNullExpression | ts.NoSubstitutionTemplateLiteral | ts.NotEmittedStatement | ts.NullLiteral | ts.NumericLiteral | ts.ObjectBindingPattern | ts.ObjectLiteralExpression | ts.OmittedExpression | ts.OptionalTypeNode | ts.ParameterDeclaration | ts.ParenthesizedExpression | ts.ParenthesizedTypeNode | ts.PartiallyEmittedExpression | ts.PostfixUnaryExpression | ts.PrefixUnaryExpression | ts.PrivateIdentifier | ts.PropertyAccessExpression | ts.PropertyAssignment | ts.PropertyDeclaration | ts.PropertySignature | ts.QualifiedName | ts.RegularExpressionLiteral | ts.RestTypeNode | ts.ReturnStatement | ts.SatisfiesExpression | ts.SemicolonClassElement | ts.SetAccessorDeclaration | ts.ShorthandPropertyAssignment | ts.SourceFile | ts.SpreadAssignment | ts.SpreadElement | ts.StringLiteral | ts.SuperExpression | ts.SwitchStatement | ts.SyntheticExpression | ts.TaggedTemplateExpression | ts.TemplateExpression | ts.TemplateHead | ts.TemplateLiteralTypeNode | ts.TemplateMiddle | ts.TemplateSpan | ts.TemplateTail | ts.ThisExpression | ts.ThisTypeNode | ts.ThrowStatement | ts.TryStatement | ts.TupleTypeNode | ts.TypeAliasDeclaration | ts.TypeAssertion | ts.TypeLiteralNode | ts.TypeOfExpression | ts.TypeOperatorNode | ts.TypeParameterDeclaration | ts.TypePredicateNode | ts.TypeQueryNode | ts.TypeReferenceNode | ts.UnionTypeNode | ts.VariableDeclaration | ts.VariableDeclarationList | ts.VariableStatement | ts.VoidExpression | ts.WhileStatement | ts.WithStatement | ts.YieldExpression;
|
|
2415
2414
|
//#endregion
|
|
2416
|
-
//#region node_modules/.pnpm/@typescript-eslint+typescript-estree@8.
|
|
2415
|
+
//#region node_modules/.pnpm/@typescript-eslint+typescript-estree@8.58.0_typescript@5.9.3/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/estree-to-ts-node-types.d.ts
|
|
2417
2416
|
interface EstreeToTsNodeTypes {
|
|
2418
2417
|
[AST_NODE_TYPES.AccessorProperty]: ts.PropertyDeclaration;
|
|
2419
2418
|
[AST_NODE_TYPES.ArrayExpression]: ts.ArrayLiteralExpression;
|
|
@@ -2590,7 +2589,7 @@ interface EstreeToTsNodeTypes {
|
|
|
2590
2589
|
*/
|
|
2591
2590
|
type TSESTreeToTSNode<T extends Node = Node> = Extract<ts.Token<ts.SyntaxKind.ImportKeyword | ts.SyntaxKind.NewKeyword> | TSNode, EstreeToTsNodeTypes[T['type']]>;
|
|
2592
2591
|
//#endregion
|
|
2593
|
-
//#region node_modules/.pnpm/@typescript-eslint+typescript-estree@8.
|
|
2592
|
+
//#region node_modules/.pnpm/@typescript-eslint+typescript-estree@8.58.0_typescript@5.9.3/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/index.d.ts
|
|
2594
2593
|
declare module 'typescript' {
|
|
2595
2594
|
enum JSDocParsingMode {}
|
|
2596
2595
|
}
|
|
@@ -2601,7 +2600,7 @@ declare module 'typescript/lib/tsserverlibrary' {
|
|
|
2601
2600
|
* Internal settings used by the parser to run on a file.
|
|
2602
2601
|
*/
|
|
2603
2602
|
//#endregion
|
|
2604
|
-
//#region node_modules/.pnpm/@typescript-eslint+typescript-estree@8.
|
|
2603
|
+
//#region node_modules/.pnpm/@typescript-eslint+typescript-estree@8.58.0_typescript@5.9.3/node_modules/@typescript-eslint/typescript-estree/dist/parser-options.d.ts
|
|
2605
2604
|
interface ParserWeakMap<Key, ValueBase> {
|
|
2606
2605
|
get<Value extends ValueBase>(key: Key): Value;
|
|
2607
2606
|
has(key: unknown): boolean;
|
|
@@ -2633,7 +2632,7 @@ interface ParserServicesWithoutTypeInformation extends ParserServicesNodeMaps, P
|
|
|
2633
2632
|
}
|
|
2634
2633
|
type ParserServices = ParserServicesWithoutTypeInformation | ParserServicesWithTypeInformation;
|
|
2635
2634
|
//#endregion
|
|
2636
|
-
//#region node_modules/.pnpm/@typescript-eslint+utils@8.
|
|
2635
|
+
//#region node_modules/.pnpm/@typescript-eslint+utils@8.58.0_eslint@10.0.3_jiti@2.6.1__typescript@5.9.3/node_modules/@typescript-eslint/utils/dist/ts-eslint/AST.d.ts
|
|
2637
2636
|
declare namespace AST {
|
|
2638
2637
|
type TokenType = AST_TOKEN_TYPES;
|
|
2639
2638
|
type Token = Token;
|
|
@@ -2641,7 +2640,7 @@ declare namespace AST {
|
|
|
2641
2640
|
type Range = Range;
|
|
2642
2641
|
}
|
|
2643
2642
|
//#endregion
|
|
2644
|
-
//#region node_modules/.pnpm/@typescript-eslint+scope-manager@8.
|
|
2643
|
+
//#region node_modules/.pnpm/@typescript-eslint+scope-manager@8.58.0/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionType.d.ts
|
|
2645
2644
|
declare enum DefinitionType {
|
|
2646
2645
|
CatchClause = "CatchClause",
|
|
2647
2646
|
ClassName = "ClassName",
|
|
@@ -2656,7 +2655,7 @@ declare enum DefinitionType {
|
|
|
2656
2655
|
Variable = "Variable"
|
|
2657
2656
|
}
|
|
2658
2657
|
//#endregion
|
|
2659
|
-
//#region node_modules/.pnpm/@typescript-eslint+scope-manager@8.
|
|
2658
|
+
//#region node_modules/.pnpm/@typescript-eslint+scope-manager@8.58.0/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionBase.d.ts
|
|
2660
2659
|
declare abstract class DefinitionBase<Type extends DefinitionType, Node$1 extends NodeWithParent, Parent extends Node | null, Name extends Node> {
|
|
2661
2660
|
/**
|
|
2662
2661
|
* A unique ID for this instance - primarily used to help debugging and testing
|
|
@@ -2689,35 +2688,35 @@ declare abstract class DefinitionBase<Type extends DefinitionType, Node$1 extend
|
|
|
2689
2688
|
abstract readonly isVariableDefinition: boolean;
|
|
2690
2689
|
}
|
|
2691
2690
|
//#endregion
|
|
2692
|
-
//#region node_modules/.pnpm/@typescript-eslint+scope-manager@8.
|
|
2691
|
+
//#region node_modules/.pnpm/@typescript-eslint+scope-manager@8.58.0/node_modules/@typescript-eslint/scope-manager/dist/definition/CatchClauseDefinition.d.ts
|
|
2693
2692
|
declare class CatchClauseDefinition extends DefinitionBase<DefinitionType.CatchClause, CatchClause, null, Identifier> {
|
|
2694
2693
|
readonly isTypeDefinition = false;
|
|
2695
2694
|
readonly isVariableDefinition = true;
|
|
2696
2695
|
constructor(name: Identifier, node: CatchClauseDefinition['node']);
|
|
2697
2696
|
}
|
|
2698
2697
|
//#endregion
|
|
2699
|
-
//#region node_modules/.pnpm/@typescript-eslint+scope-manager@8.
|
|
2698
|
+
//#region node_modules/.pnpm/@typescript-eslint+scope-manager@8.58.0/node_modules/@typescript-eslint/scope-manager/dist/definition/ClassNameDefinition.d.ts
|
|
2700
2699
|
declare class ClassNameDefinition extends DefinitionBase<DefinitionType.ClassName, ClassDeclaration | ClassExpression, null, Identifier> {
|
|
2701
2700
|
readonly isTypeDefinition = true;
|
|
2702
2701
|
readonly isVariableDefinition = true;
|
|
2703
2702
|
constructor(name: Identifier, node: ClassNameDefinition['node']);
|
|
2704
2703
|
}
|
|
2705
2704
|
//#endregion
|
|
2706
|
-
//#region node_modules/.pnpm/@typescript-eslint+scope-manager@8.
|
|
2705
|
+
//#region node_modules/.pnpm/@typescript-eslint+scope-manager@8.58.0/node_modules/@typescript-eslint/scope-manager/dist/definition/FunctionNameDefinition.d.ts
|
|
2707
2706
|
declare class FunctionNameDefinition extends DefinitionBase<DefinitionType.FunctionName, FunctionDeclaration | FunctionExpression | TSDeclareFunction | TSEmptyBodyFunctionExpression, null, Identifier> {
|
|
2708
2707
|
readonly isTypeDefinition = false;
|
|
2709
2708
|
readonly isVariableDefinition = true;
|
|
2710
2709
|
constructor(name: Identifier, node: FunctionNameDefinition['node']);
|
|
2711
2710
|
}
|
|
2712
2711
|
//#endregion
|
|
2713
|
-
//#region node_modules/.pnpm/@typescript-eslint+scope-manager@8.
|
|
2712
|
+
//#region node_modules/.pnpm/@typescript-eslint+scope-manager@8.58.0/node_modules/@typescript-eslint/scope-manager/dist/definition/ImplicitGlobalVariableDefinition.d.ts
|
|
2714
2713
|
declare class ImplicitGlobalVariableDefinition extends DefinitionBase<DefinitionType.ImplicitGlobalVariable, NodeWithParent, null, BindingName> {
|
|
2715
2714
|
readonly isTypeDefinition = false;
|
|
2716
2715
|
readonly isVariableDefinition = true;
|
|
2717
2716
|
constructor(name: BindingName, node: ImplicitGlobalVariableDefinition['node']);
|
|
2718
2717
|
}
|
|
2719
2718
|
//#endregion
|
|
2720
|
-
//#region node_modules/.pnpm/@typescript-eslint+scope-manager@8.
|
|
2719
|
+
//#region node_modules/.pnpm/@typescript-eslint+scope-manager@8.58.0/node_modules/@typescript-eslint/scope-manager/dist/definition/ImportBindingDefinition.d.ts
|
|
2721
2720
|
declare class ImportBindingDefinition extends DefinitionBase<DefinitionType.ImportBinding, ImportDefaultSpecifier | ImportNamespaceSpecifier | ImportSpecifier | TSImportEqualsDeclaration, ImportDeclaration | TSImportEqualsDeclaration, Identifier> {
|
|
2722
2721
|
readonly isTypeDefinition = true;
|
|
2723
2722
|
readonly isVariableDefinition = true;
|
|
@@ -2725,7 +2724,7 @@ declare class ImportBindingDefinition extends DefinitionBase<DefinitionType.Impo
|
|
|
2725
2724
|
constructor(name: Identifier, node: Exclude<ImportBindingDefinition['node'], TSImportEqualsDeclaration>, decl: ImportDeclaration);
|
|
2726
2725
|
}
|
|
2727
2726
|
//#endregion
|
|
2728
|
-
//#region node_modules/.pnpm/@typescript-eslint+scope-manager@8.
|
|
2727
|
+
//#region node_modules/.pnpm/@typescript-eslint+scope-manager@8.58.0/node_modules/@typescript-eslint/scope-manager/dist/definition/ParameterDefinition.d.ts
|
|
2729
2728
|
declare class ParameterDefinition extends DefinitionBase<DefinitionType.Parameter, ArrowFunctionExpression | FunctionDeclaration | FunctionExpression | TSCallSignatureDeclaration | TSConstructorType | TSConstructSignatureDeclaration | TSDeclareFunction | TSEmptyBodyFunctionExpression | TSFunctionType | TSMethodSignature, null, BindingName> {
|
|
2730
2729
|
/**
|
|
2731
2730
|
* Whether the parameter definition is a part of a rest parameter.
|
|
@@ -2736,45 +2735,45 @@ declare class ParameterDefinition extends DefinitionBase<DefinitionType.Paramete
|
|
|
2736
2735
|
constructor(name: BindingName, node: ParameterDefinition['node'], rest: boolean);
|
|
2737
2736
|
}
|
|
2738
2737
|
//#endregion
|
|
2739
|
-
//#region node_modules/.pnpm/@typescript-eslint+scope-manager@8.
|
|
2738
|
+
//#region node_modules/.pnpm/@typescript-eslint+scope-manager@8.58.0/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumMemberDefinition.d.ts
|
|
2740
2739
|
declare class TSEnumMemberDefinition extends DefinitionBase<DefinitionType.TSEnumMember, TSEnumMember, null, Identifier | StringLiteral> {
|
|
2741
2740
|
readonly isTypeDefinition = true;
|
|
2742
2741
|
readonly isVariableDefinition = true;
|
|
2743
2742
|
constructor(name: Identifier | StringLiteral, node: TSEnumMemberDefinition['node']);
|
|
2744
2743
|
}
|
|
2745
2744
|
//#endregion
|
|
2746
|
-
//#region node_modules/.pnpm/@typescript-eslint+scope-manager@8.
|
|
2745
|
+
//#region node_modules/.pnpm/@typescript-eslint+scope-manager@8.58.0/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumNameDefinition.d.ts
|
|
2747
2746
|
declare class TSEnumNameDefinition extends DefinitionBase<DefinitionType.TSEnumName, TSEnumDeclaration, null, Identifier> {
|
|
2748
2747
|
readonly isTypeDefinition = true;
|
|
2749
2748
|
readonly isVariableDefinition = true;
|
|
2750
2749
|
constructor(name: Identifier, node: TSEnumNameDefinition['node']);
|
|
2751
2750
|
}
|
|
2752
2751
|
//#endregion
|
|
2753
|
-
//#region node_modules/.pnpm/@typescript-eslint+scope-manager@8.
|
|
2752
|
+
//#region node_modules/.pnpm/@typescript-eslint+scope-manager@8.58.0/node_modules/@typescript-eslint/scope-manager/dist/definition/TSModuleNameDefinition.d.ts
|
|
2754
2753
|
declare class TSModuleNameDefinition extends DefinitionBase<DefinitionType.TSModuleName, TSModuleDeclaration, null, Identifier> {
|
|
2755
2754
|
readonly isTypeDefinition = true;
|
|
2756
2755
|
readonly isVariableDefinition = true;
|
|
2757
2756
|
constructor(name: Identifier, node: TSModuleNameDefinition['node']);
|
|
2758
2757
|
}
|
|
2759
2758
|
//#endregion
|
|
2760
|
-
//#region node_modules/.pnpm/@typescript-eslint+scope-manager@8.
|
|
2759
|
+
//#region node_modules/.pnpm/@typescript-eslint+scope-manager@8.58.0/node_modules/@typescript-eslint/scope-manager/dist/definition/TypeDefinition.d.ts
|
|
2761
2760
|
declare class TypeDefinition extends DefinitionBase<DefinitionType.Type, TSInterfaceDeclaration | TSMappedType | TSTypeAliasDeclaration | TSTypeParameter, null, Identifier> {
|
|
2762
2761
|
readonly isTypeDefinition = true;
|
|
2763
2762
|
readonly isVariableDefinition = false;
|
|
2764
2763
|
constructor(name: Identifier, node: TypeDefinition['node']);
|
|
2765
2764
|
}
|
|
2766
2765
|
//#endregion
|
|
2767
|
-
//#region node_modules/.pnpm/@typescript-eslint+scope-manager@8.
|
|
2766
|
+
//#region node_modules/.pnpm/@typescript-eslint+scope-manager@8.58.0/node_modules/@typescript-eslint/scope-manager/dist/definition/VariableDefinition.d.ts
|
|
2768
2767
|
declare class VariableDefinition extends DefinitionBase<DefinitionType.Variable, VariableDeclarator, VariableDeclaration, Identifier> {
|
|
2769
2768
|
readonly isTypeDefinition = false;
|
|
2770
2769
|
readonly isVariableDefinition = true;
|
|
2771
2770
|
constructor(name: Identifier, node: VariableDefinition['node'], decl: VariableDeclaration);
|
|
2772
2771
|
}
|
|
2773
2772
|
//#endregion
|
|
2774
|
-
//#region node_modules/.pnpm/@typescript-eslint+scope-manager@8.
|
|
2773
|
+
//#region node_modules/.pnpm/@typescript-eslint+scope-manager@8.58.0/node_modules/@typescript-eslint/scope-manager/dist/definition/Definition.d.ts
|
|
2775
2774
|
type Definition = CatchClauseDefinition | ClassNameDefinition | FunctionNameDefinition | ImplicitGlobalVariableDefinition | ImportBindingDefinition | ParameterDefinition | TSEnumMemberDefinition | TSEnumNameDefinition | TSModuleNameDefinition | TypeDefinition | VariableDefinition;
|
|
2776
2775
|
//#endregion
|
|
2777
|
-
//#region node_modules/.pnpm/@typescript-eslint+scope-manager@8.
|
|
2776
|
+
//#region node_modules/.pnpm/@typescript-eslint+scope-manager@8.58.0/node_modules/@typescript-eslint/scope-manager/dist/referencer/Reference.d.ts
|
|
2778
2777
|
declare enum ReferenceFlag {
|
|
2779
2778
|
Read = 1,
|
|
2780
2779
|
Write = 2,
|
|
@@ -2860,7 +2859,7 @@ declare class Reference {
|
|
|
2860
2859
|
isReadWrite(): boolean;
|
|
2861
2860
|
}
|
|
2862
2861
|
//#endregion
|
|
2863
|
-
//#region node_modules/.pnpm/@typescript-eslint+scope-manager@8.
|
|
2862
|
+
//#region node_modules/.pnpm/@typescript-eslint+scope-manager@8.58.0/node_modules/@typescript-eslint/scope-manager/dist/variable/VariableBase.d.ts
|
|
2864
2863
|
declare class VariableBase {
|
|
2865
2864
|
/**
|
|
2866
2865
|
* A unique ID for this instance - primarily used to help debugging and testing
|
|
@@ -2900,7 +2899,7 @@ declare class VariableBase {
|
|
|
2900
2899
|
constructor(name: string, scope: Scope$1);
|
|
2901
2900
|
}
|
|
2902
2901
|
//#endregion
|
|
2903
|
-
//#region node_modules/.pnpm/@typescript-eslint+scope-manager@8.
|
|
2902
|
+
//#region node_modules/.pnpm/@typescript-eslint+scope-manager@8.58.0/node_modules/@typescript-eslint/scope-manager/dist/variable/ESLintScopeVariable.d.ts
|
|
2904
2903
|
/**
|
|
2905
2904
|
* ESLint defines global variables using the eslint-scope Variable class
|
|
2906
2905
|
* This is declared here for consumers to use
|
|
@@ -2932,7 +2931,7 @@ declare class ESLintScopeVariable extends VariableBase {
|
|
|
2932
2931
|
eslintExplicitGlobalComments?: Comment[];
|
|
2933
2932
|
}
|
|
2934
2933
|
//#endregion
|
|
2935
|
-
//#region node_modules/.pnpm/@typescript-eslint+scope-manager@8.
|
|
2934
|
+
//#region node_modules/.pnpm/@typescript-eslint+scope-manager@8.58.0/node_modules/@typescript-eslint/scope-manager/dist/variable/Variable.d.ts
|
|
2936
2935
|
/**
|
|
2937
2936
|
* A Variable represents a locally scoped identifier. These include arguments to functions.
|
|
2938
2937
|
*/
|
|
@@ -2949,7 +2948,7 @@ declare class Variable extends VariableBase {
|
|
|
2949
2948
|
get isValueVariable(): boolean;
|
|
2950
2949
|
}
|
|
2951
2950
|
//#endregion
|
|
2952
|
-
//#region node_modules/.pnpm/@typescript-eslint+scope-manager@8.
|
|
2951
|
+
//#region node_modules/.pnpm/@typescript-eslint+scope-manager@8.58.0/node_modules/@typescript-eslint/scope-manager/dist/variable/ImplicitLibVariable.d.ts
|
|
2953
2952
|
interface ImplicitLibVariableOptions {
|
|
2954
2953
|
readonly eslintImplicitGlobalSetting?: ESLintScopeVariable['eslintImplicitGlobalSetting'];
|
|
2955
2954
|
readonly isTypeVariable?: boolean;
|
|
@@ -2957,10 +2956,10 @@ interface ImplicitLibVariableOptions {
|
|
|
2957
2956
|
readonly writeable?: boolean;
|
|
2958
2957
|
}
|
|
2959
2958
|
//#endregion
|
|
2960
|
-
//#region node_modules/.pnpm/@typescript-eslint+scope-manager@8.
|
|
2959
|
+
//#region node_modules/.pnpm/@typescript-eslint+scope-manager@8.58.0/node_modules/@typescript-eslint/scope-manager/dist/variable/index.d.ts
|
|
2961
2960
|
type ScopeVariable = ESLintScopeVariable | Variable;
|
|
2962
2961
|
//#endregion
|
|
2963
|
-
//#region node_modules/.pnpm/@typescript-eslint+scope-manager@8.
|
|
2962
|
+
//#region node_modules/.pnpm/@typescript-eslint+scope-manager@8.58.0/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeType.d.ts
|
|
2964
2963
|
declare enum ScopeType {
|
|
2965
2964
|
block = "block",
|
|
2966
2965
|
catch = "catch",
|
|
@@ -2982,13 +2981,13 @@ declare enum ScopeType {
|
|
|
2982
2981
|
with = "with"
|
|
2983
2982
|
}
|
|
2984
2983
|
//#endregion
|
|
2985
|
-
//#region node_modules/.pnpm/@typescript-eslint+scope-manager@8.
|
|
2984
|
+
//#region node_modules/.pnpm/@typescript-eslint+scope-manager@8.58.0/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionScope.d.ts
|
|
2986
2985
|
declare class FunctionScope extends ScopeBase<ScopeType.function, ArrowFunctionExpression | FunctionDeclaration | FunctionExpression | Program$2 | TSDeclareFunction | TSEmptyBodyFunctionExpression, Scope$1> {
|
|
2987
2986
|
constructor(scopeManager: ScopeManager, upperScope: FunctionScope['upper'], block: FunctionScope['block'], isMethodDefinition: boolean);
|
|
2988
2987
|
protected isValidResolution(ref: Reference, variable: Variable): boolean;
|
|
2989
2988
|
}
|
|
2990
2989
|
//#endregion
|
|
2991
|
-
//#region node_modules/.pnpm/@typescript-eslint+scope-manager@8.
|
|
2990
|
+
//#region node_modules/.pnpm/@typescript-eslint+scope-manager@8.58.0/node_modules/@typescript-eslint/scope-manager/dist/scope/GlobalScope.d.ts
|
|
2992
2991
|
declare class GlobalScope extends ScopeBase<ScopeType.global, Program$2,
|
|
2993
2992
|
/**
|
|
2994
2993
|
* The global scope has no parent.
|
|
@@ -3001,17 +3000,17 @@ null> {
|
|
|
3001
3000
|
defineImplicitVariable(name: string, options: ImplicitLibVariableOptions): void;
|
|
3002
3001
|
}
|
|
3003
3002
|
//#endregion
|
|
3004
|
-
//#region node_modules/.pnpm/@typescript-eslint+scope-manager@8.
|
|
3003
|
+
//#region node_modules/.pnpm/@typescript-eslint+scope-manager@8.58.0/node_modules/@typescript-eslint/scope-manager/dist/scope/ModuleScope.d.ts
|
|
3005
3004
|
declare class ModuleScope extends ScopeBase<ScopeType.module, Program$2, Scope$1> {
|
|
3006
3005
|
constructor(scopeManager: ScopeManager, upperScope: ModuleScope['upper'], block: ModuleScope['block']);
|
|
3007
3006
|
}
|
|
3008
3007
|
//#endregion
|
|
3009
|
-
//#region node_modules/.pnpm/@typescript-eslint+scope-manager@8.
|
|
3008
|
+
//#region node_modules/.pnpm/@typescript-eslint+scope-manager@8.58.0/node_modules/@typescript-eslint/scope-manager/dist/scope/TSModuleScope.d.ts
|
|
3010
3009
|
declare class TSModuleScope extends ScopeBase<ScopeType.tsModule, TSModuleDeclaration, Scope$1> {
|
|
3011
3010
|
constructor(scopeManager: ScopeManager, upperScope: TSModuleScope['upper'], block: TSModuleScope['block']);
|
|
3012
3011
|
}
|
|
3013
3012
|
//#endregion
|
|
3014
|
-
//#region node_modules/.pnpm/@typescript-eslint+scope-manager@8.
|
|
3013
|
+
//#region node_modules/.pnpm/@typescript-eslint+scope-manager@8.58.0/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeBase.d.ts
|
|
3015
3014
|
type VariableScope = FunctionScope | GlobalScope | ModuleScope | TSModuleScope;
|
|
3016
3015
|
declare abstract class ScopeBase<Type extends ScopeType, Block extends Node, Upper extends Scope$1 | null> {
|
|
3017
3016
|
#private;
|
|
@@ -3096,77 +3095,77 @@ declare abstract class ScopeBase<Type extends ScopeType, Block extends Node, Upp
|
|
|
3096
3095
|
referenceValue(node: Identifier | JSXIdentifier, assign?: ReferenceFlag, writeExpr?: Expression | null, maybeImplicitGlobal?: ReferenceImplicitGlobal | null, init?: boolean): void;
|
|
3097
3096
|
}
|
|
3098
3097
|
//#endregion
|
|
3099
|
-
//#region node_modules/.pnpm/@typescript-eslint+scope-manager@8.
|
|
3098
|
+
//#region node_modules/.pnpm/@typescript-eslint+scope-manager@8.58.0/node_modules/@typescript-eslint/scope-manager/dist/scope/CatchScope.d.ts
|
|
3100
3099
|
declare class CatchScope extends ScopeBase<ScopeType.catch, CatchClause, Scope$1> {
|
|
3101
3100
|
constructor(scopeManager: ScopeManager, upperScope: CatchScope['upper'], block: CatchScope['block']);
|
|
3102
3101
|
}
|
|
3103
3102
|
//#endregion
|
|
3104
|
-
//#region node_modules/.pnpm/@typescript-eslint+scope-manager@8.
|
|
3103
|
+
//#region node_modules/.pnpm/@typescript-eslint+scope-manager@8.58.0/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassScope.d.ts
|
|
3105
3104
|
declare class ClassScope extends ScopeBase<ScopeType.class, ClassDeclaration | ClassExpression, Scope$1> {
|
|
3106
3105
|
constructor(scopeManager: ScopeManager, upperScope: ClassScope['upper'], block: ClassScope['block']);
|
|
3107
3106
|
}
|
|
3108
3107
|
//#endregion
|
|
3109
|
-
//#region node_modules/.pnpm/@typescript-eslint+scope-manager@8.
|
|
3108
|
+
//#region node_modules/.pnpm/@typescript-eslint+scope-manager@8.58.0/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassStaticBlockScope.d.ts
|
|
3110
3109
|
declare class ClassStaticBlockScope extends ScopeBase<ScopeType.classStaticBlock, StaticBlock, Scope$1> {
|
|
3111
3110
|
constructor(scopeManager: ScopeManager, upperScope: ClassStaticBlockScope['upper'], block: ClassStaticBlockScope['block']);
|
|
3112
3111
|
}
|
|
3113
3112
|
//#endregion
|
|
3114
|
-
//#region node_modules/.pnpm/@typescript-eslint+scope-manager@8.
|
|
3113
|
+
//#region node_modules/.pnpm/@typescript-eslint+scope-manager@8.58.0/node_modules/@typescript-eslint/scope-manager/dist/scope/ConditionalTypeScope.d.ts
|
|
3115
3114
|
declare class ConditionalTypeScope extends ScopeBase<ScopeType.conditionalType, TSConditionalType, Scope$1> {
|
|
3116
3115
|
constructor(scopeManager: ScopeManager, upperScope: ConditionalTypeScope['upper'], block: ConditionalTypeScope['block']);
|
|
3117
3116
|
}
|
|
3118
3117
|
//#endregion
|
|
3119
|
-
//#region node_modules/.pnpm/@typescript-eslint+scope-manager@8.
|
|
3118
|
+
//#region node_modules/.pnpm/@typescript-eslint+scope-manager@8.58.0/node_modules/@typescript-eslint/scope-manager/dist/scope/ForScope.d.ts
|
|
3120
3119
|
declare class ForScope extends ScopeBase<ScopeType.for, ForInStatement | ForOfStatement | ForStatement, Scope$1> {
|
|
3121
3120
|
constructor(scopeManager: ScopeManager, upperScope: ForScope['upper'], block: ForScope['block']);
|
|
3122
3121
|
}
|
|
3123
3122
|
//#endregion
|
|
3124
|
-
//#region node_modules/.pnpm/@typescript-eslint+scope-manager@8.
|
|
3123
|
+
//#region node_modules/.pnpm/@typescript-eslint+scope-manager@8.58.0/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionExpressionNameScope.d.ts
|
|
3125
3124
|
declare class FunctionExpressionNameScope extends ScopeBase<ScopeType.functionExpressionName, FunctionExpression, Scope$1> {
|
|
3126
3125
|
readonly functionExpressionScope: true;
|
|
3127
3126
|
constructor(scopeManager: ScopeManager, upperScope: FunctionExpressionNameScope['upper'], block: FunctionExpressionNameScope['block']);
|
|
3128
3127
|
}
|
|
3129
3128
|
//#endregion
|
|
3130
|
-
//#region node_modules/.pnpm/@typescript-eslint+scope-manager@8.
|
|
3129
|
+
//#region node_modules/.pnpm/@typescript-eslint+scope-manager@8.58.0/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionTypeScope.d.ts
|
|
3131
3130
|
declare class FunctionTypeScope extends ScopeBase<ScopeType.functionType, TSCallSignatureDeclaration | TSConstructorType | TSConstructSignatureDeclaration | TSFunctionType | TSMethodSignature, Scope$1> {
|
|
3132
3131
|
constructor(scopeManager: ScopeManager, upperScope: FunctionTypeScope['upper'], block: FunctionTypeScope['block']);
|
|
3133
3132
|
}
|
|
3134
3133
|
//#endregion
|
|
3135
|
-
//#region node_modules/.pnpm/@typescript-eslint+scope-manager@8.
|
|
3134
|
+
//#region node_modules/.pnpm/@typescript-eslint+scope-manager@8.58.0/node_modules/@typescript-eslint/scope-manager/dist/scope/MappedTypeScope.d.ts
|
|
3136
3135
|
declare class MappedTypeScope extends ScopeBase<ScopeType.mappedType, TSMappedType, Scope$1> {
|
|
3137
3136
|
constructor(scopeManager: ScopeManager, upperScope: MappedTypeScope['upper'], block: MappedTypeScope['block']);
|
|
3138
3137
|
}
|
|
3139
3138
|
//#endregion
|
|
3140
|
-
//#region node_modules/.pnpm/@typescript-eslint+scope-manager@8.
|
|
3139
|
+
//#region node_modules/.pnpm/@typescript-eslint+scope-manager@8.58.0/node_modules/@typescript-eslint/scope-manager/dist/scope/SwitchScope.d.ts
|
|
3141
3140
|
declare class SwitchScope extends ScopeBase<ScopeType.switch, SwitchStatement, Scope$1> {
|
|
3142
3141
|
constructor(scopeManager: ScopeManager, upperScope: SwitchScope['upper'], block: SwitchScope['block']);
|
|
3143
3142
|
}
|
|
3144
3143
|
//#endregion
|
|
3145
|
-
//#region node_modules/.pnpm/@typescript-eslint+scope-manager@8.
|
|
3144
|
+
//#region node_modules/.pnpm/@typescript-eslint+scope-manager@8.58.0/node_modules/@typescript-eslint/scope-manager/dist/scope/TSEnumScope.d.ts
|
|
3146
3145
|
declare class TSEnumScope extends ScopeBase<ScopeType.tsEnum, TSEnumDeclaration, Scope$1> {
|
|
3147
3146
|
constructor(scopeManager: ScopeManager, upperScope: TSEnumScope['upper'], block: TSEnumScope['block']);
|
|
3148
3147
|
}
|
|
3149
3148
|
//#endregion
|
|
3150
|
-
//#region node_modules/.pnpm/@typescript-eslint+scope-manager@8.
|
|
3149
|
+
//#region node_modules/.pnpm/@typescript-eslint+scope-manager@8.58.0/node_modules/@typescript-eslint/scope-manager/dist/scope/TypeScope.d.ts
|
|
3151
3150
|
declare class TypeScope extends ScopeBase<ScopeType.type, TSInterfaceDeclaration | TSTypeAliasDeclaration, Scope$1> {
|
|
3152
3151
|
constructor(scopeManager: ScopeManager, upperScope: TypeScope['upper'], block: TypeScope['block']);
|
|
3153
3152
|
}
|
|
3154
3153
|
//#endregion
|
|
3155
|
-
//#region node_modules/.pnpm/@typescript-eslint+scope-manager@8.
|
|
3154
|
+
//#region node_modules/.pnpm/@typescript-eslint+scope-manager@8.58.0/node_modules/@typescript-eslint/scope-manager/dist/scope/WithScope.d.ts
|
|
3156
3155
|
declare class WithScope extends ScopeBase<ScopeType.with, WithStatement, Scope$1> {
|
|
3157
3156
|
constructor(scopeManager: ScopeManager, upperScope: WithScope['upper'], block: WithScope['block']);
|
|
3158
3157
|
close(scopeManager: ScopeManager): Scope$1 | null;
|
|
3159
3158
|
}
|
|
3160
3159
|
//#endregion
|
|
3161
|
-
//#region node_modules/.pnpm/@typescript-eslint+scope-manager@8.
|
|
3160
|
+
//#region node_modules/.pnpm/@typescript-eslint+scope-manager@8.58.0/node_modules/@typescript-eslint/scope-manager/dist/scope/Scope.d.ts
|
|
3162
3161
|
type Scope$1 = BlockScope | CatchScope | ClassFieldInitializerScope | ClassScope | ClassStaticBlockScope | ConditionalTypeScope | ForScope | FunctionExpressionNameScope | FunctionScope | FunctionTypeScope | GlobalScope | MappedTypeScope | ModuleScope | SwitchScope | TSEnumScope | TSModuleScope | TypeScope | WithScope;
|
|
3163
3162
|
//#endregion
|
|
3164
|
-
//#region node_modules/.pnpm/@typescript-eslint+scope-manager@8.
|
|
3163
|
+
//#region node_modules/.pnpm/@typescript-eslint+scope-manager@8.58.0/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassFieldInitializerScope.d.ts
|
|
3165
3164
|
declare class ClassFieldInitializerScope extends ScopeBase<ScopeType.classFieldInitializer, Expression, Scope$1> {
|
|
3166
3165
|
constructor(scopeManager: ScopeManager, upperScope: ClassFieldInitializerScope['upper'], block: ClassFieldInitializerScope['block']);
|
|
3167
3166
|
}
|
|
3168
3167
|
//#endregion
|
|
3169
|
-
//#region node_modules/.pnpm/@typescript-eslint+scope-manager@8.
|
|
3168
|
+
//#region node_modules/.pnpm/@typescript-eslint+scope-manager@8.58.0/node_modules/@typescript-eslint/scope-manager/dist/ScopeManager.d.ts
|
|
3170
3169
|
interface ScopeManagerOptions {
|
|
3171
3170
|
globalReturn?: boolean;
|
|
3172
3171
|
impliedStrict?: boolean;
|
|
@@ -3238,12 +3237,12 @@ declare class ScopeManager {
|
|
|
3238
3237
|
protected nestScope<T extends Scope$1>(scope: T): T;
|
|
3239
3238
|
}
|
|
3240
3239
|
//#endregion
|
|
3241
|
-
//#region node_modules/.pnpm/@typescript-eslint+scope-manager@8.
|
|
3240
|
+
//#region node_modules/.pnpm/@typescript-eslint+scope-manager@8.58.0/node_modules/@typescript-eslint/scope-manager/dist/scope/BlockScope.d.ts
|
|
3242
3241
|
declare class BlockScope extends ScopeBase<ScopeType.block, BlockStatement, Scope$1> {
|
|
3243
3242
|
constructor(scopeManager: ScopeManager, upperScope: BlockScope['upper'], block: BlockScope['block']);
|
|
3244
3243
|
}
|
|
3245
3244
|
//#endregion
|
|
3246
|
-
//#region node_modules/.pnpm/@typescript-eslint+utils@8.
|
|
3245
|
+
//#region node_modules/.pnpm/@typescript-eslint+utils@8.58.0_eslint@10.0.3_jiti@2.6.1__typescript@5.9.3/node_modules/@typescript-eslint/utils/dist/ts-eslint/Scope.d.ts
|
|
3247
3246
|
declare namespace Scope {
|
|
3248
3247
|
type ScopeManager = ScopeManager;
|
|
3249
3248
|
type Reference = Reference;
|
|
@@ -3286,7 +3285,7 @@ declare namespace Scope {
|
|
|
3286
3285
|
}
|
|
3287
3286
|
}
|
|
3288
3287
|
//#endregion
|
|
3289
|
-
//#region node_modules/.pnpm/@typescript-eslint+utils@8.
|
|
3288
|
+
//#region node_modules/.pnpm/@typescript-eslint+utils@8.58.0_eslint@10.0.3_jiti@2.6.1__typescript@5.9.3/node_modules/@typescript-eslint/utils/dist/ts-eslint/Parser.d.ts
|
|
3290
3289
|
declare namespace Parser$1 {
|
|
3291
3290
|
interface ParserMeta {
|
|
3292
3291
|
/**
|
|
@@ -3373,7 +3372,7 @@ declare namespace Parser$1 {
|
|
|
3373
3372
|
}
|
|
3374
3373
|
}
|
|
3375
3374
|
//#endregion
|
|
3376
|
-
//#region node_modules/.pnpm/@typescript-eslint+utils@8.
|
|
3375
|
+
//#region node_modules/.pnpm/@typescript-eslint+utils@8.58.0_eslint@10.0.3_jiti@2.6.1__typescript@5.9.3/node_modules/@typescript-eslint/utils/dist/json-schema.d.ts
|
|
3377
3376
|
/**
|
|
3378
3377
|
* This is a fork of https://github.com/DefinitelyTyped/DefinitelyTyped/blob/13f63c2eb8d7479caf01ab8d72f9e3683368a8f5/types/json-schema/index.d.ts
|
|
3379
3378
|
* We intentionally fork this because:
|
|
@@ -3760,7 +3759,7 @@ interface JSONSchema4AnySchema extends JSONSchema4Base {
|
|
|
3760
3759
|
type: 'any';
|
|
3761
3760
|
}
|
|
3762
3761
|
//#endregion
|
|
3763
|
-
//#region node_modules/.pnpm/@typescript-eslint+utils@8.
|
|
3762
|
+
//#region node_modules/.pnpm/@typescript-eslint+utils@8.58.0_eslint@10.0.3_jiti@2.6.1__typescript@5.9.3/node_modules/@typescript-eslint/utils/dist/ts-eslint/SourceCode.d.ts
|
|
3764
3763
|
declare class TokenStore {
|
|
3765
3764
|
/**
|
|
3766
3765
|
* Checks whether any comments exist or not between the given 2 nodes.
|
|
@@ -4111,7 +4110,7 @@ declare namespace SourceCode {
|
|
|
4111
4110
|
declare const SourceCode_base: typeof SourceCodeBase;
|
|
4112
4111
|
declare class SourceCode extends SourceCode_base {}
|
|
4113
4112
|
//#endregion
|
|
4114
|
-
//#region node_modules/.pnpm/@typescript-eslint+utils@8.
|
|
4113
|
+
//#region node_modules/.pnpm/@typescript-eslint+utils@8.58.0_eslint@10.0.3_jiti@2.6.1__typescript@5.9.3/node_modules/@typescript-eslint/utils/dist/ts-eslint/Rule.d.ts
|
|
4115
4114
|
interface RuleMetaDataDocs {
|
|
4116
4115
|
/**
|
|
4117
4116
|
* Concise description of the rule.
|
|
@@ -4302,7 +4301,9 @@ interface RuleContext<MessageIds extends string, Options extends readonly unknow
|
|
|
4302
4301
|
/**
|
|
4303
4302
|
* The language options configured for this run
|
|
4304
4303
|
*/
|
|
4305
|
-
languageOptions: FlatConfig$1.LanguageOptions
|
|
4304
|
+
languageOptions: FlatConfig$1.LanguageOptions & {
|
|
4305
|
+
parserOptions: FlatConfig$1.ParserOptions;
|
|
4306
|
+
};
|
|
4306
4307
|
/**
|
|
4307
4308
|
* An array of the configured options for this rule.
|
|
4308
4309
|
* This array does not include the rule severity.
|
|
@@ -4310,10 +4311,12 @@ interface RuleContext<MessageIds extends string, Options extends readonly unknow
|
|
|
4310
4311
|
options: Options;
|
|
4311
4312
|
/**
|
|
4312
4313
|
* The parser options configured for this run
|
|
4314
|
+
* @deprecated This was deprecated in ESLint 9 and removed in ESLint 10.
|
|
4313
4315
|
*/
|
|
4314
4316
|
parserOptions: Linter.ParserOptions;
|
|
4315
4317
|
/**
|
|
4316
4318
|
* The name of the parser from configuration, if in eslintrc (legacy) config.
|
|
4319
|
+
* @deprecated This was deprecated in ESLint 9 and removed in ESLint 10.
|
|
4317
4320
|
*/
|
|
4318
4321
|
parserPath: string | undefined;
|
|
4319
4322
|
/**
|
|
@@ -4577,13 +4580,14 @@ interface RuleListenerBaseSelectors {
|
|
|
4577
4580
|
type RuleListenerExitSelectors = { [K in keyof RuleListenerBaseSelectors as `${K}:exit`]: RuleListenerBaseSelectors[K] };
|
|
4578
4581
|
type RuleListenerCatchAllBaseCase = Record<string, RuleFunction | undefined>;
|
|
4579
4582
|
type RuleListener = RuleListenerBaseSelectors & RuleListenerCatchAllBaseCase & RuleListenerExitSelectors;
|
|
4580
|
-
interface RuleModule<MessageIds extends string, Options extends readonly unknown[] = [], Docs = unknown, ExtendedRuleListener extends RuleListener = RuleListener> {
|
|
4583
|
+
interface RuleModule$1<MessageIds extends string, Options extends readonly unknown[] = [], Docs = unknown, ExtendedRuleListener extends RuleListener = RuleListener> {
|
|
4581
4584
|
/**
|
|
4582
4585
|
* Function which returns an object with methods that ESLint calls to “visit”
|
|
4583
4586
|
* nodes while traversing the abstract syntax tree.
|
|
4584
4587
|
*/
|
|
4585
4588
|
create(context: Readonly<RuleContext<MessageIds, Options>>): ExtendedRuleListener;
|
|
4586
4589
|
/**
|
|
4590
|
+
* @deprecated Use meta.defaultOptions instead
|
|
4587
4591
|
* Default options the rule will be run with
|
|
4588
4592
|
*/
|
|
4589
4593
|
defaultOptions?: Options;
|
|
@@ -4596,7 +4600,7 @@ interface RuleModule<MessageIds extends string, Options extends readonly unknown
|
|
|
4596
4600
|
*/
|
|
4597
4601
|
name?: string;
|
|
4598
4602
|
}
|
|
4599
|
-
type AnyRuleModule = RuleModule<string, readonly unknown[]>;
|
|
4603
|
+
type AnyRuleModule = RuleModule$1<string, readonly unknown[]>;
|
|
4600
4604
|
/**
|
|
4601
4605
|
* A loose definition of the RuleModule type for use with configs. This type is
|
|
4602
4606
|
* intended to relax validation of types so that we can have basic validation
|
|
@@ -4617,8 +4621,8 @@ type LooseRuleCreateFunction = (context: any) => Record<string, Function | undef
|
|
|
4617
4621
|
type RuleCreateFunction<MessageIds extends string = never, Options extends readonly unknown[] = unknown[]> = (context: Readonly<RuleContext<MessageIds, Options>>) => RuleListener;
|
|
4618
4622
|
type AnyRuleCreateFunction = RuleCreateFunction<string, readonly unknown[]>;
|
|
4619
4623
|
//#endregion
|
|
4620
|
-
//#region node_modules/.pnpm/@typescript-eslint+utils@8.
|
|
4621
|
-
type MinimalRuleModule<MessageIds extends string = string, Options extends readonly unknown[] = []> = Partial<Omit<RuleModule<MessageIds, Options>, 'create'>> & Pick<RuleModule<MessageIds, Options>, 'create'>;
|
|
4624
|
+
//#region node_modules/.pnpm/@typescript-eslint+utils@8.58.0_eslint@10.0.3_jiti@2.6.1__typescript@5.9.3/node_modules/@typescript-eslint/utils/dist/ts-eslint/Linter.d.ts
|
|
4625
|
+
type MinimalRuleModule<MessageIds extends string = string, Options extends readonly unknown[] = []> = Partial<Omit<RuleModule$1<MessageIds, Options>, 'create'>> & Pick<RuleModule$1<MessageIds, Options>, 'create'>;
|
|
4622
4626
|
declare class LinterBase {
|
|
4623
4627
|
/**
|
|
4624
4628
|
* The version from package.json.
|
|
@@ -4867,7 +4871,7 @@ declare const Linter_base: typeof LinterBase;
|
|
|
4867
4871
|
*/
|
|
4868
4872
|
declare class Linter extends Linter_base {}
|
|
4869
4873
|
//#endregion
|
|
4870
|
-
//#region node_modules/.pnpm/@typescript-eslint+utils@8.
|
|
4874
|
+
//#region node_modules/.pnpm/@typescript-eslint+utils@8.58.0_eslint@10.0.3_jiti@2.6.1__typescript@5.9.3/node_modules/@typescript-eslint/utils/dist/ts-eslint/Processor.d.ts
|
|
4871
4875
|
declare namespace Processor$1 {
|
|
4872
4876
|
interface ProcessorMeta {
|
|
4873
4877
|
/**
|
|
@@ -4929,7 +4933,7 @@ declare namespace Processor$1 {
|
|
|
4929
4933
|
}
|
|
4930
4934
|
}
|
|
4931
4935
|
//#endregion
|
|
4932
|
-
//#region node_modules/.pnpm/@typescript-eslint+utils@8.
|
|
4936
|
+
//#region node_modules/.pnpm/@typescript-eslint+utils@8.58.0_eslint@10.0.3_jiti@2.6.1__typescript@5.9.3/node_modules/@typescript-eslint/utils/dist/ts-eslint/Config.d.ts
|
|
4933
4937
|
/** @internal */
|
|
4934
4938
|
declare namespace SharedConfig {
|
|
4935
4939
|
type Severity = 0 | 1 | 2;
|
|
@@ -5216,85 +5220,34 @@ declare namespace FlatConfig$1 {
|
|
|
5216
5220
|
type ConfigFile = ConfigArray | ConfigPromise;
|
|
5217
5221
|
}
|
|
5218
5222
|
//#endregion
|
|
5223
|
+
//#region src/configs/classic-config.d.ts
|
|
5224
|
+
type ClassicRulesConfig = {
|
|
5225
|
+
plugins: ["awscdk"];
|
|
5226
|
+
rules: ClassicConfig.RulesRecord;
|
|
5227
|
+
};
|
|
5228
|
+
declare const recommended$1: ClassicRulesConfig;
|
|
5229
|
+
declare const strict$1: ClassicRulesConfig;
|
|
5230
|
+
//#endregion
|
|
5219
5231
|
//#region src/configs/flat-config.d.ts
|
|
5220
5232
|
type FlatConfig = Record<string, unknown> & {
|
|
5221
5233
|
plugins?: Record<string, Record<string, unknown>>;
|
|
5222
5234
|
languageOptions?: Record<string, unknown>;
|
|
5223
5235
|
rules?: FlatConfig$1.Rules;
|
|
5224
5236
|
};
|
|
5237
|
+
declare const recommended: FlatConfig;
|
|
5238
|
+
declare const strict: FlatConfig;
|
|
5225
5239
|
//#endregion
|
|
5226
5240
|
//#region src/configs/index.d.ts
|
|
5227
|
-
declare const configs: {
|
|
5228
|
-
recommended:
|
|
5229
|
-
strict:
|
|
5230
|
-
classicRecommended:
|
|
5231
|
-
|
|
5232
|
-
|
|
5233
|
-
};
|
|
5234
|
-
classicStrict: {
|
|
5235
|
-
plugins: ["awscdk"];
|
|
5236
|
-
rules: ClassicConfig.RulesRecord;
|
|
5237
|
-
};
|
|
5238
|
-
};
|
|
5241
|
+
declare const configs: Readonly<{
|
|
5242
|
+
recommended: typeof recommended;
|
|
5243
|
+
strict: typeof strict;
|
|
5244
|
+
classicRecommended: typeof recommended$1;
|
|
5245
|
+
classicStrict: typeof strict$1;
|
|
5246
|
+
}>;
|
|
5239
5247
|
//#endregion
|
|
5240
5248
|
//#region src/rules/index.d.ts
|
|
5241
|
-
|
|
5242
|
-
|
|
5243
|
-
name: string;
|
|
5244
|
-
};
|
|
5245
|
-
"migrate-disable-comments": RuleModule<"migrateDisableComment", [], unknown, RuleListener> & {
|
|
5246
|
-
name: string;
|
|
5247
|
-
};
|
|
5248
|
-
"no-construct-in-interface": RuleModule<"invalidInterfaceProperty", [], unknown, RuleListener> & {
|
|
5249
|
-
name: string;
|
|
5250
|
-
};
|
|
5251
|
-
"no-construct-in-public-property-of-construct": RuleModule<"invalidPublicPropertyOfConstruct", [], unknown, RuleListener> & {
|
|
5252
|
-
name: string;
|
|
5253
|
-
};
|
|
5254
|
-
"no-construct-stack-suffix": RuleModule<"invalidConstructId", [{
|
|
5255
|
-
disallowedSuffixes?: ("Construct" | "Stack")[];
|
|
5256
|
-
}], unknown, RuleListener> & {
|
|
5257
|
-
name: string;
|
|
5258
|
-
};
|
|
5259
|
-
"no-import-private": eslint.Rule.RuleModule;
|
|
5260
|
-
"no-mutable-property-of-props-interface": RuleModule<"invalidPropertyOfPropsInterface", [], unknown, RuleListener> & {
|
|
5261
|
-
name: string;
|
|
5262
|
-
};
|
|
5263
|
-
"no-mutable-public-property-of-construct": RuleModule<"invalidPublicPropertyOfConstruct", [], unknown, RuleListener> & {
|
|
5264
|
-
name: string;
|
|
5265
|
-
};
|
|
5266
|
-
"no-parent-name-construct-id-match": RuleModule<"invalidConstructId", {
|
|
5267
|
-
disallowContainingParentName?: boolean;
|
|
5268
|
-
}[], unknown, RuleListener> & {
|
|
5269
|
-
name: string;
|
|
5270
|
-
};
|
|
5271
|
-
"no-unused-props": RuleModule<"unusedProp", [], unknown, RuleListener> & {
|
|
5272
|
-
name: string;
|
|
5273
|
-
};
|
|
5274
|
-
"no-variable-construct-id": RuleModule<"invalidConstructId", [], unknown, RuleListener> & {
|
|
5275
|
-
name: string;
|
|
5276
|
-
};
|
|
5277
|
-
"pascal-case-construct-id": RuleModule<"invalidConstructId", [], unknown, RuleListener> & {
|
|
5278
|
-
name: string;
|
|
5279
|
-
};
|
|
5280
|
-
"prefer-grants-property": RuleModule<"useGrantsProperty", [], unknown, RuleListener> & {
|
|
5281
|
-
name: string;
|
|
5282
|
-
};
|
|
5283
|
-
"props-name-convention": RuleModule<"invalidPropsName", [], unknown, RuleListener> & {
|
|
5284
|
-
name: string;
|
|
5285
|
-
};
|
|
5286
|
-
"require-jsdoc": RuleModule<"missingJSDoc", [], unknown, RuleListener> & {
|
|
5287
|
-
name: string;
|
|
5288
|
-
};
|
|
5289
|
-
"require-passing-this": RuleModule<"missingPassingThis", {
|
|
5290
|
-
allowNonThisAndDisallowScope?: boolean;
|
|
5291
|
-
}[], unknown, RuleListener> & {
|
|
5292
|
-
name: string;
|
|
5293
|
-
};
|
|
5294
|
-
"require-props-default-doc": RuleModule<"missingDefaultDoc", [], unknown, RuleListener> & {
|
|
5295
|
-
name: string;
|
|
5296
|
-
};
|
|
5297
|
-
};
|
|
5249
|
+
type RuleModule = RuleModule$1<string, readonly unknown[]> | Rule.RuleModule;
|
|
5250
|
+
declare const rules: Record<string, RuleModule>;
|
|
5298
5251
|
//#endregion
|
|
5299
5252
|
//#region src/index.d.ts
|
|
5300
5253
|
interface EslintCdkPlugin {
|