Chore: Normalize the way we use eslint-disable
This commit is contained in:
parent
6283aa4a7d
commit
3f5cabc5c5
5 changed files with 12 additions and 19 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
|
|
@ -377,9 +377,7 @@ o.spec("attributes", function() {
|
|||
o("href" in vnode.dom.firstChild.attributes).equals(false)
|
||||
})
|
||||
/* eslint-enable no-script-url */
|
||||
|
||||
})
|
||||
|
||||
o.spec("option.value", function() {
|
||||
o("can be set as text", function() {
|
||||
var a = {tag: "option", attrs: {value: "test"}}
|
||||
|
|
|
|||
|
|
@ -61,9 +61,7 @@ function longestIncreasingSubsequence(a) {
|
|||
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
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue