eslint-plugin-sql
eslint-plugin-sql copied to clipboard
SQL linting rules for ESLint.
this does essentially two things: - fixes `.npmignore` so that it'll include files missing in v2.2.1 (https://github.com/gajus/eslint-plugin-sql/issues/19) - fixes couple of errors I encountered after TypeScript migration
There is no main file in package v2.2.1 (`./dist/src/index.js`): ```sh The package "eslint-plugin-sql" was not found when loaded as a Node module ```
Bumps [semantic-release](https://github.com/semantic-release/semantic-release) from 18.0.1 to 19.0.3. Release notes Sourced from semantic-release's releases. v19.0.3 19.0.3 (2022-06-09) Bug Fixes log-repo: use the original form of the repo url to remove the need...
Added a bit different logic for adding newlines, that is more consistent between reporting and fixing. new logic ensures that there is exactly one newline at the start and at...
```js sql` SELECT 1, 2,3 `; ``` is converted into this broken code ```js sql` SELECT 1, 2, 3 `; ``` I have to remove the first empty line to...
Plugin schema lacks some options for pg-formatter that breaks plugin when those are passed in options. ```javascript ... rules: { 'sql/format': [ 'error', { ignoreExpressions: false, ignoreInline: true, ignoreTagless: true,...
Closes https://github.com/gajus/eslint-plugin-sql/issues/9
The following code will generate an error because of the second blank line, but the error will not be autofixed: ```js const a = await sql` SELECT ${'foo'} FROM ${'bar'}...
Toying with the plugin, I'm coming across valid SQL queries that aren't recognized, such as: ```sql SELECT * FROM article a WHERE NOT a.archived -- or SELECT * FROM article...