eslint: allow backticks to avoid escaping single/double quotes

This commit is contained in:
Norm 2022-12-07 16:27:39 -05:00
parent 501cf834c8
commit 2afe54c121
Signed by untrusted user: norm
GPG key ID: 7123E30E441E80DE
2 changed files with 2 additions and 2 deletions

View file

@ -27,7 +27,7 @@ export async function skippedInstances(hosts: Array<Instance['host']>): Promise<
return skipped.concat(
await db.query(
'SELECT host FROM instance WHERE ("isSuspended" OR "latestStatus" = 410 OR "lastCommunicatedAt" < $1::date) AND host = ANY(string_to_array($2, \',\'))',
`SELECT host FROM instance WHERE ("isSuspended" OR "latestStatus" = 410 OR "lastCommunicatedAt" < $1::date) AND host = ANY(string_to_array($2, ','))`,
[
deadTime.toISOString(),
// don't check hosts again that we already know are suspended

View file

@ -22,7 +22,7 @@ module.exports = {
'eol-last': ['error', 'always'],
'semi': ['error', 'always'],
'semi-spacing': ['error', { 'before': false, 'after': true }],
'quotes': ['error', 'single', { 'avoidEscape': true }],
'quotes': ['error', 'single', { 'avoidEscape': true, 'allowTemplateLiterals': true }],
'comma-dangle': ['warn', 'always-multiline'],
'keyword-spacing': ['error', {
'before': true,