Fix lint
This commit is contained in:
parent
22ba54ce5c
commit
64ba7b63d3
2 changed files with 5 additions and 4 deletions
|
@ -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"
|
||||
|
|
|
@ -344,6 +344,7 @@ async function main(): Promise<void> {
|
|||
}
|
||||
// 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');
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue