From 6261073fe69bb25f2373fc374fb1bad547fa9385 Mon Sep 17 00:00:00 2001 From: Swashata Ghosh Date: Tue, 12 Feb 2019 19:56:28 +0530 Subject: [PATCH] fix(lint): update tslint rules for changes in preset tslint-microsoft-contrib introduced some changes to account for. Until we migrate to ESLint for the project, it is better to turn them off for now. --- packages/scripts/package.json | 2 +- tslint.json | 10 +++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/packages/scripts/package.json b/packages/scripts/package.json index 5d77b17ee..cc643ca2a 100644 --- a/packages/scripts/package.json +++ b/packages/scripts/package.json @@ -100,7 +100,7 @@ "build:js": "babel ./src --out-dir lib --extensions '.ts,.tsx'", "build:types": "tsc --emitDeclarationOnly", "build": "yarn clean && yarn build:types && yarn build:js", - "lint": "tslint --project './tsconfig.json'", + "lint": "tslint --project './tsconfig.json' --format verbose", "test": "jest --color", "prepare": "cross-env NODE_ENV=production yarn build" }, diff --git a/tslint.json b/tslint.json index 357fd7431..b6958bb8b 100644 --- a/tslint.json +++ b/tslint.json @@ -30,7 +30,15 @@ "no-require-imports": false, "no-suspicious-comment": false, "max-func-body-length": false, - "newline-before-return": false + "newline-before-return": false, + "promise-must-complete": false, + "no-unsafe-any": false, + "no-floating-promises": false, + "no-void-expression": false, + "no-null-keyword": false, + "prefer-readonly": false, + "completed-docs": false, + "non-literal-fs-path": false }, "linterOptions": { "exclude": ["lib/**/*", "**/node_modules/**"]