An ESLint plugin for Drizzle ORM users to avoid common pitfalls and enforce best practices. Version 0.2.3 (stable). Maintained by the Drizzle team. Provides rules like `enforce-update-with-where` to prevent accidental full table updates/deletes, and `drizzle-object-injection` to detect SQL injection via object keys in Drizzle queries. Works with ESLint 8+. Released as needed with fixes and rule additions.
npm install eslint-plugin-drizzleVerified import paths — ran on the pinned version, not inferred.
Configures ESLint to use eslint-plugin-drizzle rules, enforcing safe update/delete patterns and preventing SQL injection via object keys.
Use dynamic import or ensure ESLint is configured for ESM.
Use kebab-case in rules object (e.g., 'drizzle/enforce-update-with-where').
Upgrade ESLint to version 8 or later.
Update to v0.2.0+ to use the rule.
Run `npm install eslint-plugin-drizzle --save-dev` and ensure ESM import.
Check rule names: 'enforce-update-with-where', 'drizzle-object-injection', 'invalid-auth-token'.
No dependency data recorded yet.