Update checked-in dependencies
This commit is contained in:
parent
4fad06f438
commit
40a500c743
4168 changed files with 298222 additions and 374905 deletions
4
node_modules/eslint/lib/rules/no-async-promise-executor.js
generated
vendored
4
node_modules/eslint/lib/rules/no-async-promise-executor.js
generated
vendored
|
|
@ -16,7 +16,7 @@ module.exports = {
|
|||
docs: {
|
||||
description: "Disallow using an async function as a Promise executor",
|
||||
recommended: true,
|
||||
url: "https://eslint.org/docs/rules/no-async-promise-executor"
|
||||
url: "https://eslint.org/docs/latest/rules/no-async-promise-executor"
|
||||
},
|
||||
|
||||
fixable: null,
|
||||
|
|
@ -30,7 +30,7 @@ module.exports = {
|
|||
return {
|
||||
"NewExpression[callee.name='Promise'][arguments.0.async=true]"(node) {
|
||||
context.report({
|
||||
node: context.getSourceCode().getFirstToken(node.arguments[0], token => token.value === "async"),
|
||||
node: context.sourceCode.getFirstToken(node.arguments[0], token => token.value === "async"),
|
||||
messageId: "async"
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue