chore: enable no-unused-vars and prefer-template eslint rules (#10350)

This commit is contained in:
Erik Ritter
2020-07-16 19:13:59 -07:00
committed by GitHub
parent 0eee6785a8
commit 09de805017
56 changed files with 66 additions and 119 deletions

View File

@@ -428,7 +428,7 @@ export function postStopQuery(query) {
.then(() => dispatch(addSuccessToast(t('Query was stopped.'))))
.catch(() =>
dispatch(
addDangerToast(t('Failed at stopping query. ') + `'${query.id}'`),
addDangerToast(`${t('Failed at stopping query. ')}'${query.id}'`),
),
);
};
@@ -1230,7 +1230,7 @@ export function popDatasourceQuery(datasourceKey, sql) {
.then(({ json }) =>
dispatch(
addQueryEditor({
title: 'Query ' + json.name,
title: `Query ${json.name}`,
dbId: json.database.id,
schema: json.schema,
autorun: sql !== undefined,