mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Fix node/no-callback-literal issues (#9668)
Refs #9663 See [`node/no-callback-literal`][1] for more information. This change enables `node/no-callback-literal` and fixes the issues raised by the rule. [1]:https://github.com/mysticatea/eslint-plugin-node/blob/v11.1.0/docs/rules/no-callback-literal.md
This commit is contained in:
parent
7d0a7ab301
commit
b369a68eb3
@ -98,7 +98,6 @@ module.exports = {
|
||||
'node/no-path-concat': 'off',
|
||||
'dot-notation': 'off',
|
||||
'mocha/max-top-level-suites': 'off',
|
||||
'node/no-callback-literal': 'off',
|
||||
},
|
||||
|
||||
overrides: [{
|
||||
|
@ -10,7 +10,7 @@ const largeDelayMs = regularDelayMs * 2
|
||||
|
||||
const dappPort = 8080
|
||||
|
||||
async function withFixtures (options, callback) {
|
||||
async function withFixtures (options, testSuite) {
|
||||
const { dapp, fixtures, ganacheOptions, driverOptions, title } = options
|
||||
const fixtureServer = new FixtureServer()
|
||||
const ganacheServer = new Ganache()
|
||||
@ -33,8 +33,7 @@ async function withFixtures (options, callback) {
|
||||
const { driver } = await buildWebDriver(driverOptions)
|
||||
webDriver = driver
|
||||
|
||||
// eslint-disable-next-line node/callback-return,node/no-callback-literal
|
||||
await callback({
|
||||
await testSuite({
|
||||
driver,
|
||||
})
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user