build: Update TypeScript, use @typescript-eslint (#17251)

* build: Update TypeScript to v3.3

* build: Update TypeScript, use @typescript-eslint
This commit is contained in:
Felix Rieseberg 2019-03-07 12:56:02 -08:00 committed by Samuel Attard
parent 8c4d6438de
commit 5581990d78
10 changed files with 104 additions and 92 deletions

View file

@ -5,7 +5,7 @@ const protocol = process.atomBinding('protocol')
// Fallback protocol APIs of default session.
Object.setPrototypeOf(protocol, new Proxy({}, {
get (target, property) {
get (_target, property) {
if (!app.isReady()) return
const protocol = session.defaultSession!.protocol
@ -21,7 +21,7 @@ Object.setPrototypeOf(protocol, new Proxy({}, {
return Object.getOwnPropertyNames(Object.getPrototypeOf(session.defaultSession!.protocol))
},
getOwnPropertyDescriptor (target) {
getOwnPropertyDescriptor () {
return { configurable: true, enumerable: true }
}
}))