eslint-plugin-sql
eslint-plugin-sql copied to clipboard
SQL linting rules for ESLint.
Add a rule `require-template-queries`, which would enforce use of template strings for queries. These would be considered problems: ```js "SELECT text FROM article WHERE id = " + id //...
Example, ```js const createReservation = async ( connection: DatabaseConnectionType, sessionId: string, userId?: number, email?: string, eventId, seatIds: $ReadOnlyArray, ticketIds: $ReadOnlyArray ): Promise => { return connection.transaction(async (transactionConnection) => { const...
# Description It keeps appending perl locale issue to my sql: ``` select c.* exclude (xxx, xxx) from current_records c left join historical_records h on c.xxx = h.xxx where c.xxx...
Bumps [ip](https://github.com/indutny/node-ip) from 2.0.0 to 2.0.1. Commits 3b0994a 2.0.1 32f468f lib: fixed CVE-2023-42282 and added unit test See full diff in compare view [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any...
After fix option wrong code replace this: ``` perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LC_ALL = "C.UTF-8", LANG = (unset) are supported and...
I'm not very familiar with ESLint JSON, so this would have made it a bit clearer to me.