-
Notifications
You must be signed in to change notification settings - Fork 2
/
tslint.json
69 lines (65 loc) · 2.38 KB
/
tslint.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
{
"rules": {
//https://palantir.github.io/tslint/rules/
//Organized by section in ^
//TypeScript Specific
"adjacent-overload-signatures": true,
"array-type": [true, "array-simple"],
"no-inferrable-types": [true, "ignore-params"],
"no-internal-module": true,
"no-var-requires": true,
"no-var-keyword": true,
"prefer-for-of": true,
"typedef-whitespace": [true, {}, {
"call-signature": "onespace",
"index-signature": "onespace",
"parameter": "onespace",
"property-declaration": "onespace",
"variable-declaration": "onespace"
}],
"unified-signatures": true,
//Functionality
"await-promise": true,
"curly": true,
"no-arg": true,
"no-bitwise": true,
"no-construct": true,
"no-debugger": true,
"no-duplicate-variable": true,
//"no-empty": true,
"no-eval": true,
"no-misused-new": true,
"no-shadowed-variable": true,
"no-string-throw": true,
"no-reference": true,
"no-unsafe-finally": true,
"no-unused-expression": true,
//"no-unused-new": false, ** Test generated code by creating new objects without using them
"no-use-before-declare": true,
"strict-type-predicates": true,
"switch-default": true,
"triple-equals": [true, "allow-null-check"],
"typedef": [true, "property-declaration"],
"radix": true,
//Maintainability
"indent": [true, "spaces"],
"no-mergeable-namespace": true,
"no-trailing-whitespace": true,
"trailing-comma": [true, {"multiline": "never", "singleline": "never"}],
//Style
"arrow-return-shorthand": true,
"callable-types": true,
"class-name": true,
"import-spacing": true,
"new-parens": true,
"no-unnecessary-initializer": true,
"no-unnecessary-qualifier": true,
"object-literal-key-quotes": [true, "as-needed"],
"object-literal-shorthand": true,
"quotemark": [true, "double", "avoid-escape"],
"semicolon": [true, "always"],
"space-before-function-paren": [true, "never"],
"variable-name": [true, "ban-keywords"],
"whitespace": [true, "check-branch", "check-module", "check-preblock", "check-type"]
}
}