mirror of
https://github.com/github/codeql-action.git
synced 2025-12-22 23:30:05 +08:00
Update checked-in dependencies
This commit is contained in:
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'})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user