From 94bf96d4288b20ee56b58b6045c5273f9b447c9c Mon Sep 17 00:00:00 2001 From: felix-hoc Date: Fri, 10 Aug 2018 11:50:28 +0200 Subject: [PATCH] Disable no-misused-new linting rule, so we can stay in line with winston's conventions. See https://github.com/winstonjs/winston-mongodb/blob/master/lib/winston-mongodb.d.ts and https://github.com/winstonjs/winston-daily-rotate-file/blob/master/index.d.ts --- types/winston-syslog/tslint.json | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/types/winston-syslog/tslint.json b/types/winston-syslog/tslint.json index f93cf8562a..bf5a9b916f 100644 --- a/types/winston-syslog/tslint.json +++ b/types/winston-syslog/tslint.json @@ -1,3 +1,8 @@ { - "extends": "dtslint/dt.json" + "extends": "dtslint/dt.json", + "rules": { + // This allows to be in line with winston transport types. + // See https://github.com/winstonjs/winston-mongodb/blob/master/lib/winston-mongodb.d.ts and https://github.com/winstonjs/winston-daily-rotate-file/blob/master/index.d.ts + "no-misused-new": false + } }