eslint-plugin-pg-sql

0.1.1 • Public • Published

eslint-plugin-pg-sql

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

Status

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.

Self-promotion

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)

Package Sidebar

Install

npm i eslint-plugin-pg-sql

Weekly Downloads

9

Version

0.1.1

License

MIT

Unpacked Size

6.1 kB

Total Files

5

Last publish

Collaborators

  • benjie