ESLint: specify --report-unused-disable-directives (#29350)
This commit is contained in:
parent
6f1eb110e7
commit
6cb4ebc048
2 changed files with 1 additions and 3 deletions
|
|
@ -20,7 +20,6 @@ const toType = obj => ({}.toString.call(obj).match(/\s([a-z]+)/i)[1].toLowerCase
|
|||
|
||||
const getUID = prefix => {
|
||||
do {
|
||||
// eslint-disable-next-line no-bitwise
|
||||
prefix += ~~(Math.random() * MAX_UID) // "~~" acts like a faster Math.floor() here
|
||||
} while (document.getElementById(prefix))
|
||||
|
||||
|
|
@ -170,7 +169,6 @@ const findShadowRoot = element => {
|
|||
return findShadowRoot(element.parentNode)
|
||||
}
|
||||
|
||||
// eslint-disable-next-line no-empty-function
|
||||
const noop = () => function () {}
|
||||
|
||||
const reflow = element => element.offsetHeight
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue