build: Update TypeScript, use @typescript-eslint (#17251)
* build: Update TypeScript to v3.3 * build: Update TypeScript, use @typescript-eslint
This commit is contained in:
parent
8c4d6438de
commit
5581990d78
10 changed files with 104 additions and 92 deletions
|
@ -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 }
|
||||
}
|
||||
}))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue