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
eslint --ext js --ext sql path/to/files
Detecting functions of type
plv8 and passing their bodies through to ESLint
Having the errors point to the correct line numbers is not working. At all. Not even close.
While I've got your attention: