Update checked-in dependencies
This commit is contained in:
parent
4fad06f438
commit
40a500c743
4168 changed files with 298222 additions and 374905 deletions
20
node_modules/eslint-plugin-github/lib/rules/no-useless-passive.js
generated
vendored
20
node_modules/eslint-plugin-github/lib/rules/no-useless-passive.js
generated
vendored
|
|
@ -1,4 +1,12 @@
|
|||
const passiveEventListenerNames = new Set(['touchstart', 'touchmove', 'wheel', 'mousewheel'])
|
||||
const passiveEventListenerNames = new Set([
|
||||
'touchstart',
|
||||
'touchmove',
|
||||
'touchenter',
|
||||
'touchend',
|
||||
'touchleave',
|
||||
'wheel',
|
||||
'mousewheel',
|
||||
])
|
||||
|
||||
const propIsPassiveTrue = prop => prop.key && prop.key.name === 'passive' && prop.value && prop.value.value === true
|
||||
|
||||
|
|
@ -7,10 +15,10 @@ module.exports = {
|
|||
type: 'suggestion',
|
||||
docs: {
|
||||
description: 'disallow marking a event handler as passive when it has no effect',
|
||||
url: require('../url')(module)
|
||||
url: require('../url')(module),
|
||||
},
|
||||
fixable: 'code',
|
||||
schema: []
|
||||
schema: [],
|
||||
},
|
||||
|
||||
create(context) {
|
||||
|
|
@ -42,10 +50,10 @@ module.exports = {
|
|||
}
|
||||
}
|
||||
return removals.map(t => fixer.remove(t))
|
||||
}
|
||||
},
|
||||
})
|
||||
}
|
||||
}
|
||||
},
|
||||
}
|
||||
}
|
||||
},
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue