An ESLint plugin providing lint rules for inline SQL in JavaScript and TypeScript code. Current stable version is 1.9.10, released on npm. It helps catch common SQL mistakes (e.g., missing WHERE clauses, LIKE misuse) directly in your codebase. Unlike other SQL linting tools, it integrates seamlessly with ESLint workflows and supports various SQL dialects. Release cadence is irregular, with maintenance updates as needed.
npm install eslint-plugin-sequelNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to set up the plugin in ESLint flat config or traditional .eslintrc, enabling SQL lint rules.
Ensure your SQL queries are written as tagged template literals: sql`SELECT * FROM users WHERE id = ${id}`Refactor SQL strings to tagged template literals using the sql tag.
Set the 'dialect' option in rule configuration: 'sequel/no-unsafe-query': ['error', { dialect: 'mysql' }]Remove the rule from your config or replace with 'sequel/no-unsafe-query'.
If using ESLint flat config (eslint.config.js), upgrade to v1.9.0+.
npm install eslint-plugin-sequel --save-dev
Add 'plugins: ["sequel"]' to your ESLint config.
Install and configure a parser like @typescript-eslint/parser if using TypeScript, or babel-eslint for JavaScript.