eslint-plugin-sql
eslint-plugin-sql copied to clipboard
Format: Empty second line in query template string marked as error but not autofixed.
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 the end of template literal, e.g.
const query = sql`
SELECT
1
`
I'm not sure if "ignoreStartWithNewLine" is needed and how it should be used with new logic, so I've removed it. Feel free to let me know if you want to leave it, or if you agree to remove it (then I'll adjust readme and rule meta as well).
Fix #10