forked from loopbackio/loopback-next
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtslint.json
More file actions
72 lines (67 loc) · 2.01 KB
/
tslint.json
File metadata and controls
72 lines (67 loc) · 2.01 KB
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
{
// See https://palantir.github.io/tslint/rules/
"rules": {
// These rules find errors related to TypeScript features.
"adjacent-overload-signatures": true,
"prefer-for-of": true,
"unified-signatures": true,
"no-any": true,
// These rules catch common errors in JS programming or otherwise
// confusing constructs that are prone to producing bugs.
"label-position": true,
"no-arg": true,
"no-construct": true,
"no-duplicate-variable": true,
"no-invalid-this": true,
"no-misused-new": true,
"no-shadowed-variable": true,
"no-string-throw": true,
"no-unused-expression": true,
"no-unused-new": true,
"no-use-before-declare": true,
"no-var-keyword": true,
"triple-equals": [
true,
"allow-null-check",
"allow-undefined-check"
],
"typeof-compare": true,
// These rules make code maintenance easier
"eofline": true,
"indent": [true, "spaces"],
"no-default-export": true,
"no-trailing-whitespace": true,
"prefer-const": true,
"trailing-comma": [true, {
"multiline": "always",
"singleline": "never"
}],
// These rules enforce consistent style across your codebase:
"arrow-return-shorthand": [true],
"class-name": true,
"comment-format": [true, "check-space"],
"file-header": [true, "Copyright IBM"],
"no-consecutive-blank-lines": [true, 2],
"one-variable-per-declaration": [true, "ignore-for-loop"],
"prefer-method-signature": true,
"quotemark": [true, "single", "avoid-escape"],
"semicolon": [true, "always"],
"space-before-function-paren": [true, {
"anonymous": "never",
"named": "never",
"asyncArrow": "always",
"method": "never",
"constructor": "never"
}],
"variable-name": [true, "allow-leading-underscore", "ban-keywords", "check-format"],
"whitespace": [
true,
"check-branch",
"check-decl",
"check-separator",
"check-type",
"check-typecast",
"check-preblock"
]
}
}