@typescript-eslint/experimental-utils 4.29.3-alpha.4 → 4.29.3
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/CHANGELOG.md +8 -0
- package/_ts3.4/dist/ast-utils/eslint-utils/PatternMatcher.d.ts +48 -0
- package/_ts3.4/dist/ast-utils/eslint-utils/ReferenceTracker.d.ts +76 -0
- package/_ts3.4/dist/ast-utils/eslint-utils/astUtilities.d.ts +82 -0
- package/_ts3.4/dist/ast-utils/eslint-utils/index.d.ts +6 -0
- package/_ts3.4/dist/ast-utils/eslint-utils/predicates.d.ts +32 -0
- package/_ts3.4/dist/ast-utils/eslint-utils/scopeAnalysis.d.ts +18 -0
- package/_ts3.4/dist/ast-utils/index.d.ts +4 -0
- package/_ts3.4/dist/ast-utils/misc.d.ts +8 -0
- package/_ts3.4/dist/ast-utils/predicates.d.ts +62 -0
- package/_ts3.4/dist/eslint-utils/InferTypesFromRule.d.ts +11 -0
- package/_ts3.4/dist/eslint-utils/RuleCreator.d.ts +13 -0
- package/_ts3.4/dist/eslint-utils/RuleTester.d.ts +18 -0
- package/_ts3.4/dist/eslint-utils/applyDefault.d.ts +10 -0
- package/_ts3.4/dist/eslint-utils/batchedSingleLineTests.d.ts +24 -0
- package/_ts3.4/dist/eslint-utils/deepMerge.d.ts +17 -0
- package/_ts3.4/dist/eslint-utils/getParserServices.d.ts +8 -0
- package/_ts3.4/dist/eslint-utils/index.d.ts +8 -0
- package/_ts3.4/dist/index.d.ts +8 -0
- package/_ts3.4/dist/json-schema.d.ts +2 -0
- package/_ts3.4/dist/ts-eslint/AST.d.ts +9 -0
- package/_ts3.4/dist/ts-eslint/CLIEngine.d.ts +143 -0
- package/_ts3.4/dist/ts-eslint/ESLint.d.ts +341 -0
- package/_ts3.4/dist/ts-eslint/Linter.d.ts +325 -0
- package/_ts3.4/dist/ts-eslint/ParserOptions.d.ts +2 -0
- package/_ts3.4/dist/ts-eslint/Rule.d.ts +381 -0
- package/_ts3.4/dist/ts-eslint/RuleTester.d.ts +148 -0
- package/_ts3.4/dist/ts-eslint/Scope.d.ts +44 -0
- package/_ts3.4/dist/ts-eslint/SourceCode.d.ts +352 -0
- package/_ts3.4/dist/ts-eslint/index.d.ts +10 -0
- package/_ts3.4/dist/ts-eslint-scope/Definition.d.ts +19 -0
- package/_ts3.4/dist/ts-eslint-scope/Options.d.ts +15 -0
- package/_ts3.4/dist/ts-eslint-scope/PatternVisitor.d.ts +25 -0
- package/_ts3.4/dist/ts-eslint-scope/Reference.d.ts +28 -0
- package/_ts3.4/dist/ts-eslint-scope/Referencer.d.ts +55 -0
- package/_ts3.4/dist/ts-eslint-scope/Scope.d.ts +103 -0
- package/_ts3.4/dist/ts-eslint-scope/ScopeManager.d.ts +50 -0
- package/_ts3.4/dist/ts-eslint-scope/Variable.d.ts +17 -0
- package/_ts3.4/dist/ts-eslint-scope/analyze.d.ts +16 -0
- package/_ts3.4/dist/ts-eslint-scope/index.d.ts +11 -0
- package/_ts3.4/dist/ts-estree.d.ts +3 -0
- package/package.json +5 -5
|
@@ -0,0 +1,17 @@
|
|
|
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
|
|
@@ -0,0 +1,16 @@
|
|
|
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
|
|
@@ -0,0 +1,11 @@
|
|
|
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
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@typescript-eslint/experimental-utils",
|
|
3
|
-
"version": "4.29.3
|
|
3
|
+
"version": "4.29.3",
|
|
4
4
|
"description": "(Experimental) Utilities for working with TypeScript + ESLint together",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint",
|
|
@@ -40,9 +40,9 @@
|
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"@types/json-schema": "^7.0.7",
|
|
43
|
-
"@typescript-eslint/scope-manager": "4.29.3
|
|
44
|
-
"@typescript-eslint/types": "4.29.3
|
|
45
|
-
"@typescript-eslint/typescript-estree": "4.29.3
|
|
43
|
+
"@typescript-eslint/scope-manager": "4.29.3",
|
|
44
|
+
"@typescript-eslint/types": "4.29.3",
|
|
45
|
+
"@typescript-eslint/typescript-estree": "4.29.3",
|
|
46
46
|
"eslint-scope": "^5.1.1",
|
|
47
47
|
"eslint-utils": "^3.0.0"
|
|
48
48
|
},
|
|
@@ -63,5 +63,5 @@
|
|
|
63
63
|
]
|
|
64
64
|
}
|
|
65
65
|
},
|
|
66
|
-
"gitHead": "
|
|
66
|
+
"gitHead": "055add01299eb91c87323677038b5f7d08b448d4"
|
|
67
67
|
}
|