{"id":26428,"library":"sqlint","title":"SQLint","description":"SQLint is a lint tool for SQL with autofix support. It provides syntax checking and style enforcement for SQL files. Version 1.7.1 is the latest stable release. The tool is part of the sql-language-server project and can be used standalone or as an editor plugin. Release cadence is irregular with minor updates. Key differentiators include a built-in fix option (--fix) for automatic problem correction and support for personal/project configuration files. It supports multiple output formats (stylish, json) and can lint from stdin. The package ships TypeScript types and is actively maintained.","status":"active","version":"1.7.1","language":"javascript","source_language":"en","source_url":"https://github.com/joe-re/sql-language-server","tags":["javascript","sql","lint","autofix","beautify","typescript"],"install":[{"cmd":"npm install sqlint","lang":"bash","label":"npm"},{"cmd":"yarn add sqlint","lang":"bash","label":"yarn"},{"cmd":"pnpm add sqlint","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"SQLint is a CLI tool, not a programmatic library. It should be used from the command line, not imported.","wrong":"import sqlint from 'sqlint'","symbol":"sqlint","correct":"Usage via CLI: npx sqlint ."}],"quickstart":{"code":"npm install sqlint --save-dev\necho \"SELECT *\nFROM foo\nWHERE foo.a > 1\" | npx sqlint --stdin","lang":"bash","description":"Install SQLint as a dev dependency and lint a SQL query provided via stdin."},"warnings":[{"fix":"Use sqlint from the command line, either directly or via npx.","message":"SQLint is a CLI tool and cannot be imported programmatically as a library.","severity":"gotcha","affected_versions":">=1.0.0"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"SQLint is a CLI tool; install globally (npm install -g sqlint) or use npx.","cause":"Trying to require or import sqlint in Node.js code.","error":"Cannot find module 'sqlint'"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}