-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathtslint.json
63 lines (63 loc) · 1.66 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
{
"extends": ["tslint:recommended", "tslint-config-prettier"],
"rulesDirectory": ["tslint-plugin-prettier"],
"rules": {
"prettier": [
true,
{
"singleQuote": false,
"trailingComma": "es5",
"printWidth": 120
}
],
"no-duplicate-variable": true,
"no-angle-bracket-type-assertion": false,
"no-reference": false,
"curly": true,
"indent": [true, "spaces"],
"no-conditional-assignment": true,
"no-debugger": true,
"no-console": [true, "log", "debug", "info", "time", "timeEnd", "trace"],
"no-consecutive-blank-lines": true,
"no-eval": true,
"no-namespace": false,
"no-switch-case-fall-through": true,
"no-trailing-whitespace": true,
"no-unused-expression": true,
"no-use-before-declare": false,
"no-use-before-define": ["error", { "functions": false, "classes": true }],
"no-shadowed-variable": false,
"one-line": [
true,
"check-catch",
"check-else",
"check-open-brace",
"check-whitespace"
],
"semicolon": [true, "always", "ignore-bound-class-methods"],
"switch-default": true,
"triple-equals": [true, "allow-null-check"],
"object-literal-sort-keys": false,
"interface-name": false,
"variable-name": [
true,
"ban-keywords",
"check-format",
"allow-leading-underscore",
"allow-pascal-case",
"allow-snake-case"
],
"whitespace": [
true,
"check-branch",
"check-decl",
"check-operator",
"check-module",
"check-separator",
"check-type",
"check-typecast"
],
"max-line-length": [true, 170],
"max-classes-per-file": [true, 2]
}
}