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'); }