Chore: Normalize the way we use eslint-disable

This commit is contained in:
Pierre-Yves Gérardy 2018-06-01 21:24:02 +02:00 committed by Pierre-Yves Gérardy
parent 6283aa4a7d
commit 3f5cabc5c5
5 changed files with 12 additions and 19 deletions

View file

@ -556,9 +556,7 @@ module.exports = function($window) {
u = 0
v = result.length - 1
while (u < v) {
/*eslint-disable no-bitwise*/
var c = ((u + v) / 2) | 0
/*eslint-enable no-bitwise*/
var c = ((u + v) / 2) | 0 // eslint-disable-line no-bitwise
if (a[result[c]] < a[i]) {
u = c + 1
}
@ -734,9 +732,7 @@ module.exports = function($window) {
if(attrs.value === null) {
if (vnode.dom.selectedIndex !== -1) vnode.dom.value = null
} else {
/*eslint-disable no-implicit-coercion*/
var normalized = "" + attrs.value
/*eslint-enable no-implicit-coercion*/
var normalized = "" + attrs.value // eslint-disable-line no-implicit-coercion
if (vnode.dom.value !== normalized || vnode.dom.selectedIndex === -1) {
vnode.dom.value = normalized
}