-
Notifications
You must be signed in to change notification settings - Fork 1
/
tslint.json
78 lines (74 loc) · 2.8 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
70
71
72
73
74
75
76
77
78
{
"rules": {
//https://palantir.github.io/tslint/rules/
//Organized by section in ^
//TypeScript Specific
"adjacent-overload-signatures": true,
"array-type": [true, "array-simple"],
"ban-comma-operator": true,
"no-duplicate-switch-case": true,
"no-inferrable-types": [true, "ignore-params"],
"no-internal-module": true,
"no-parameter-reassignment": 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-super": true,
"no-duplicate-variable": true,
"no-empty": true,
"no-eval": true,
"no-misused-new": true,
"no-shadowed-variable": true,
"no-string-throw": true,
"no-this-assignment": [true, {"allowed-names": ["^that$"], "allow-destructuring": true}],
"no-reference": true,
"no-require-imports": true,
"no-unsafe-finally": true,
"no-unused-expression": true,
"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-duplicate-imports": true,
"no-mergeable-namespace": true,
"no-trailing-whitespace": true,
"prefer-const": true,
"trailing-comma": [true, {"multiline": "never", "singleline": "never"}],
//Style
"align": true,
"arrow-return-shorthand": true,
"callable-types": true,
"class-name": true,
"import-spacing": true,
"match-default-export-name": true,
"new-parens": true,
"no-unnecessary-initializer": true,
//Currently causing issues with namespace augmenting "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-decl", "check-module", "check-operator", "check-preblock", "check-separator", "check-type"]
}
}