Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyriar committed Dec 21, 2018
1 parent 57dbb1c commit dfb319c
Show file tree
Hide file tree
Showing 17 changed files with 19 additions and 6 deletions.
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/**
* Copyright (c) 2012-2015, Christopher Jeffrey, Peter Sunde (MIT License)
* Copyright (c) 2016, Daniel Imms (MIT License).
* Copyright (c) 2018, Microsoft Corporation (MIT License).
*/

import * as path from 'path';
Expand Down
1 change: 1 addition & 0 deletions src/interfaces.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/**
* Copyright (c) 2016, Daniel Imms (MIT License).
* Copyright (c) 2018, Microsoft Corporation (MIT License).
*/

import * as net from 'net';
Expand Down
6 changes: 3 additions & 3 deletions src/native.d.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
/**
* Copyright (c) 2018, Microsoft (MIT License).
* Copyright (c) 2018, Microsoft Corporation (MIT License).
*/

interface IConptyNative {
startProcess(file: string, cols: number, rows: number, debug: boolean, pipeName: string): IConptyProcess;
connect(ptyId: number, commandLine: string, cwd: string, env: string[], onProcessExitCallback: (exitCode: number) => void);
connect(ptyId: number, commandLine: string, cwd: string, env: string[], onProcessExitCallback: (exitCode: number) => void): { pid: number };
resize(ptyId: number, cols: number, rows: number): void;
kill(ptyId: number): void;
}

interface IWinptyNative {
startProcess(file, commandLine, env, cwd, cols, rows, debug): IWinptyProcess;
startProcess(file: string, commandLine: string, env: string[], cwd: string, cols: number, rows: number, debug: boolean): IWinptyProcess;
resize(processHandle: number, cols: number, rows: number): void;
kill(pid: number, innerPidHandle: number): void;
getProcessList(pid: number): number[];
Expand Down
1 change: 1 addition & 0 deletions src/terminal.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/**
* Copyright (c) 2017, Daniel Imms (MIT License).
* Copyright (c) 2018, Microsoft Corporation (MIT License).
*/

import * as assert from 'assert';
Expand Down
1 change: 1 addition & 0 deletions src/terminal.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/**
* Copyright (c) 2012-2015, Christopher Jeffrey (MIT License)
* Copyright (c) 2016, Daniel Imms (MIT License).
* Copyright (c) 2018, Microsoft Corporation (MIT License).
*/

import * as path from 'path';
Expand Down
1 change: 1 addition & 0 deletions src/types.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/**
* Copyright (c) 2017, Daniel Imms (MIT License).
* Copyright (c) 2018, Microsoft Corporation (MIT License).
*/

export type ArgvOrCommandLine = string[] | string;
1 change: 1 addition & 0 deletions src/unixTerminal.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/**
* Copyright (c) 2017, Daniel Imms (MIT License).
* Copyright (c) 2018, Microsoft Corporation (MIT License).
*/

import { UnixTerminal } from './unixTerminal';
Expand Down
1 change: 1 addition & 0 deletions src/unixTerminal.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/**
* Copyright (c) 2012-2015, Christopher Jeffrey (MIT License)
* Copyright (c) 2016, Daniel Imms (MIT License).
* Copyright (c) 2018, Microsoft Corporation (MIT License).
*/

import * as net from 'net';
Expand Down
1 change: 1 addition & 0 deletions src/utils.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/**
* Copyright (c) 2017, Daniel Imms (MIT License).
* Copyright (c) 2018, Microsoft Corporation (MIT License).
*/

import * as path from 'path';
Expand Down
1 change: 1 addition & 0 deletions src/win/conpty.cc
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/**
* Copyright (c) 2013-2015, Christopher Jeffrey, Peter Sunde (MIT License)
* Copyright (c) 2016, Daniel Imms (MIT License).
* Copyright (c) 2018, Microsoft Corporation (MIT License).
*
* pty.cc:
* This file is responsible for starting processes
Expand Down
1 change: 1 addition & 0 deletions src/win/path_util.cc
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/**
* Copyright (c) 2013-2015, Christopher Jeffrey, Peter Sunde (MIT License)
* Copyright (c) 2016, Daniel Imms (MIT License).
* Copyright (c) 2018, Microsoft Corporation (MIT License).
*/

#include <nan.h>
Expand Down
1 change: 1 addition & 0 deletions src/win/path_util.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/**
* Copyright (c) 2013-2015, Christopher Jeffrey, Peter Sunde (MIT License)
* Copyright (c) 2016, Daniel Imms (MIT License).
* Copyright (c) 2018, Microsoft Corporation (MIT License).
*/

#ifndef NODE_PTY_PATH_UTIL_H_
Expand Down
1 change: 1 addition & 0 deletions src/win/winpty.cc
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/**
* Copyright (c) 2013-2015, Christopher Jeffrey, Peter Sunde (MIT License)
* Copyright (c) 2016, Daniel Imms (MIT License).
* Copyright (c) 2018, Microsoft Corporation (MIT License).
*
* pty.cc:
* This file is responsible for starting processes
Expand Down
1 change: 1 addition & 0 deletions src/windowsPtyAgent.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/**
* Copyright (c) 2017, Daniel Imms (MIT License).
* Copyright (c) 2018, Microsoft Corporation (MIT License).
*/

import * as assert from 'assert';
Expand Down
4 changes: 1 addition & 3 deletions src/windowsPtyAgent.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* Copyright (c) 2012-2015, Christopher Jeffrey, Peter Sunde (MIT License)
* Copyright (c) 2016, Daniel Imms (MIT License).
* Copyright (c) 2018, Microsoft (MIT License).
* Copyright (c) 2018, Microsoft Corporation (MIT License).
*/

import * as os from 'os';
Expand All @@ -10,7 +10,6 @@ import { Socket } from 'net';
import { ArgvOrCommandLine } from './types';
import { loadNative } from './utils';

// TODO: Pull conpty/winpty details into its own interface?
let conptyNative: IConptyNative;
let winptyNative: IWinptyNative;

Expand Down Expand Up @@ -191,7 +190,6 @@ export class WindowsPtyAgent {
this._inSocket.writable = false;
this._outSocket.readable = false;
this._outSocket.writable = false;
// this._outSocket.emit('exit', exitCode);
this._outSocket.destroy();
}
}
Expand Down
1 change: 1 addition & 0 deletions src/windowsTerminal.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/**
* Copyright (c) 2017, Daniel Imms (MIT License).
* Copyright (c) 2018, Microsoft Corporation (MIT License).
*/

import * as fs from 'fs';
Expand Down
1 change: 1 addition & 0 deletions src/windowsTerminal.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/**
* Copyright (c) 2012-2015, Christopher Jeffrey, Peter Sunde (MIT License)
* Copyright (c) 2016, Daniel Imms (MIT License).
* Copyright (c) 2018, Microsoft Corporation (MIT License).
*/

import { Socket } from 'net';
Expand Down

0 comments on commit dfb319c

Please sign in to comment.