mirror of
https://github.com/Eugeny/tabby.git
synced 2025-06-08 05:20:01 +00:00
lint
This commit is contained in:
parent
b60c36054f
commit
20228b5935
@ -1,3 +1,4 @@
|
|||||||
|
/* eslint-disable @typescript-eslint/explicit-module-boundary-types */
|
||||||
/* eslint-disable @typescript-eslint/no-empty-function */
|
/* eslint-disable @typescript-eslint/no-empty-function */
|
||||||
/* eslint-disable @typescript-eslint/no-extraneous-class */
|
/* eslint-disable @typescript-eslint/no-extraneous-class */
|
||||||
import * as angularCoreModule from '@angular/core'
|
import * as angularCoreModule from '@angular/core'
|
||||||
@ -18,7 +19,7 @@ import { Duplex } from 'stream-browserify'
|
|||||||
export class SocketProxy extends Duplex {
|
export class SocketProxy extends Duplex {
|
||||||
socket: any
|
socket: any
|
||||||
|
|
||||||
constructor (...args) {
|
constructor (...args: any[]) {
|
||||||
super({
|
super({
|
||||||
allowHalfOpen: false,
|
allowHalfOpen: false,
|
||||||
})
|
})
|
||||||
@ -27,7 +28,7 @@ export class SocketProxy extends Duplex {
|
|||||||
this.socket.data$.subscribe(data => this['emit']('data', Buffer.from(data)))
|
this.socket.data$.subscribe(data => this['emit']('data', Buffer.from(data)))
|
||||||
}
|
}
|
||||||
|
|
||||||
connect (...args) {
|
connect (...args: any[]) {
|
||||||
this.socket.connect(...args)
|
this.socket.connect(...args)
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -156,7 +157,7 @@ const builtins = {
|
|||||||
const originalRequire = window['require']
|
const originalRequire = window['require']
|
||||||
const mockRequire = path => {
|
const mockRequire = path => {
|
||||||
if (mocks[path]) {
|
if (mocks[path]) {
|
||||||
console.warn('requiring mock', path)
|
console.log(':: mock', path)
|
||||||
return mocks[path]
|
return mocks[path]
|
||||||
}
|
}
|
||||||
if (builtins[path]) {
|
if (builtins[path]) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user