Introduce SonarTS (#3756)

This commit is contained in:
Aya Morisawa 2018-12-27 01:32:31 +09:00 committed by Acid Chicken (硫酸鶏)
parent 21f8dbf2de
commit c86deab69c
2 changed files with 25 additions and 2 deletions

View file

@ -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",

View file

@ -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": []
}