mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-24 04:09:28 +00:00
Fix all any casts in lint rules
For #269213 Also bumps eslint versions to fix some typing issues
This commit is contained in:
@@ -20,8 +20,7 @@ export = new class NoAsyncSuite implements eslint.Rule.RuleModule {
|
||||
function hasAsyncSuite(node: any) {
|
||||
if (isCallExpression(node) && node.arguments.length >= 2 && isFunctionExpression(node.arguments[1]) && node.arguments[1].async) {
|
||||
return context.report({
|
||||
// eslint-disable-next-line local/code-no-any-casts
|
||||
node: node as any,
|
||||
node: node,
|
||||
message: 'suite factory function should never be async'
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user