Prettier SQL
github.com
Spec sheet
- Purpose
- prettier-plugin-sql adds SQL formatting support to Prettier.Read 8 Oct 2026 · github.com
- License
- The package is distributed under the MIT license.Read 8 Oct 2026 · github.com
- Maker
- The package metadata names JounQin as its author, and the repository describes itself as a collection of Prettier plugins.Read 8 Oct 2026 · github.com
- Compatibility
- The package metadata lists Prettier ^3.0.3 as a peer dependency.Read 8 Oct 2026 · github.com
- Development status
- The README says the plugin is under development and may not always match Prettier's formatting.Read 8 Oct 2026 · github.com
- Formatting options
- Options include keyword, data type, function, and identifier casing, indentation style, and logical operator line breaks.Read 8 Oct 2026 · github.com
- How it works
- The plugin uses sql-formatter or node-sql-parser to format SQL files.Read 8 Oct 2026 · github.com
- Requirements
- The package requires Node.js v14.18.0 or later, including supported LTS versions.Read 8 Oct 2026 · github.com
- Setup
- The README shows installation through npm or Yarn and configuration through a Prettier config file.Read 8 Oct 2026 · github.com
- SQL in JavaScript
- With prettier-plugin-embed, it can format SQL inside tagged template literals.Read 8 Oct 2026 · github.com
- Supported dialects
- The documented sql-formatter languages include BigQuery, DB2, Hive, MariaDB, MySQL, PostgreSQL, Snowflake, SQLite, T-SQL, Trino, and others.Read 8 Oct 2026 · github.com
Plans and prices
MIT-licensed open-source package Free Prettier plugin · requires Node.js v14.18.0+ Read 8 Oct 2026 · github.com
Where Specifiction places it
- SQL Linters and Formatters#14 of 267.6