Skip to content

PostgreSQL plugin for ESLint that enables linting PLV8 JavaScript functions within SQL files

License

Notifications You must be signed in to change notification settings

benjie/eslint-plugin-pg-sql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

About

PostgreSQL plugin for ESLint that enables linting PLV8 JavaScript functions within SQL files

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published