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 stale · no recent hits
total hits 9
actors 3 distinct systems
last hit 20d ago AhrefsBot
top countries 🇨🇦 Canada · 🇺🇸 United States · 🇩🇪 Germany
Resources
API endpoints
full doc /v1/registry/eslint-plugin-knex
compatibility /v1/registry/eslint-plugin-knex/compatibility