diff --git a/rules/no-prisma-delete.mts b/rules/no-prisma-delete.mts index e190fab..aa8546f 100644 --- a/rules/no-prisma-delete.mts +++ b/rules/no-prisma-delete.mts @@ -15,8 +15,10 @@ export default { create(context) { return { CallExpression: function (node) { + // @ts-expect-error It ain't typing properly const funcId = node.callee.property; if (!funcId || funcId.name !== "delete") return; + // @ts-expect-error It ain't typing properly const tableExpr = node.callee.object; if (!tableExpr) return; const prismaExpr = tableExpr.object;