From 922f5aabf0952dc1c9cd07e02560b2a6326cf6fd Mon Sep 17 00:00:00 2001 From: Mohamed Hegazy Date: Thu, 4 May 2017 17:16:10 -0700 Subject: [PATCH] fix more lint failures (#16331) --- types/node-ipc/node-ipc-tests.ts | 2 +- types/vinyl-fs/tslint.json | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/types/node-ipc/node-ipc-tests.ts b/types/node-ipc/node-ipc-tests.ts index b6affa8f16..69a8ffa46e 100644 --- a/types/node-ipc/node-ipc-tests.ts +++ b/types/node-ipc/node-ipc-tests.ts @@ -57,7 +57,7 @@ ipc.of.world.on("socket.disconnected", (socket: Socket, id: string) => { id.toLo ipc.of.world.on("message", (data: any, data2: any) => { }); ipc.server.emit("event", [1, 2, 3]); const myBuffer = new Buffer(6).fill(0); -let socket: Socket = {} as any; +declare const socket: Socket; ipc.server.emit(socket, myBuffer); ipc.server.emit([10, 20, 30]); ipc.server.emit({ address: 'localhost', port: 8000 }, "message", { id: ipc.config.id, message: 'Goodbye' }); diff --git a/types/vinyl-fs/tslint.json b/types/vinyl-fs/tslint.json index 3db14f85ea..f2821adb2b 100644 --- a/types/vinyl-fs/tslint.json +++ b/types/vinyl-fs/tslint.json @@ -1 +1,6 @@ -{ "extends": "dtslint/dt.json" } +{ + "extends": "dtslint/dt.json", + "rules": { + "no-object-literal-type-assertion": false + } +}