TSLint: re-enable no-self-assignment rule

This commit is contained in:
glacambre 2019-04-03 18:34:19 +02:00
parent 0734798c45
commit 600a324941
No known key found for this signature in database
GPG key ID: B9625DB1767553AC
3 changed files with 3 additions and 2 deletions

View file

@ -1858,7 +1858,7 @@ export async function tabprev(increment = 1) {
// return tabIndexSetActive((await activeTab()).index - increment + 1)
// Kludge until https://bugzilla.mozilla.org/show_bug.cgi?id=1504775 is fixed:
return browser.tabs.query({ currentWindow: true, hidden: false }).then(tabs => {
tabs = tabs.sort((t1, t2) => t1.index - t2.index)
tabs.sort((t1, t2) => t1.index - t2.index)
let prevTab = (tabs.findIndex(t => t.active) - increment + tabs.length) % tabs.length
return browser.tabs.update(tabs[prevTab].id, { active: true })
})

View file

@ -117,6 +117,7 @@ async function onExcmdPageLoad() {
)
// setCommandSetting() can change the height of nodes in the page so we need to scroll to the right place again
if (document.location.hash) {
/* tslint:disable:no-self-assignment */
document.location.hash = document.location.hash
}
}
@ -181,6 +182,7 @@ function addSettingInputs() {
),
).then(_ => {
if (document.location.hash) {
/* tslint:disable:no-self-assignment */
document.location.hash = document.location.hash
}
})

View file

@ -23,7 +23,6 @@
"no-eval": false,
"no-extra-semicolon": false,
"no-identical-functions": false,
"no-self-assignment": false,
"no-shadowed-variable": false,
"no-string-literal": false,
"no-string-throw": false,