[Code]: minor clean up of tslint usage, up ts server version

This commit is contained in:
Fuyao Zhao 2019-04-02 00:09:17 -07:00
parent 7de9780ba1
commit cb08eb9bf6
3 changed files with 6 additions and 12 deletions

View file

@ -160,7 +160,7 @@
"@babel/runtime": "^7.3.4",
"@elastic/datemath": "5.0.2",
"@elastic/eui": "9.7.1",
"@elastic/javascript-typescript-langserver": "^0.1.20",
"@elastic/javascript-typescript-langserver": "^0.1.21",
"@elastic/lsp-extension": "^0.1.1",
"@elastic/node-crypto": "0.1.2",
"@elastic/nodegit": "0.25.0-alpha.11",

View file

@ -3,6 +3,7 @@
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/
/* tslint:disable:no-console */
import { Logger } from '../log';
@ -13,37 +14,30 @@ export class ConsoleLogger extends Logger {
}
public info(msg: string | any) {
// tslint:disable-next-line:no-console
console.info(msg);
}
public error(msg: string | any) {
// tslint:disable-next-line:no-console
console.error(msg);
}
public log(message: string): void {
// tslint:disable-next-line:no-console
this.info(message);
}
public debug(msg: string | any) {
// tslint:disable-next-line:no-console
console.debug(msg);
}
public warn(msg: string | any): void {
// tslint:disable-next-line:no-console
console.warn(msg);
}
public stdout(msg: string | any) {
// tslint:disable-next-line:no-console
console.info(msg);
}
public stderr(msg: string | any) {
// tslint:disable-next-line:no-console
console.error(msg);
}
}

View file

@ -882,10 +882,10 @@
oppsy "2.x.x"
pumpify "1.3.x"
"@elastic/javascript-typescript-langserver@^0.1.20":
version "0.1.20"
resolved "https://registry.yarnpkg.com/@elastic/javascript-typescript-langserver/-/javascript-typescript-langserver-0.1.20.tgz#5fee961be352d5869db47c290c2aaf5a4c047635"
integrity sha512-oc74IO+kSy12obuKY21XjKa8yl6tVqO/h3HquIWQbg4Oc5qKBalyjr9cYH9HVxT2d1fIlWJ+VN0EBqd2K+Xo7Q==
"@elastic/javascript-typescript-langserver@^0.1.21":
version "0.1.21"
resolved "https://registry.yarnpkg.com/@elastic/javascript-typescript-langserver/-/javascript-typescript-langserver-0.1.21.tgz#6b2e0e4b21c251e1383c31b5d490604f7fef8916"
integrity sha512-Bbbkt2lZjhFBgwV4Y4apI+t95lJFU3DAaGwffN+8/V0psbLZmwp+X/t6bomaIl3baR24bpXQCzmz356QhoT/uw==
dependencies:
"@elastic/lsp-extension" "^0.1.1"
javascript-typescript-langserver "^2.11.3"