chore: update to standard 12

This commit is contained in:
Samuel Attard 2018-09-14 02:10:51 +10:00
parent 9e85bdb02c
commit 558fff69e7
No known key found for this signature in database
GPG key ID: E89DDE5742D58C4E
198 changed files with 4455 additions and 2940 deletions

View file

@ -2,9 +2,9 @@
process.throwDeprecation = false
const electron = require('electron')
const {app, BrowserWindow, crashReporter, dialog, ipcMain, protocol, webContents} = electron
const { app, BrowserWindow, crashReporter, dialog, ipcMain, protocol, webContents } = electron
const {Coverage} = require('electabul')
const { Coverage } = require('electabul')
const fs = require('fs')
const path = require('path')
@ -19,7 +19,7 @@ var argv = require('yargs')
var window = null
// will be used by crash-reporter spec.
// will be used by crash-reporter spec.
process.port = 0
process.crashServicePid = 0
@ -276,7 +276,7 @@ ipcMain.on('create-window-with-options-cycle', (event) => {
}
}
foo.baz2 = foo.baz
const window = new BrowserWindow({show: false, foo: foo})
const window = new BrowserWindow({ show: false, foo: foo })
event.returnValue = window.id
})
@ -323,7 +323,7 @@ ipcMain.on('try-emit-web-contents-event', (event, id, eventName) => {
console.warn = (message) => {
warningMessage = message
}
contents.emit(eventName, {sender: contents})
contents.emit(eventName, { sender: contents })
} finally {
console.warn = consoleWarn
}