diff --git a/package.json b/package.json index 07832193e..6a4610a0d 100644 --- a/package.json +++ b/package.json @@ -211,6 +211,7 @@ "ts-loader": "5.3.1", "ts-node": "7.0.1", "tslint": "5.12.0", + "tslint-sonarts": "1.8.0", "typescript": "3.2.2", "typescript-eslint-parser": "21.0.2", "uglify-es": "3.3.9", diff --git a/tslint.json b/tslint.json index 6c9af508b..a58b4f120 100644 --- a/tslint.json +++ b/tslint.json @@ -1,7 +1,8 @@ { "defaultSeverity": "error", "extends": [ - "tslint:recommended" + "tslint:recommended", + "tslint-sonarts" ], "jsRules": {}, "rules": { @@ -35,7 +36,28 @@ "ban": [ true, {"name": ["*", "forEach"], "message": "Use for-of loop instead."} - ] + ], + "no-duplicate-string": false, + "no-commented-code": false, + "cognitive-complexity": false, + "no-nested-template-literals": false, + "no-identical-functions": false, + "max-union-size": false, + "no-big-function": false, + "no-statements-same-line": false, + "no-small-switch": false, + "no-identical-expressions": false, + "no-invalid-await": false, + "prefer-immediate-return": false, + "no-use-of-empty-return-value": false, + "no-collapsible-if": false, + "no-ignored-return": false, + "no-redundant-boolean": false, + "prefer-promise-shorthand": false, + "parameters-max-number": false, + "no-duplicated-branches": false, + "no-identical-conditions": false, + "no-useless-cast": false }, "rulesDirectory": [] }