forked from FoundKeyGang/FoundKey
eslint: allow backticks to avoid escaping single/double quotes
This commit is contained in:
parent
501cf834c8
commit
2afe54c121
2 changed files with 2 additions and 2 deletions
|
@ -27,7 +27,7 @@ export async function skippedInstances(hosts: Array<Instance['host']>): Promise<
|
||||||
|
|
||||||
return skipped.concat(
|
return skipped.concat(
|
||||||
await db.query(
|
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(),
|
deadTime.toISOString(),
|
||||||
// don't check hosts again that we already know are suspended
|
// don't check hosts again that we already know are suspended
|
||||||
|
|
|
@ -22,7 +22,7 @@ module.exports = {
|
||||||
'eol-last': ['error', 'always'],
|
'eol-last': ['error', 'always'],
|
||||||
'semi': ['error', 'always'],
|
'semi': ['error', 'always'],
|
||||||
'semi-spacing': ['error', { 'before': false, 'after': true }],
|
'semi-spacing': ['error', { 'before': false, 'after': true }],
|
||||||
'quotes': ['error', 'single', { 'avoidEscape': true }],
|
'quotes': ['error', 'single', { 'avoidEscape': true, 'allowTemplateLiterals': true }],
|
||||||
'comma-dangle': ['warn', 'always-multiline'],
|
'comma-dangle': ['warn', 'always-multiline'],
|
||||||
'keyword-spacing': ['error', {
|
'keyword-spacing': ['error', {
|
||||||
'before': true,
|
'before': true,
|
||||||
|
|
Loading…
Reference in a new issue