@typescript-eslint/experimental-utils 5.9.1 → 5.9.2-alpha.13
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 +9 -21
- package/dist/index.d.ts +1 -7
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -24
- package/dist/index.js.map +1 -1
- package/package.json +3 -16
- package/dist/ast-utils/eslint-utils/PatternMatcher.d.ts +0 -48
- package/dist/ast-utils/eslint-utils/PatternMatcher.d.ts.map +0 -1
- package/dist/ast-utils/eslint-utils/PatternMatcher.js +0 -32
- package/dist/ast-utils/eslint-utils/PatternMatcher.js.map +0 -1
- package/dist/ast-utils/eslint-utils/ReferenceTracker.d.ts +0 -76
- package/dist/ast-utils/eslint-utils/ReferenceTracker.d.ts.map +0 -1
- package/dist/ast-utils/eslint-utils/ReferenceTracker.js +0 -36
- package/dist/ast-utils/eslint-utils/ReferenceTracker.js.map +0 -1
- package/dist/ast-utils/eslint-utils/astUtilities.d.ts +0 -76
- package/dist/ast-utils/eslint-utils/astUtilities.d.ts.map +0 -1
- package/dist/ast-utils/eslint-utils/astUtilities.js +0 -95
- package/dist/ast-utils/eslint-utils/astUtilities.js.map +0 -1
- package/dist/ast-utils/eslint-utils/index.d.ts +0 -6
- package/dist/ast-utils/eslint-utils/index.d.ts.map +0 -1
- package/dist/ast-utils/eslint-utils/index.js +0 -18
- package/dist/ast-utils/eslint-utils/index.js.map +0 -1
- package/dist/ast-utils/eslint-utils/predicates.d.ts +0 -32
- package/dist/ast-utils/eslint-utils/predicates.d.ts.map +0 -1
- package/dist/ast-utils/eslint-utils/predicates.js +0 -68
- package/dist/ast-utils/eslint-utils/predicates.js.map +0 -1
- package/dist/ast-utils/eslint-utils/scopeAnalysis.d.ts +0 -18
- package/dist/ast-utils/eslint-utils/scopeAnalysis.d.ts.map +0 -1
- package/dist/ast-utils/eslint-utils/scopeAnalysis.js +0 -40
- package/dist/ast-utils/eslint-utils/scopeAnalysis.js.map +0 -1
- package/dist/ast-utils/helpers.d.ts +0 -18
- package/dist/ast-utils/helpers.d.ts.map +0 -1
- package/dist/ast-utils/helpers.js +0 -20
- package/dist/ast-utils/helpers.js.map +0 -1
- package/dist/ast-utils/index.d.ts +0 -4
- package/dist/ast-utils/index.d.ts.map +0 -1
- package/dist/ast-utils/index.js +0 -16
- package/dist/ast-utils/index.js.map +0 -1
- package/dist/ast-utils/misc.d.ts +0 -8
- package/dist/ast-utils/misc.d.ts.map +0 -1
- package/dist/ast-utils/misc.js +0 -13
- package/dist/ast-utils/misc.js.map +0 -1
- package/dist/ast-utils/predicates.d.ts +0 -180
- package/dist/ast-utils/predicates.d.ts.map +0 -1
- package/dist/ast-utils/predicates.js +0 -125
- package/dist/ast-utils/predicates.js.map +0 -1
- package/dist/eslint-utils/InferTypesFromRule.d.ts +0 -11
- package/dist/eslint-utils/InferTypesFromRule.d.ts.map +0 -1
- package/dist/eslint-utils/InferTypesFromRule.js +0 -3
- package/dist/eslint-utils/InferTypesFromRule.js.map +0 -1
- package/dist/eslint-utils/RuleCreator.d.ts +0 -35
- package/dist/eslint-utils/RuleCreator.d.ts.map +0 -1
- package/dist/eslint-utils/RuleCreator.js +0 -47
- package/dist/eslint-utils/RuleCreator.js.map +0 -1
- package/dist/eslint-utils/RuleTester.d.ts +0 -18
- package/dist/eslint-utils/RuleTester.d.ts.map +0 -1
- package/dist/eslint-utils/RuleTester.js +0 -127
- package/dist/eslint-utils/RuleTester.js.map +0 -1
- package/dist/eslint-utils/applyDefault.d.ts +0 -10
- package/dist/eslint-utils/applyDefault.d.ts.map +0 -1
- package/dist/eslint-utils/applyDefault.js +0 -32
- package/dist/eslint-utils/applyDefault.js.map +0 -1
- package/dist/eslint-utils/batchedSingleLineTests.d.ts +0 -24
- package/dist/eslint-utils/batchedSingleLineTests.d.ts.map +0 -1
- package/dist/eslint-utils/batchedSingleLineTests.js +0 -26
- package/dist/eslint-utils/batchedSingleLineTests.js.map +0 -1
- package/dist/eslint-utils/deepMerge.d.ts +0 -17
- package/dist/eslint-utils/deepMerge.d.ts.map +0 -1
- package/dist/eslint-utils/deepMerge.js +0 -48
- package/dist/eslint-utils/deepMerge.js.map +0 -1
- package/dist/eslint-utils/getParserServices.d.ts +0 -8
- package/dist/eslint-utils/getParserServices.d.ts.map +0 -1
- package/dist/eslint-utils/getParserServices.js +0 -28
- package/dist/eslint-utils/getParserServices.js.map +0 -1
- package/dist/eslint-utils/index.d.ts +0 -9
- package/dist/eslint-utils/index.d.ts.map +0 -1
- package/dist/eslint-utils/index.js +0 -21
- package/dist/eslint-utils/index.js.map +0 -1
- package/dist/eslint-utils/nullThrows.d.ts +0 -14
- package/dist/eslint-utils/nullThrows.d.ts.map +0 -1
- package/dist/eslint-utils/nullThrows.js +0 -28
- package/dist/eslint-utils/nullThrows.js.map +0 -1
- package/dist/json-schema.d.ts +0 -2
- package/dist/json-schema.d.ts.map +0 -1
- package/dist/json-schema.js +0 -6
- package/dist/json-schema.js.map +0 -1
- package/dist/ts-eslint/AST.d.ts +0 -9
- package/dist/ts-eslint/AST.d.ts.map +0 -1
- package/dist/ts-eslint/AST.js +0 -4
- package/dist/ts-eslint/AST.js.map +0 -1
- package/dist/ts-eslint/CLIEngine.d.ts +0 -137
- package/dist/ts-eslint/CLIEngine.d.ts.map +0 -1
- package/dist/ts-eslint/CLIEngine.js +0 -17
- package/dist/ts-eslint/CLIEngine.js.map +0 -1
- package/dist/ts-eslint/ESLint.d.ts +0 -338
- package/dist/ts-eslint/ESLint.d.ts.map +0 -1
- package/dist/ts-eslint/ESLint.js +0 -23
- package/dist/ts-eslint/ESLint.js.map +0 -1
- package/dist/ts-eslint/Linter.d.ts +0 -323
- package/dist/ts-eslint/Linter.d.ts.map +0 -1
- package/dist/ts-eslint/Linter.js +0 -14
- package/dist/ts-eslint/Linter.js.map +0 -1
- package/dist/ts-eslint/ParserOptions.d.ts +0 -2
- package/dist/ts-eslint/ParserOptions.d.ts.map +0 -1
- package/dist/ts-eslint/ParserOptions.js +0 -3
- package/dist/ts-eslint/ParserOptions.js.map +0 -1
- package/dist/ts-eslint/Rule.d.ts +0 -389
- package/dist/ts-eslint/Rule.d.ts.map +0 -1
- package/dist/ts-eslint/Rule.js +0 -3
- package/dist/ts-eslint/Rule.js.map +0 -1
- package/dist/ts-eslint/RuleTester.d.ts +0 -152
- package/dist/ts-eslint/RuleTester.d.ts.map +0 -1
- package/dist/ts-eslint/RuleTester.js +0 -8
- package/dist/ts-eslint/RuleTester.js.map +0 -1
- package/dist/ts-eslint/Scope.d.ts +0 -44
- package/dist/ts-eslint/Scope.d.ts.map +0 -1
- package/dist/ts-eslint/Scope.js +0 -31
- package/dist/ts-eslint/Scope.js.map +0 -1
- package/dist/ts-eslint/SourceCode.d.ts +0 -343
- package/dist/ts-eslint/SourceCode.d.ts.map +0 -1
- package/dist/ts-eslint/SourceCode.js +0 -9
- package/dist/ts-eslint/SourceCode.js.map +0 -1
- package/dist/ts-eslint/index.d.ts +0 -10
- package/dist/ts-eslint/index.d.ts.map +0 -1
- package/dist/ts-eslint/index.js +0 -22
- package/dist/ts-eslint/index.js.map +0 -1
- package/dist/ts-eslint-scope/Definition.d.ts +0 -19
- package/dist/ts-eslint-scope/Definition.d.ts.map +0 -1
- package/dist/ts-eslint-scope/Definition.js +0 -9
- package/dist/ts-eslint-scope/Definition.js.map +0 -1
- package/dist/ts-eslint-scope/Options.d.ts +0 -15
- package/dist/ts-eslint-scope/Options.d.ts.map +0 -1
- package/dist/ts-eslint-scope/Options.js +0 -3
- package/dist/ts-eslint-scope/Options.js.map +0 -1
- package/dist/ts-eslint-scope/PatternVisitor.d.ts +0 -25
- package/dist/ts-eslint-scope/PatternVisitor.d.ts.map +0 -1
- package/dist/ts-eslint-scope/PatternVisitor.js +0 -10
- package/dist/ts-eslint-scope/PatternVisitor.js.map +0 -1
- package/dist/ts-eslint-scope/Reference.d.ts +0 -28
- package/dist/ts-eslint-scope/Reference.d.ts.map +0 -1
- package/dist/ts-eslint-scope/Reference.js +0 -10
- package/dist/ts-eslint-scope/Reference.js.map +0 -1
- package/dist/ts-eslint-scope/Referencer.d.ts +0 -55
- package/dist/ts-eslint-scope/Referencer.d.ts.map +0 -1
- package/dist/ts-eslint-scope/Referencer.js +0 -11
- package/dist/ts-eslint-scope/Referencer.js.map +0 -1
- package/dist/ts-eslint-scope/Scope.d.ts +0 -103
- package/dist/ts-eslint-scope/Scope.d.ts.map +0 -1
- package/dist/ts-eslint-scope/Scope.js +0 -28
- package/dist/ts-eslint-scope/Scope.js.map +0 -1
- package/dist/ts-eslint-scope/ScopeManager.d.ts +0 -50
- package/dist/ts-eslint-scope/ScopeManager.d.ts.map +0 -1
- package/dist/ts-eslint-scope/ScopeManager.js +0 -10
- package/dist/ts-eslint-scope/ScopeManager.js.map +0 -1
- package/dist/ts-eslint-scope/Variable.d.ts +0 -17
- package/dist/ts-eslint-scope/Variable.d.ts.map +0 -1
- package/dist/ts-eslint-scope/Variable.js +0 -10
- package/dist/ts-eslint-scope/Variable.js.map +0 -1
- package/dist/ts-eslint-scope/analyze.d.ts +0 -16
- package/dist/ts-eslint-scope/analyze.d.ts.map +0 -1
- package/dist/ts-eslint-scope/analyze.js +0 -7
- package/dist/ts-eslint-scope/analyze.js.map +0 -1
- package/dist/ts-eslint-scope/index.d.ts +0 -11
- package/dist/ts-eslint-scope/index.d.ts.map +0 -1
- package/dist/ts-eslint-scope/index.js +0 -25
- package/dist/ts-eslint-scope/index.js.map +0 -1
- package/dist/ts-estree.d.ts +0 -3
- package/dist/ts-estree.d.ts.map +0 -1
- package/dist/ts-estree.js +0 -10
- package/dist/ts-estree.js.map +0 -1
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { TSESTree } from '../ts-estree';
|
|
2
|
-
import { PatternVisitorCallback, PatternVisitorOptions, Visitor } from './Options';
|
|
3
|
-
import { Scope } from './Scope';
|
|
4
|
-
import { ScopeManager } from './ScopeManager';
|
|
5
|
-
interface Referencer<SM extends ScopeManager> extends Visitor {
|
|
6
|
-
isInnerMethodDefinition: boolean;
|
|
7
|
-
options: any;
|
|
8
|
-
scopeManager: SM;
|
|
9
|
-
parent?: TSESTree.Node;
|
|
10
|
-
currentScope(): Scope;
|
|
11
|
-
close(node: TSESTree.Node): void;
|
|
12
|
-
pushInnerMethodDefinition(isInnerMethodDefinition: boolean): boolean;
|
|
13
|
-
popInnerMethodDefinition(isInnerMethodDefinition: boolean): void;
|
|
14
|
-
referencingDefaultValue(pattern: any, assignments: any, maybeImplicitGlobal: any, init: boolean): void;
|
|
15
|
-
visitPattern(node: TSESTree.Node, options: PatternVisitorOptions, callback: PatternVisitorCallback): void;
|
|
16
|
-
visitFunction(node: TSESTree.Node): void;
|
|
17
|
-
visitClass(node: TSESTree.Node): void;
|
|
18
|
-
visitProperty(node: TSESTree.Node): void;
|
|
19
|
-
visitForIn(node: TSESTree.Node): void;
|
|
20
|
-
visitVariableDeclaration(variableTargetScope: any, type: any, node: TSESTree.Node, index: any): void;
|
|
21
|
-
AssignmentExpression(node: TSESTree.Node): void;
|
|
22
|
-
CatchClause(node: TSESTree.Node): void;
|
|
23
|
-
Program(node: TSESTree.Program): void;
|
|
24
|
-
Identifier(node: TSESTree.Identifier): void;
|
|
25
|
-
UpdateExpression(node: TSESTree.Node): void;
|
|
26
|
-
MemberExpression(node: TSESTree.Node): void;
|
|
27
|
-
Property(node: TSESTree.Node): void;
|
|
28
|
-
MethodDefinition(node: TSESTree.Node): void;
|
|
29
|
-
BreakStatement(): void;
|
|
30
|
-
ContinueStatement(): void;
|
|
31
|
-
LabeledStatement(node: TSESTree.Node): void;
|
|
32
|
-
ForStatement(node: TSESTree.Node): void;
|
|
33
|
-
ClassExpression(node: TSESTree.Node): void;
|
|
34
|
-
ClassDeclaration(node: TSESTree.Node): void;
|
|
35
|
-
CallExpression(node: TSESTree.Node): void;
|
|
36
|
-
BlockStatement(node: TSESTree.Node): void;
|
|
37
|
-
ThisExpression(): void;
|
|
38
|
-
WithStatement(node: TSESTree.Node): void;
|
|
39
|
-
VariableDeclaration(node: TSESTree.Node): void;
|
|
40
|
-
SwitchStatement(node: TSESTree.Node): void;
|
|
41
|
-
FunctionDeclaration(node: TSESTree.Node): void;
|
|
42
|
-
FunctionExpression(node: TSESTree.Node): void;
|
|
43
|
-
ForOfStatement(node: TSESTree.Node): void;
|
|
44
|
-
ForInStatement(node: TSESTree.Node): void;
|
|
45
|
-
ArrowFunctionExpression(node: TSESTree.Node): void;
|
|
46
|
-
ImportDeclaration(node: TSESTree.Node): void;
|
|
47
|
-
visitExportDeclaration(node: TSESTree.Node): void;
|
|
48
|
-
ExportDeclaration(node: TSESTree.Node): void;
|
|
49
|
-
ExportNamedDeclaration(node: TSESTree.Node): void;
|
|
50
|
-
ExportSpecifier(node: TSESTree.Node): void;
|
|
51
|
-
MetaProperty(): void;
|
|
52
|
-
}
|
|
53
|
-
declare const Referencer: new <SM extends ScopeManager>(options: any, scopeManager: SM) => Referencer<SM>;
|
|
54
|
-
export { Referencer };
|
|
55
|
-
//# sourceMappingURL=Referencer.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Referencer.d.ts","sourceRoot":"","sources":["../../src/ts-eslint-scope/Referencer.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,EACL,sBAAsB,EACtB,qBAAqB,EACrB,OAAO,EACR,MAAM,WAAW,CAAC;AACnB,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C,UAAU,UAAU,CAAC,EAAE,SAAS,YAAY,CAAE,SAAQ,OAAO;IAC3D,uBAAuB,EAAE,OAAO,CAAC;IACjC,OAAO,EAAE,GAAG,CAAC;IACb,YAAY,EAAE,EAAE,CAAC;IACjB,MAAM,CAAC,EAAE,QAAQ,CAAC,IAAI,CAAC;IAEvB,YAAY,IAAI,KAAK,CAAC;IACt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IACnD,iBAAiB,CAAC,IAAI,EAAE,QAAQ,CAAC,IAAI,GAAG,IAAI,CAAC;IAC7C,sBAAsB,CAAC,IAAI,EAAE,QAAQ,CAAC,IAAI,GAAG,IAAI,CAAC;IAClD,iBAAiB,CAAC,IAAI,EAAE,QAAQ,CAAC,IAAI,GAAG,IAAI,CAAC;IAC7C,sBAAsB,CAAC,IAAI,EAAE,QAAQ,CAAC,IAAI,GAAG,IAAI,CAAC;IAClD,eAAe,CAAC,IAAI,EAAE,QAAQ,CAAC,IAAI,GAAG,IAAI,CAAC;IAC3C,YAAY,IAAI,IAAI,CAAC;CACtB;AACD,QAAA,MAAM,UAAU,yCACyB,GAAG,qCAC3C,CAAC;AAEF,OAAO,EAAE,UAAU,EAAE,CAAC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.Referencer = void 0;
|
|
7
|
-
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
8
|
-
const referencer_1 = __importDefault(require("eslint-scope/lib/referencer"));
|
|
9
|
-
const Referencer = referencer_1.default;
|
|
10
|
-
exports.Referencer = Referencer;
|
|
11
|
-
//# sourceMappingURL=Referencer.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Referencer.js","sourceRoot":"","sources":["../../src/ts-eslint-scope/Referencer.ts"],"names":[],"mappings":";;;;;;AAAA,uDAAuD;AACvD,6EAA2D;AA2E3D,MAAM,UAAU,GAAG,oBAElB,CAAC;AAEO,gCAAU"}
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
import { TSESTree } from '../ts-estree';
|
|
2
|
-
import { Definition } from './Definition';
|
|
3
|
-
import { Reference, ReferenceFlag } from './Reference';
|
|
4
|
-
import { ScopeManager } from './ScopeManager';
|
|
5
|
-
import { Variable } from './Variable';
|
|
6
|
-
declare type ScopeType = 'block' | 'catch' | 'class' | 'for' | 'function' | 'function-expression-name' | 'global' | 'module' | 'switch' | 'with' | 'TDZ' | 'enum' | 'empty-function';
|
|
7
|
-
interface Scope {
|
|
8
|
-
type: ScopeType;
|
|
9
|
-
isStrict: boolean;
|
|
10
|
-
upper: Scope | null;
|
|
11
|
-
childScopes: Scope[];
|
|
12
|
-
variableScope: Scope;
|
|
13
|
-
block: TSESTree.Node;
|
|
14
|
-
variables: Variable[];
|
|
15
|
-
set: Map<string, Variable>;
|
|
16
|
-
references: Reference[];
|
|
17
|
-
through: Reference[];
|
|
18
|
-
thisFound?: boolean;
|
|
19
|
-
taints: Map<string, boolean>;
|
|
20
|
-
functionExpressionScope: boolean;
|
|
21
|
-
__left: Reference[];
|
|
22
|
-
__shouldStaticallyClose(scopeManager: ScopeManager): boolean;
|
|
23
|
-
__shouldStaticallyCloseForGlobal(ref: any): boolean;
|
|
24
|
-
__staticCloseRef(ref: any): void;
|
|
25
|
-
__dynamicCloseRef(ref: any): void;
|
|
26
|
-
__globalCloseRef(ref: any): void;
|
|
27
|
-
__close(scopeManager: ScopeManager): Scope;
|
|
28
|
-
__isValidResolution(ref: any, variable: any): variable is Variable;
|
|
29
|
-
__resolve(ref: Reference): boolean;
|
|
30
|
-
__delegateToUpperScope(ref: any): void;
|
|
31
|
-
__addDeclaredVariablesOfNode(variable: any, node: TSESTree.Node): void;
|
|
32
|
-
__defineGeneric(name: string, set: Map<string, Variable>, variables: Variable[], node: TSESTree.Identifier, def: Definition): void;
|
|
33
|
-
__define(node: TSESTree.Node, def: Definition): void;
|
|
34
|
-
__referencing(node: TSESTree.Node, assign?: ReferenceFlag, writeExpr?: TSESTree.Node, maybeImplicitGlobal?: any, partial?: any, init?: any): void;
|
|
35
|
-
__detectEval(): void;
|
|
36
|
-
__detectThis(): void;
|
|
37
|
-
__isClosed(): boolean;
|
|
38
|
-
/**
|
|
39
|
-
* returns resolved {Reference}
|
|
40
|
-
* @method Scope#resolve
|
|
41
|
-
* @param {Espree.Identifier} ident - identifier to be resolved.
|
|
42
|
-
* @returns {Reference} reference
|
|
43
|
-
*/
|
|
44
|
-
resolve(ident: TSESTree.Node): Reference;
|
|
45
|
-
/**
|
|
46
|
-
* returns this scope is static
|
|
47
|
-
* @method Scope#isStatic
|
|
48
|
-
* @returns {boolean} static
|
|
49
|
-
*/
|
|
50
|
-
isStatic(): boolean;
|
|
51
|
-
/**
|
|
52
|
-
* returns this scope has materialized arguments
|
|
53
|
-
* @method Scope#isArgumentsMaterialized
|
|
54
|
-
* @returns {boolean} arguments materialized
|
|
55
|
-
*/
|
|
56
|
-
isArgumentsMaterialized(): boolean;
|
|
57
|
-
/**
|
|
58
|
-
* returns this scope has materialized `this` reference
|
|
59
|
-
* @method Scope#isThisMaterialized
|
|
60
|
-
* @returns {boolean} this materialized
|
|
61
|
-
*/
|
|
62
|
-
isThisMaterialized(): boolean;
|
|
63
|
-
isUsedName(name: any): boolean;
|
|
64
|
-
}
|
|
65
|
-
interface ScopeConstructor {
|
|
66
|
-
new (scopeManager: ScopeManager, type: ScopeType, upperScope: Scope | null, block: TSESTree.Node | null, isMethodDefinition: boolean): Scope;
|
|
67
|
-
}
|
|
68
|
-
declare const Scope: ScopeConstructor;
|
|
69
|
-
interface ScopeChildConstructorWithUpperScope<T> {
|
|
70
|
-
new (scopeManager: ScopeManager, upperScope: Scope, block: TSESTree.Node | null): T;
|
|
71
|
-
}
|
|
72
|
-
interface GlobalScope extends Scope {
|
|
73
|
-
}
|
|
74
|
-
declare const GlobalScope: ScopeConstructor & (new (scopeManager: ScopeManager, block: TSESTree.Node | null) => GlobalScope);
|
|
75
|
-
interface ModuleScope extends Scope {
|
|
76
|
-
}
|
|
77
|
-
declare const ModuleScope: ScopeConstructor & ScopeChildConstructorWithUpperScope<ModuleScope>;
|
|
78
|
-
interface FunctionExpressionNameScope extends Scope {
|
|
79
|
-
}
|
|
80
|
-
declare const FunctionExpressionNameScope: ScopeConstructor & ScopeChildConstructorWithUpperScope<FunctionExpressionNameScope>;
|
|
81
|
-
interface CatchScope extends Scope {
|
|
82
|
-
}
|
|
83
|
-
declare const CatchScope: ScopeConstructor & ScopeChildConstructorWithUpperScope<CatchScope>;
|
|
84
|
-
interface WithScope extends Scope {
|
|
85
|
-
}
|
|
86
|
-
declare const WithScope: ScopeConstructor & ScopeChildConstructorWithUpperScope<WithScope>;
|
|
87
|
-
interface BlockScope extends Scope {
|
|
88
|
-
}
|
|
89
|
-
declare const BlockScope: ScopeConstructor & ScopeChildConstructorWithUpperScope<BlockScope>;
|
|
90
|
-
interface SwitchScope extends Scope {
|
|
91
|
-
}
|
|
92
|
-
declare const SwitchScope: ScopeConstructor & ScopeChildConstructorWithUpperScope<SwitchScope>;
|
|
93
|
-
interface FunctionScope extends Scope {
|
|
94
|
-
}
|
|
95
|
-
declare const FunctionScope: ScopeConstructor & (new (scopeManager: ScopeManager, upperScope: Scope, block: TSESTree.Node | null, isMethodDefinition: boolean) => FunctionScope);
|
|
96
|
-
interface ForScope extends Scope {
|
|
97
|
-
}
|
|
98
|
-
declare const ForScope: ScopeConstructor & ScopeChildConstructorWithUpperScope<ForScope>;
|
|
99
|
-
interface ClassScope extends Scope {
|
|
100
|
-
}
|
|
101
|
-
declare const ClassScope: ScopeConstructor & ScopeChildConstructorWithUpperScope<ClassScope>;
|
|
102
|
-
export { ScopeType, Scope, GlobalScope, ModuleScope, FunctionExpressionNameScope, CatchScope, WithScope, BlockScope, SwitchScope, FunctionScope, ForScope, ClassScope, };
|
|
103
|
-
//# sourceMappingURL=Scope.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Scope.d.ts","sourceRoot":"","sources":["../../src/ts-eslint-scope/Scope.ts"],"names":[],"mappings":"AAeA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,C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Q,KAAK;CAAG;AACrC,QAAA,MAAM,UAAU,oEACiC,CAAC;AAElD,OAAO,EACL,SAAS,EACT,KAAK,EACL,WAAW,EACX,WAAW,EACX,2BAA2B,EAC3B,UAAU,EACV,SAAS,EACT,UAAU,EACV,WAAW,EACX,aAAa,EACb,QAAQ,EACR,UAAU,GACX,CAAC"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* eslint-disable @typescript-eslint/no-empty-interface, @typescript-eslint/no-explicit-any */
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.ClassScope = exports.ForScope = exports.FunctionScope = exports.SwitchScope = exports.BlockScope = exports.WithScope = exports.CatchScope = exports.FunctionExpressionNameScope = exports.ModuleScope = exports.GlobalScope = exports.Scope = void 0;
|
|
5
|
-
const scope_1 = require("eslint-scope/lib/scope");
|
|
6
|
-
const Scope = scope_1.Scope;
|
|
7
|
-
exports.Scope = Scope;
|
|
8
|
-
const GlobalScope = scope_1.GlobalScope;
|
|
9
|
-
exports.GlobalScope = GlobalScope;
|
|
10
|
-
const ModuleScope = scope_1.ModuleScope;
|
|
11
|
-
exports.ModuleScope = ModuleScope;
|
|
12
|
-
const FunctionExpressionNameScope = scope_1.FunctionExpressionNameScope;
|
|
13
|
-
exports.FunctionExpressionNameScope = FunctionExpressionNameScope;
|
|
14
|
-
const CatchScope = scope_1.CatchScope;
|
|
15
|
-
exports.CatchScope = CatchScope;
|
|
16
|
-
const WithScope = scope_1.WithScope;
|
|
17
|
-
exports.WithScope = WithScope;
|
|
18
|
-
const BlockScope = scope_1.BlockScope;
|
|
19
|
-
exports.BlockScope = BlockScope;
|
|
20
|
-
const SwitchScope = scope_1.SwitchScope;
|
|
21
|
-
exports.SwitchScope = SwitchScope;
|
|
22
|
-
const FunctionScope = scope_1.FunctionScope;
|
|
23
|
-
exports.FunctionScope = FunctionScope;
|
|
24
|
-
const ForScope = scope_1.ForScope;
|
|
25
|
-
exports.ForScope = ForScope;
|
|
26
|
-
const ClassScope = scope_1.ClassScope;
|
|
27
|
-
exports.ClassScope = ClassScope;
|
|
28
|
-
//# sourceMappingURL=Scope.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Scope.js","sourceRoot":"","sources":["../../src/ts-eslint-scope/Scope.ts"],"names":[],"mappings":";AAAA,8FAA8F;;;AAE9F,kDAYgC;AA8GhC,MAAM,KAAK,GAAG,aAA+B,CAAC;AA4D5C,sBAAK;AAjDP,MAAM,WAAW,GAAG,mBAEnB,CAAC;AAgDA,kCAAW;AA7Cb,MAAM,WAAW,GAAG,mBAC8B,CAAC;AA6CjD,kCAAW;AA1Cb,MAAM,2BAA2B,GAC/B,mCACkE,CAAC;AAyCnE,kEAA2B;AAtC7B,MAAM,UAAU,GAAG,kBAC8B,CAAC;AAsChD,gCAAU;AAnCZ,MAAM,SAAS,GAAG,iBAC8B,CAAC;AAmC/C,8BAAS;AAhCX,MAAM,UAAU,GAAG,kBAC8B,CAAC;AAgChD,gCAAU;AA7BZ,MAAM,WAAW,GAAG,mBAC8B,CAAC;AA6BjD,kCAAW;AA1Bb,MAAM,aAAa,GAAG,qBAOrB,CAAC;AAoBA,sCAAa;AAjBf,MAAM,QAAQ,GAAG,gBAC8B,CAAC;AAiB9C,4BAAQ;AAdV,MAAM,UAAU,GAAG,kBAC8B,CAAC;AAchD,gCAAU"}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { TSESTree } from '../ts-estree';
|
|
2
|
-
import { EcmaVersion } from '../ts-eslint';
|
|
3
|
-
import { Scope } from './Scope';
|
|
4
|
-
import { Variable } from './Variable';
|
|
5
|
-
interface ScopeManagerOptions {
|
|
6
|
-
directive?: boolean;
|
|
7
|
-
optimistic?: boolean;
|
|
8
|
-
ignoreEval?: boolean;
|
|
9
|
-
nodejsScope?: boolean;
|
|
10
|
-
sourceType?: 'module' | 'script';
|
|
11
|
-
impliedStrict?: boolean;
|
|
12
|
-
ecmaVersion?: EcmaVersion;
|
|
13
|
-
}
|
|
14
|
-
interface ScopeManager {
|
|
15
|
-
__options: ScopeManagerOptions;
|
|
16
|
-
__currentScope: Scope;
|
|
17
|
-
__nodeToScope: WeakMap<TSESTree.Node, Scope[]>;
|
|
18
|
-
__declaredVariables: WeakMap<TSESTree.Node, Variable[]>;
|
|
19
|
-
scopes: Scope[];
|
|
20
|
-
globalScope: Scope;
|
|
21
|
-
__useDirective(): boolean;
|
|
22
|
-
__isOptimistic(): boolean;
|
|
23
|
-
__ignoreEval(): boolean;
|
|
24
|
-
__isNodejsScope(): boolean;
|
|
25
|
-
isModule(): boolean;
|
|
26
|
-
isImpliedStrict(): boolean;
|
|
27
|
-
isStrictModeSupported(): boolean;
|
|
28
|
-
__get(node: TSESTree.Node): Scope | undefined;
|
|
29
|
-
getDeclaredVariables(node: TSESTree.Node): Variable[];
|
|
30
|
-
acquire(node: TSESTree.Node, inner?: boolean): Scope | null;
|
|
31
|
-
acquireAll(node: TSESTree.Node): Scope | null;
|
|
32
|
-
release(node: TSESTree.Node, inner?: boolean): Scope | null;
|
|
33
|
-
attach(): void;
|
|
34
|
-
detach(): void;
|
|
35
|
-
__nestScope<T extends Scope>(scope: T): T;
|
|
36
|
-
__nestGlobalScope(node: TSESTree.Node): Scope;
|
|
37
|
-
__nestBlockScope(node: TSESTree.Node): Scope;
|
|
38
|
-
__nestFunctionScope(node: TSESTree.Node, isMethodDefinition: boolean): Scope;
|
|
39
|
-
__nestForScope(node: TSESTree.Node): Scope;
|
|
40
|
-
__nestCatchScope(node: TSESTree.Node): Scope;
|
|
41
|
-
__nestWithScope(node: TSESTree.Node): Scope;
|
|
42
|
-
__nestClassScope(node: TSESTree.Node): Scope;
|
|
43
|
-
__nestSwitchScope(node: TSESTree.Node): Scope;
|
|
44
|
-
__nestModuleScope(node: TSESTree.Node): Scope;
|
|
45
|
-
__nestFunctionExpressionNameScope(node: TSESTree.Node): Scope;
|
|
46
|
-
__isES6(): boolean;
|
|
47
|
-
}
|
|
48
|
-
declare const ScopeManager: new (options: ScopeManagerOptions) => ScopeManager;
|
|
49
|
-
export { ScopeManager, ScopeManagerOptions };
|
|
50
|
-
//# sourceMappingURL=ScopeManager.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ScopeManager.d.ts","sourceRoot":"","sources":["../../src/ts-eslint-scope/ScopeManager.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,UAAU,mBAAmB;IAC3B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,UAAU,CAAC,EAAE,QAAQ,GAAG,QAAQ,CAAC;IACjC,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,WAAW,CAAC,EAAE,WAAW,CAAC;CAC3B;AAED,UAAU,YAAY;IACpB,SAAS,EAAE,mBAAmB,CAAC;IAC/B,cAAc,EAAE,KAAK,CAAC;IACtB,aAAa,EAAE,OAAO,CAAC,QAAQ,CAAC,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC;IAC/C,mBAAmB,EAAE,OAAO,CAAC,QAAQ,CAAC,IAAI,EAAE,QAAQ,EAAE,CAAC,CAAC;IAExD,MAAM,EAAE,KAAK,EAAE,CAAC;IAChB,WAAW,EAAE,KAAK,CAAC;IAEnB,cAAc,IAAI,OAAO,CAAC;IAC1B,cAAc,IAAI,OAAO,CAAC;IAC1B,YAAY,IAAI,OAAO,CAAC;IACxB,eAAe,IAAI,OAAO,CAAC;IAC3B,QAAQ,IAAI,OAAO,CAAC;IACpB,eAA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AK,CAAC;IAC9C,iBAAiB,CAAC,IAAI,EAAE,QAAQ,CAAC,IAAI,GAAG,KAAK,CAAC;IAC9C,iCAAiC,CAAC,IAAI,EAAE,QAAQ,CAAC,IAAI,GAAG,KAAK,CAAC;IAE9D,OAAO,IAAI,OAAO,CAAC;CACpB;AACD,QAAA,MAAM,YAAY,gBACF,mBAAmB,KAAG,YACrC,CAAC;AAEF,OAAO,EAAE,YAAY,EAAE,mBAAmB,EAAE,CAAC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.ScopeManager = void 0;
|
|
7
|
-
const scope_manager_1 = __importDefault(require("eslint-scope/lib/scope-manager"));
|
|
8
|
-
const ScopeManager = scope_manager_1.default;
|
|
9
|
-
exports.ScopeManager = ScopeManager;
|
|
10
|
-
//# sourceMappingURL=ScopeManager.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ScopeManager.js","sourceRoot":"","sources":["../../src/ts-eslint-scope/ScopeManager.ts"],"names":[],"mappings":";;;;;;AAAA,mFAAgE;AAwDhE,MAAM,YAAY,GAAG,uBAEpB,CAAC;AAEO,oCAAY"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { TSESTree } from '../ts-estree';
|
|
2
|
-
import { Reference } from './Reference';
|
|
3
|
-
import { Definition } from './Definition';
|
|
4
|
-
import { Scope } from './Scope';
|
|
5
|
-
interface Variable {
|
|
6
|
-
name: string;
|
|
7
|
-
identifiers: TSESTree.Identifier[];
|
|
8
|
-
references: Reference[];
|
|
9
|
-
defs: Definition[];
|
|
10
|
-
eslintUsed?: boolean;
|
|
11
|
-
stack?: unknown;
|
|
12
|
-
tainted?: boolean;
|
|
13
|
-
scope?: Scope;
|
|
14
|
-
}
|
|
15
|
-
declare const Variable: new () => Variable;
|
|
16
|
-
export { Variable };
|
|
17
|
-
//# sourceMappingURL=Variable.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Variable.d.ts","sourceRoot":"","sources":["../../src/ts-eslint-scope/Variable.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhC,UAAU,QAAQ;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,QAAQ,CAAC,UAAU,EAAE,CAAC;IACnC,UAAU,EAAE,SAAS,EAAE,CAAC;IACxB,IAAI,EAAE,UAAU,EAAE,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,KAAK,CAAC,EAAE,KAAK,CAAC;CACf;AAED,QAAA,MAAM,QAAQ,YACJ,QACT,CAAC;AAEF,OAAO,EAAE,QAAQ,EAAE,CAAC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.Variable = void 0;
|
|
7
|
-
const variable_1 = __importDefault(require("eslint-scope/lib/variable"));
|
|
8
|
-
const Variable = variable_1.default;
|
|
9
|
-
exports.Variable = Variable;
|
|
10
|
-
//# sourceMappingURL=Variable.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Variable.js","sourceRoot":"","sources":["../../src/ts-eslint-scope/Variable.ts"],"names":[],"mappings":";;;;;;AAAA,yEAAuD;AAiBvD,MAAM,QAAQ,GAAG,kBAEhB,CAAC;AAEO,4BAAQ"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { EcmaVersion } from '../ts-eslint';
|
|
2
|
-
import { TSESTree } from '../ts-estree';
|
|
3
|
-
import { ScopeManager } from './ScopeManager';
|
|
4
|
-
interface AnalysisOptions {
|
|
5
|
-
optimistic?: boolean;
|
|
6
|
-
directive?: boolean;
|
|
7
|
-
ignoreEval?: boolean;
|
|
8
|
-
nodejsScope?: boolean;
|
|
9
|
-
impliedStrict?: boolean;
|
|
10
|
-
fallback?: string | ((node: TSESTree.Node) => string[]);
|
|
11
|
-
sourceType?: 'script' | 'module';
|
|
12
|
-
ecmaVersion?: EcmaVersion;
|
|
13
|
-
}
|
|
14
|
-
declare const analyze: (ast: TSESTree.Node, options?: AnalysisOptions | undefined) => ScopeManager;
|
|
15
|
-
export { analyze, AnalysisOptions };
|
|
16
|
-
//# sourceMappingURL=analyze.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"analyze.d.ts","sourceRoot":"","sources":["../../src/ts-eslint-scope/analyze.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C,UAAU,eAAe;IACvB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,QAAQ,CAAC,EAAE,MAAM,GAAG,CAAC,CAAC,IAAI,EAAE,QAAQ,CAAC,IAAI,KAAK,MAAM,EAAE,CAAC,CAAC;IACxD,UAAU,CAAC,EAAE,QAAQ,GAAG,QAAQ,CAAC;IACjC,WAAW,CAAC,EAAE,WAAW,CAAC;CAC3B;AACD,QAAA,MAAM,OAAO,QACN,SAAS,IAAI,4CAEf,YAAY,CAAC;AAElB,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"analyze.js","sourceRoot":"","sources":["../../src/ts-eslint-scope/analyze.ts"],"names":[],"mappings":";;;AAAA,+CAAwD;AAexD,MAAM,OAAO,GAAG,sBAGC,CAAC;AAET,0BAAO"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export * from './analyze';
|
|
2
|
-
export * from './Definition';
|
|
3
|
-
export * from './Options';
|
|
4
|
-
export * from './PatternVisitor';
|
|
5
|
-
export * from './Reference';
|
|
6
|
-
export * from './Referencer';
|
|
7
|
-
export * from './Scope';
|
|
8
|
-
export * from './ScopeManager';
|
|
9
|
-
export * from './Variable';
|
|
10
|
-
export declare const version: string;
|
|
11
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ts-eslint-scope/index.ts"],"names":[],"mappings":"AAEA,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,kBAAkB,CAAC;AACjC,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAE3B,eAAO,MAAM,OAAO,EAAE,MAAsB,CAAC"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
-
}) : (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
o[k2] = m[k];
|
|
8
|
-
}));
|
|
9
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
-
};
|
|
12
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
-
exports.version = void 0;
|
|
14
|
-
const eslint_scope_1 = require("eslint-scope");
|
|
15
|
-
__exportStar(require("./analyze"), exports);
|
|
16
|
-
__exportStar(require("./Definition"), exports);
|
|
17
|
-
__exportStar(require("./Options"), exports);
|
|
18
|
-
__exportStar(require("./PatternVisitor"), exports);
|
|
19
|
-
__exportStar(require("./Reference"), exports);
|
|
20
|
-
__exportStar(require("./Referencer"), exports);
|
|
21
|
-
__exportStar(require("./Scope"), exports);
|
|
22
|
-
__exportStar(require("./ScopeManager"), exports);
|
|
23
|
-
__exportStar(require("./Variable"), exports);
|
|
24
|
-
exports.version = eslint_scope_1.version;
|
|
25
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/ts-eslint-scope/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,+CAAwD;AAExD,4CAA0B;AAC1B,+CAA6B;AAC7B,4CAA0B;AAC1B,mDAAiC;AACjC,8CAA4B;AAC5B,+CAA6B;AAC7B,0CAAwB;AACxB,iDAA+B;AAC/B,6CAA2B;AAEd,QAAA,OAAO,GAAW,sBAAa,CAAC"}
|
package/dist/ts-estree.d.ts
DELETED
package/dist/ts-estree.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ts-estree.d.ts","sourceRoot":"","sources":["../src/ts-estree.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,cAAc,EACd,eAAe,EACf,QAAQ,GACT,MAAM,0BAA0B,CAAC;AAKlC,OAAO,EAAE,cAAc,EAAE,MAAM,0DAA0D,CAAC"}
|
package/dist/ts-estree.js
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// for convenience's sake - export the types directly from here so consumers
|
|
3
|
-
// don't need to reference/install both packages in their code
|
|
4
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.TSESTree = exports.AST_TOKEN_TYPES = exports.AST_NODE_TYPES = void 0;
|
|
6
|
-
var types_1 = require("@typescript-eslint/types");
|
|
7
|
-
Object.defineProperty(exports, "AST_NODE_TYPES", { enumerable: true, get: function () { return types_1.AST_NODE_TYPES; } });
|
|
8
|
-
Object.defineProperty(exports, "AST_TOKEN_TYPES", { enumerable: true, get: function () { return types_1.AST_TOKEN_TYPES; } });
|
|
9
|
-
Object.defineProperty(exports, "TSESTree", { enumerable: true, get: function () { return types_1.TSESTree; } });
|
|
10
|
-
//# sourceMappingURL=ts-estree.js.map
|
package/dist/ts-estree.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ts-estree.js","sourceRoot":"","sources":["../src/ts-estree.ts"],"names":[],"mappings":";AAAA,4EAA4E;AAC5E,8DAA8D;;;AAE9D,kDAIkC;AAHhC,uGAAA,cAAc,OAAA;AACd,wGAAA,eAAe,OAAA;AACf,iGAAA,QAAQ,OAAA"}
|