mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-14 14:07:38 -07:00
Introduce SonarTS (#3756)
This commit is contained in:
parent
fb1bf720a5
commit
616ca4df8b
2 changed files with 25 additions and 2 deletions
|
@ -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",
|
||||||
|
|
26
tslint.json
26
tslint.json
|
@ -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": []
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue