gajus/eslint-plugin-sql

allow to supply custom isSqlQuery helper or use better library

Open

#4 geöffnet am 1. Sept. 2018

Auf GitHub ansehen
 (6 Kommentare) (4 Reaktionen) (0 zugewiesene Personen)TypeScript (24 Forks)github user discovery
help wanted

Repository-Metriken

Stars
 (113 Stars)
PR-Merge-Metriken
 (PR-Metriken ausstehend)

Beschreibung

Toying with the plugin, I'm coming across valid SQL queries that aren't recognized, such as:

SELECT * FROM article a WHERE NOT a.archived

-- or

SELECT * FROM article a WHERE (a.authz & 8)::bool

One solution would be to either allow users to supply their own SQL parser (though I haven't checked if eslint allows to pass functions as settings values in .eslintrc.js), or replace the sql-parse, which seems unmaintained, with something else.

Contributor Guide