An ESLint plugin that automatically formats SQL queries inside template literals tagged with configurable identifiers (e.g., SQL, sql). Current version 1.1.1, updated semi-regularly. It leverages the sql-formatter library to support 15+ SQL dialects (PostgreSQL, MySQL, BigQuery, etc.) and adds post-formatting improvements. Unlike generic formatters, it integrates directly into the ESLint workflow with --fix support, allowing codebases to enforce consistent SQL formatting without manual effort. Ships TypeScript type definitions.
No compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
This is an ESLint plugin, not a regular library. It is loaded via ESLint's configuration, not imported in source code.
Flat config is available since v1.1.0; use 'flat/recommended' or 'flat/format'.
Rules are referenced by name in ESLint configuration, not imported.
Install the plugin and configure it in ESLint to format SQL template literals with --fix.
Breaking-change detection hasn't run for this library yet.
CVE tracking and dependency tree are planned for a later release.