Fix all any casts in lint rules

For #269213

Also bumps eslint versions to fix some typing issues
This commit is contained in:
Matt Bierner
2025-10-03 13:36:25 -07:00
parent 6711af16e5
commit f4d1b11372
9 changed files with 218 additions and 205 deletions

View File

@@ -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'
});
}