We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 85bb38c commit 11e42baCopy full SHA for 11e42ba
lib/types.d.ts
@@ -5,7 +5,18 @@ declare global {
5
interface ASTNode extends estree.BaseNode {
6
[_: string]: any; // TODO: fixme
7
}
8
- type Scope = eslint.Scope.Scope;
+ interface Reference extends eslint.Scope.Reference {
9
+ identifier: eslint.Scope.Reference['identifier'] & { parent?: ASTNode };
10
+ }
11
+ interface Variable extends eslint.Scope.Variable {
12
+ references: Reference[]
13
14
+ interface Scope extends eslint.Scope.Scope {
15
+ block: estree.Node & ASTNode;
16
+ variableScope: Scope
17
+ childScopes: Scope[]
18
+ variables: Variable[]
19
20
type Token = eslint.AST.Token;
21
type Fixer = eslint.Rule.RuleFixer;
22
type JSXAttribute = ASTNode;
0 commit comments