Registry / testing / sqlint

sqlint

JSON →
library1.7.1jsnpmunverified

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.

npm install sqlint
INSTALL
IMPORT
SIG · SQLINT
S
sqlint
testingjavascriptv1.7.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

sqlint
Usage via CLI: npx sqlint .
import sqlint from 'sqlint'
SQLint is a CLI tool, not a programmatic library. It should be used from the command line, not imported.

Install SQLint as a dev dependency and lint a SQL query provided via stdin.

npm install sqlint --save-dev echo "SELECT * FROM foo WHERE foo.a > 1" | npx sqlint --stdin
sqlint --version
Debug
Known issues
gotchaSQLint is a CLI tool and cannot be imported programmatically as a library.
fix
Use sqlint from the command line, either directly or via npx.
affects: >=1.0.0
Errors
Common errors & fixes
Cannot find module 'sqlint'
Trying to require or import sqlint in Node.js code.
fix
SQLint is a CLI tool; install globally (npm install -g sqlint) or use npx.
Upgrade
Version history
1.7.1latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
10 hits · last 30 days
node
8
OpenAI (training)
1
Resources
sqlint — npm install sqlint · libregistry