Playground

Lint PostgreSQL in your browser.

The same parser the published plugin uses — libpg-query — compiled to WebAssembly and running entirely on this page. Nothing is sent to a server. Pick a preset, edit the SQL, toggle rules.

0 errors 0 warnings parse 0ms · rules 0ms
Diagnostics

No issues found.

65 rules enabled.

Rules 65 / 89

Reading the diagnostics

  • error — rules whose violation is almost certainly a bug.
  • warn — best-practice rules with legitimate exceptions.
  • off — off by default; opt in when it suits your project.

Heads up: the playground runs a faithful reimplementation of the production rules against libpg-query's AST. The README in the repository is the authoritative description of behaviour; if you spot a discrepancy, please open an issue.

eslint-plugin-postgresql

An ESLint plugin that lints .sql files with real PostgreSQL grammar and a curated set of best-practice rules.

© 2026 eslint-plugin-postgresql contributors Built on libpg-query · PostgreSQL 17