mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
refactor: Deferred to a class (#10282)
This commit is contained in:
@@ -194,6 +194,12 @@ module.exports = {
|
||||
selector: "CallExpression[callee.name='require']",
|
||||
message: '`require` statements are not allowed. Use `import`.',
|
||||
},
|
||||
{
|
||||
// We need this as NodeJS will run until all the timers have resolved
|
||||
message: 'Use method `Deferred.race()` instead.',
|
||||
selector:
|
||||
'MemberExpression[object.name="Promise"][property.name="race"]',
|
||||
},
|
||||
],
|
||||
'@typescript-eslint/no-floating-promises': [
|
||||
'error',
|
||||
|
||||
Reference in New Issue
Block a user