Update checked-in dependencies
This commit is contained in:
parent
6b0d45a5c6
commit
cc1adb825a
4247 changed files with 144820 additions and 149530 deletions
8
node_modules/eslint-plugin-github/lib/rules/async-preventdefault.js
generated
vendored
8
node_modules/eslint-plugin-github/lib/rules/async-preventdefault.js
generated
vendored
|
|
@ -1,6 +1,10 @@
|
|||
module.exports = {
|
||||
meta: {
|
||||
docs: {},
|
||||
type: 'problem',
|
||||
docs: {
|
||||
description: 'disallow `event.preventDefault` calls inside of async functions',
|
||||
url: require('../url')(module)
|
||||
},
|
||||
schema: []
|
||||
},
|
||||
|
||||
|
|
@ -15,7 +19,7 @@ module.exports = {
|
|||
if (node.callee.property && node.callee.property.name === 'preventDefault') {
|
||||
const scope = context.getScope()
|
||||
if (scope.block.async && scopeDidWait.has(scope)) {
|
||||
context.report(node, 'event.preventDefault() inside an async function is error prone')
|
||||
context.report({node, message: 'event.preventDefault() inside an async function is error prone'})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue