-
-
Notifications
You must be signed in to change notification settings - Fork 79
/
Copy pathglobal.d.ts
178 lines (160 loc) · 6.59 KB
/
global.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
import * as VAST from './types/ast'
import * as VNODE from './types/node'
import * as parserServices from './types/parser-services'
import * as eslint from 'eslint'
declare global {
// **** Rule Helpers ****
type RuleModule = eslint.Rule.RuleModule
type RuleContext = eslint.Rule.RuleContext
namespace Rule {
type ReportDescriptor = eslint.Rule.ReportDescriptor
type SuggestionReportDescriptor = eslint.Rule.SuggestionReportDescriptor
}
type SourceCode = eslint.SourceCode
namespace SourceCode {
type CursorWithSkipOptions = eslint.SourceCode.CursorWithSkipOptions
type CursorWithCountOptions = eslint.SourceCode.CursorWithCountOptions
}
type RuleFixer = eslint.Rule.RuleFixer
type Fix = eslint.Rule.Fix
type NodeListener = eslint.Rule.NodeListener
type RuleListener = eslint.Rule.RuleListener
type TemplateListener = parserServices.TemplateListener
type ParserServices = parserServices.ParserServices
namespace ParserServices {
type TokenStore = parserServices.ParserServices.TokenStore
}
// **** Node data ****
type Range = VNODE.Range
type Position = VNODE.Position
type SourceLocation = VNODE.SourceLocation
type Token = VNODE.Token
type Comment = VNODE.Comment
type HTMLComment = VNODE.HTMLComment
type HTMLBogusComment = VNODE.HTMLBogusComment
type NodeListenerMap = VAST.NodeListenerMap
type VNodeListenerMap = VAST.VNodeListenerMap
// **** AST nodes ****
type ASTNode = VAST.ASTNode
type ESNode = VAST.ESNode
type VNode = VAST.VNode
type TSNode = VAST.TSNode
type JSXNode = VAST.JSXNode
// ---- Vue Template Nodes ----
type VAttribute = VAST.VAttribute
type VDirective = VAST.VDirective
type VDirectiveKey = VAST.VDirectiveKey
type VDocumentFragment = VAST.VDocumentFragment
type VElement = VAST.VElement
type VRootElement = VAST.VRootElement
type VEndTag = VAST.VEndTag
type VExpressionContainer = VAST.VExpressionContainer
type VIdentifier = VAST.VIdentifier
type VLiteral = VAST.VLiteral
type VStartTag = VAST.VStartTag
type VText = VAST.VText
type VForExpression = VAST.VForExpression
type VOnExpression = VAST.VOnExpression
type VSlotScopeExpression = VAST.VSlotScopeExpression
type VFilterSequenceExpression = VAST.VFilterSequenceExpression
type VFilter = VAST.VFilter
// ---- ES Nodes ----
type Identifier = VAST.Identifier
type Literal = VAST.Literal
type Program = VAST.Program
type SwitchCase = VAST.SwitchCase
type CatchClause = VAST.CatchClause
type VariableDeclarator = VAST.VariableDeclarator
type Statement = VAST.Statement
type ExpressionStatement = VAST.ExpressionStatement
type BlockStatement = VAST.BlockStatement
type EmptyStatement = VAST.EmptyStatement
type DebuggerStatement = VAST.DebuggerStatement
type WithStatement = VAST.WithStatement
type ReturnStatement = VAST.ReturnStatement
type LabeledStatement = VAST.LabeledStatement
type BreakStatement = VAST.BreakStatement
type ContinueStatement = VAST.ContinueStatement
type IfStatement = VAST.IfStatement
type SwitchStatement = VAST.SwitchStatement
type ThrowStatement = VAST.ThrowStatement
type TryStatement = VAST.TryStatement
type WhileStatement = VAST.WhileStatement
type DoWhileStatement = VAST.DoWhileStatement
type ForStatement = VAST.ForStatement
type ForInStatement = VAST.ForInStatement
type ForOfStatement = VAST.ForOfStatement
type Declaration = VAST.Declaration
type FunctionDeclaration = VAST.FunctionDeclaration
type VariableDeclaration = VAST.VariableDeclaration
type ClassDeclaration = VAST.ClassDeclaration
type Expression = VAST.Expression
type ThisExpression = VAST.ThisExpression
type ArrayExpression = VAST.ArrayExpression
type ObjectExpression = VAST.ObjectExpression
type FunctionExpression = VAST.FunctionExpression
type ArrowFunctionExpression = VAST.ArrowFunctionExpression
type YieldExpression = VAST.YieldExpression
type UnaryExpression = VAST.UnaryExpression
type UpdateExpression = VAST.UpdateExpression
type BinaryExpression = VAST.BinaryExpression
type AssignmentExpression = VAST.AssignmentExpression
type LogicalExpression = VAST.LogicalExpression
type MemberExpression = VAST.MemberExpression
type ConditionalExpression = VAST.ConditionalExpression
type CallExpression = VAST.CallExpression
type NewExpression = VAST.NewExpression
type SequenceExpression = VAST.SequenceExpression
type TemplateLiteral = VAST.TemplateLiteral
type TaggedTemplateExpression = VAST.TaggedTemplateExpression
type ClassExpression = VAST.ClassExpression
type MetaProperty = VAST.MetaProperty
type AwaitExpression = VAST.AwaitExpression
type ChainExpression = VAST.ChainExpression
type ChainElement = VAST.ChainElement
type Property = VAST.Property
type AssignmentProperty = VAST.AssignmentProperty
type Super = VAST.Super
type TemplateElement = VAST.TemplateElement
type SpreadElement = VAST.SpreadElement
type Pattern = VAST.Pattern
type ObjectPattern = VAST.ObjectPattern
type ArrayPattern = VAST.ArrayPattern
type RestElement = VAST.RestElement
type AssignmentPattern = VAST.AssignmentPattern
type ClassBody = VAST.ClassBody
type MethodDefinition = VAST.MethodDefinition
type ModuleDeclaration = VAST.ModuleDeclaration
type ImportDeclaration = VAST.ImportDeclaration
type ExportNamedDeclaration = VAST.ExportNamedDeclaration
type ExportDefaultDeclaration = VAST.ExportDefaultDeclaration
type ExportAllDeclaration = VAST.ExportAllDeclaration
type ModuleSpecifier = VAST.ModuleSpecifier
type ImportSpecifier = VAST.ImportSpecifier
type ImportDefaultSpecifier = VAST.ImportDefaultSpecifier
type ImportNamespaceSpecifier = VAST.ImportNamespaceSpecifier
type ExportSpecifier = VAST.ExportSpecifier
type ImportExpression = VAST.ImportExpression
// ---- TS Nodes ----
type TSAsExpression = VAST.TSAsExpression
// ---- JSX Nodes ----
type JSXAttribute = VAST.JSXAttribute
type JSXClosingElement = VAST.JSXClosingElement
type JSXClosingFragment = VAST.JSXClosingFragment
type JSXElement = VAST.JSXElement
type JSXEmptyExpression = VAST.JSXEmptyExpression
type JSXExpressionContainer = VAST.JSXExpressionContainer
type JSXFragment = VAST.JSXFragment
type JSXIdentifier = VAST.JSXIdentifier
type JSXOpeningElement = VAST.JSXOpeningElement
type JSXOpeningFragment = VAST.JSXOpeningFragment
type JSXSpreadAttribute = VAST.JSXSpreadAttribute
type JSXSpreadChild = VAST.JSXSpreadChild
type JSXMemberExpression = VAST.JSXMemberExpression
type JSXText = VAST.JSXText
// **** Variables ****
type VVariable = VAST.VVariable
type VReference = VAST.VReference
type Variable = eslint.Scope.Variable
type Reference = eslint.Scope.Reference
}