eslint-plugin-knex
JSON →ESLint plugin that enforces safe SQL query practices when using Knex.js, particularly preventing SQL injection by disallowing plain string arguments in raw queries. The current stable version is 0.2.2, released with no recent active development (last update years ago). It offers a single rule, `avoid-injections`, and allows configuration of expected Knex builder variable names. Unlike generic SQL injection linting, this plugin is tailored specifically to Knex's `knex.raw()` method, filling a niche for projects heavily relying on raw queries.
Traffic · last 30 days ↓45% vs prev 7d
total hits 21
actors 6 distinct systems
last hit 2d ago AhrefsBot
top countries 🇺🇸 United States · VN · 🇬🇧 United Kingdom · 🇨🇦 Canada · 🇩🇪 Germany
Resources
API endpoints
full doc /v1/registry/eslint-plugin-knex
compatibility /v1/registry/eslint-plugin-knex/compatibility