node package manager
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org ยป



Package on npm MIT license Patreon donate button Donate Follow

This is a file type plugin that adds support for linting PLV8 function bodies within a .sql file.

npm install eslint-plugin-pg-sql

To use it you need to add it to the "plugins" section of your ESLint config, and you need to run ESLint with the --ext sql option so it recognizes .sql files.

eslint --ext js --ext sql path/to/files


Detecting functions of type plv8 and passing their bodies through to ESLint is working.

Having the errors point to the correct line numbers is not working. At all. Not even close.


While I've got your attention:

  • my open source work is self-funded through freelance consulting work and generous donations from the community, you can support my open source work via Patreon, or PayPal
  • you can follow me on Twitter: @benjie
  • if you're looking for an instant GraphQL server for your PostgreSQL database that leverages the power of PostgreSQL and doesn't fall foul of N+1 issues, check out PostGraphile (formerly PostGraphQL)