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-loader": "5.3.1",
"ts-node": "7.0.1", "ts-node": "7.0.1",
"tslint": "5.12.0", "tslint": "5.12.0",
"tslint-sonarts": "1.8.0",
"typescript": "3.2.2", "typescript": "3.2.2",
"typescript-eslint-parser": "21.0.2", "typescript-eslint-parser": "21.0.2",
"uglify-es": "3.3.9", "uglify-es": "3.3.9",

View File

@ -1,7 +1,8 @@
{ {
"defaultSeverity": "error", "defaultSeverity": "error",
"extends": [ "extends": [
"tslint:recommended" "tslint:recommended",
"tslint-sonarts"
], ],
"jsRules": {}, "jsRules": {},
"rules": { "rules": {
@ -35,7 +36,28 @@
"ban": [ "ban": [
true, true,
{"name": ["*", "forEach"], "message": "Use for-of loop instead."} {"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": [] "rulesDirectory": []
} }