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