reduce ignore list in favor of one-liner ignores
This commit is contained in:
parent
67d189474c
commit
09635ae50e
2 changed files with 3 additions and 7 deletions
|
@ -281,7 +281,7 @@ ipcMain.on('ATOM_BROWSER_CONSTRUCTOR', function (event, id, args) {
|
||||||
|
|
||||||
// Call new with array of arguments.
|
// Call new with array of arguments.
|
||||||
// http://stackoverflow.com/questions/1606797/use-of-apply-with-new-operator-is-this-possible
|
// http://stackoverflow.com/questions/1606797/use-of-apply-with-new-operator-is-this-possible
|
||||||
let obj = new (Function.prototype.bind.apply(constructor, [null].concat(args)))
|
let obj = new (Function.prototype.bind.apply(constructor, [null].concat(args))) // eslint-disable-line
|
||||||
event.returnValue = valueToMeta(event.sender, obj)
|
event.returnValue = valueToMeta(event.sender, obj)
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
event.returnValue = exceptionToMeta(error)
|
event.returnValue = exceptionToMeta(error)
|
||||||
|
@ -304,7 +304,7 @@ ipcMain.on('ATOM_BROWSER_MEMBER_CONSTRUCTOR', function (event, id, method, args)
|
||||||
let constructor = objectsRegistry.get(id)[method]
|
let constructor = objectsRegistry.get(id)[method]
|
||||||
|
|
||||||
// Call new with array of arguments.
|
// Call new with array of arguments.
|
||||||
let obj = new (Function.prototype.bind.apply(constructor, [null].concat(args)))
|
let obj = new (Function.prototype.bind.apply(constructor, [null].concat(args))) // eslint-disable-line
|
||||||
event.returnValue = valueToMeta(event.sender, obj)
|
event.returnValue = valueToMeta(event.sender, obj)
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
event.returnValue = exceptionToMeta(error)
|
event.returnValue = exceptionToMeta(error)
|
||||||
|
|
|
@ -11,11 +11,7 @@
|
||||||
"runas": "^3.0.0"
|
"runas": "^3.0.0"
|
||||||
},
|
},
|
||||||
"standard": {
|
"standard": {
|
||||||
"ignore": [
|
"ignore": ["/vendor"],
|
||||||
"/lib/browser/rpc-server.js",
|
|
||||||
"/lib/common/asar.js",
|
|
||||||
"/vendor"
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|
Loading…
Reference in a new issue