ESLint Error when not using Drizzle

I currently have the Drizzle eslint plugin enabled and I get this error: Without .where(...) you will delete all the rows in a table. If you didn't want to do it, please use toastTimeouts.delete(...).where(...) instead. Otherwise you can ignore this rule hereeslintdrizzle/enforce-delete-with-where Thething is, toastTimeouts is not a Drizzle object but just a normal ES map (const toastTimeouts = new Map<string, NodeJS.Timeout>(); )
No description
1 Reply
rphlmr ⚡
rphlmr ⚡6mo ago
Could you test this in your eslint config?
"drizzle/enforce-delete-with-where": [
"error",
{
drizzleObjectName: ["db", "tx"],
},
],
"drizzle/enforce-update-with-where": [
"error",
{
drizzleObjectName: ["db", "tx"],
},
],
"drizzle/enforce-delete-with-where": [
"error",
{
drizzleObjectName: ["db", "tx"],
},
],
"drizzle/enforce-update-with-where": [
"error",
{
drizzleObjectName: ["db", "tx"],
},
],
(adapt if your eslint config is in yaml)
'drizzle/enforce-delete-with-where':
- "error"
- "drizzleObjectName":
- "db"
- "tx"
'drizzle/enforce-delete-with-where':
- "error"
- "drizzleObjectName":
- "db"
- "tx"
Want results from more Discord servers?
Add your server