From 64ba7b63d32821b8e7a1c6c906bf70a28d27338a Mon Sep 17 00:00:00 2001 From: Josh Perez <60019601+josh-signal@users.noreply.github.com> Date: Mon, 14 Sep 2020 19:41:38 -0400 Subject: [PATCH] Fix lint --- ts/util/lint/exceptions.json | 8 ++++---- ts/util/lint/linter.ts | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/ts/util/lint/exceptions.json b/ts/util/lint/exceptions.json index 214083fb1d..e113c91ffe 100644 --- a/ts/util/lint/exceptions.json +++ b/ts/util/lint/exceptions.json @@ -1112,7 +1112,7 @@ "rule": "jQuery-$(", "path": "js/views/settings_view.js", "line": " this.$('.sync').removeAttr('disabled');", - "lineNumber": 272, + "lineNumber": 281, "reasonCategory": "usageTrusted", "updated": "2020-09-11T17:24:56.124Z", "reasonDetail": "Static selector argument" @@ -1130,7 +1130,7 @@ "rule": "jQuery-$(", "path": "js/views/settings_view.js", "line": " this.$('.sync').text(i18n('syncing'));", - "lineNumber": 276, + "lineNumber": 285, "reasonCategory": "usageTrusted", "updated": "2020-09-11T17:24:56.124Z", "reasonDetail": "Static selector argument" @@ -1148,7 +1148,7 @@ "rule": "jQuery-$(", "path": "js/views/settings_view.js", "line": " this.$('.sync_failed').show();", - "lineNumber": 288, + "lineNumber": 297, "reasonCategory": "usageTrusted", "updated": "2020-09-11T17:24:56.124Z", "reasonDetail": "Static selector argument" @@ -13318,4 +13318,4 @@ "reasonCategory": "falseMatch", "updated": "2020-09-08T23:07:22.682Z" } -] \ No newline at end of file +] diff --git a/ts/util/lint/linter.ts b/ts/util/lint/linter.ts index 0ef0e02ccd..7727381740 100644 --- a/ts/util/lint/linter.ts +++ b/ts/util/lint/linter.ts @@ -344,6 +344,7 @@ async function main(): Promise { } // recreate this rule since it has g flag, and carries local state if (rule.expression) { + // eslint-disable-next-line no-param-reassign rule.regex = new RegExp(rule.expression, 'g'); }