Skip to content
SPECIFICTION
Get listed

Prettier SQL

github.com

Free plan Self-hosted
Visit github.com
Spec score 7.6 #14 of 26 in SQL Linters and Formatters

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

Every Prettier SQL plan and price →

Where Specifiction places it

Alternatives to Prettier SQLAll alternatives →