mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-24 20:26:08 +00:00
Reduce any typings in our eslint rules
This commit is contained in:
@@ -5,11 +5,12 @@
|
||||
|
||||
import { TSESTree } from '@typescript-eslint/utils';
|
||||
import * as eslint from 'eslint';
|
||||
import * as ESTree from 'estree';
|
||||
|
||||
export = new class NoReaderAfterAwait implements eslint.Rule.RuleModule {
|
||||
create(context: eslint.Rule.RuleContext): eslint.Rule.RuleListener {
|
||||
return {
|
||||
'CallExpression': (node: any) => {
|
||||
'CallExpression': (node: ESTree.CallExpression) => {
|
||||
const callExpression = node as TSESTree.CallExpression;
|
||||
|
||||
if (!isFunctionWithReader(callExpression.callee)) {
|
||||
|
||||
Reference in New Issue
Block a user