getFunctionHeadLocation |
(node: any, sourceCode: SourceCode) => TSESTree.SourceLocation |
const |
`eslintUtils.getFunctionHeadLocation as ( |
|
node: |
|
|
|
|
TSESTree.ArrowFunctionExpression |
|
|
|
|
TSESTree.FunctionDeclaration |
|
|
|
|
TSESTree.FunctionExpression, |
|
|
|
|
sourceCode: TSESLint.SourceCode, |
|
|
|
|
) => TSESTree.SourceLocation` |
✓ |
|
|
|
getFunctionNameWithKind |
(node: any, sourceCode?: SourceCode) => string |
const |
`eslintUtils.getFunctionNameWithKind as ( |
|
node: |
|
|
|
|
TSESTree.ArrowFunctionExpression |
|
|
|
|
TSESTree.FunctionDeclaration |
|
|
|
|
TSESTree.FunctionExpression, |
|
|
|
|
sourceCode?: TSESLint.SourceCode, |
|
|
|
|
) => string` |
✓ |
|
|
|
getPropertyName |
(node: any, initialScope?: scopeManager.Scope) => string |
const |
`eslintUtils.getPropertyName as ( |
|
node: |
|
|
|
|
TSESTree.MemberExpression |
|
|
|
|
TSESTree.MethodDefinition |
|
|
|
|
TSESTree.Property |
|
|
|
|
TSESTree.PropertyDefinition, |
|
|
|
|
initialScope?: TSESLint.Scope.Scope, |
|
|
|
|
) => string |
null` |
✓ |
|
|
getStaticValue |
(node: TSESTree.Node, initialScope?: scopeManager.Scope) => { value: unknown; } |
const |
`eslintUtils.getStaticValue as ( |
|
node: TSESTree.Node, |
|
|
|
|
initialScope?: TSESLint.Scope.Scope, |
|
|
|
|
) => |
null` |
✓ |
|
|
getStringIfConstant |
(node: TSESTree.Node, initialScope?: scopeManager.Scope) => string |
const |
`eslintUtils.getStringIfConstant as ( |
|
node: TSESTree.Node, |
|
|
|
|
initialScope?: TSESLint.Scope.Scope, |
|
|
|
|
) => string |
null` |
✓ |
|
|
hasSideEffect |
(node: TSESTree.Node, sourceCode: SourceCode, options?: { considerGetters?: boolean; considerImplicitTypeConversion?: boolean; }) => boolean |
const |
`eslintUtils.hasSideEffect as ( |
|
node: TSESTree.Node, |
|
|
|
|
sourceCode: TSESLint.SourceCode, |
|
|
|
|
options?: { |
|
|
|
|
considerGetters?: boolean; |
|
|
|
|
considerImplicitTypeConversion?: boolean; |
|
|
|
|
}, |
|
|
|
|
) => boolean` |
✓ |
|
|
|
isParenthesized |
{ (times: number, node: TSESTree.Node, sourceCode: SourceCode): boolean; (node: TSESTree.Node, sourceCode: SourceCode): boolean; } |
const |
`eslintUtils.isParenthesized as { |
|
( |
|
|
|
|
times: number, |
|
|
|
|
node: TSESTree.Node, |
|
|
|
|
sourceCode: TSESLint.SourceCode, |
|
|
|
|
): boolean; |
|
|
|
|