added TSLint for TypeScript code style checking, fixed associated errors
This commit is contained in:
parent
6a7722cadb
commit
41e7e559a6
43 changed files with 253 additions and 730 deletions
30
tslint.json
30
tslint.json
|
@ -1,5 +1,29 @@
|
|||
{
|
||||
"rules": {
|
||||
"no-default-export": true
|
||||
"rules": {
|
||||
"no-default-export": true,
|
||||
"member-access": true,
|
||||
"member-ordering": [true, {"order": "fields-first"}],
|
||||
"no-empty-interface": true,
|
||||
"no-namespace": true,
|
||||
"no-reference": true,
|
||||
"curly": true,
|
||||
"no-conditional-assignment": true,
|
||||
"no-duplicate-super": true,
|
||||
"no-empty": true,
|
||||
"no-invalid-template-strings": true,
|
||||
"no-misused-new": true,
|
||||
"no-shadowed-variable": true,
|
||||
"no-unbound-method": true,
|
||||
"restrict-plus-operands": true,
|
||||
"eofline": true,
|
||||
"indent": [true, "spaces", 2],
|
||||
"max-line-length": [true, 120],
|
||||
"class-name": true,
|
||||
"import-spacing": true,
|
||||
"align": true,
|
||||
"new-parens": true,
|
||||
"semicolon": true,
|
||||
"space-before-function-paren": [true, "never"],
|
||||
"whitespace": [true, "check-decl", "check-operator", "check-module", "check-separator", "check-type", "check-preblock"]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue