🔧 Disable standard/no-callback-literal where necessary
This commit is contained in:
parent
f81bfb7b86
commit
f7d6e3fa7b
6 changed files with 21 additions and 0 deletions
|
@ -51,6 +51,8 @@ const getStorage = (storageType, extensionId, cb) => {
|
|||
if (data !== null) {
|
||||
cb(JSON.parse(data))
|
||||
} else {
|
||||
// Disabled due to false positive in StandardJS
|
||||
// eslint-disable-next-line standard/no-callback-literal
|
||||
cb({})
|
||||
}
|
||||
})
|
||||
|
@ -82,6 +84,9 @@ const getStorageManager = (storageType, extensionId) => {
|
|||
}
|
||||
break
|
||||
}
|
||||
|
||||
// Disabled due to false positive in StandardJS
|
||||
// eslint-disable-next-line standard/no-callback-literal
|
||||
if (keys.length === 0) return callback({})
|
||||
|
||||
let items = {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue