-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathtslint.json
104 lines (104 loc) · 2.84 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
{
"extends": [
"tslint-react",
"tslint-config-prettier"
],
"rules": {
"max-line-length": [true, 120],
"no-magic-numbers": true,
"no-reference": true,
"only-arrow-functions": [true, "allow-declarations"],
"promise-function-async": true,
"await-promise": true,
"curly": true,
"no-console": true,
"no-debugger": true,
"no-duplicate-super": true,
"no-duplicate-variable": true,
"no-empty": true,
"no-eval": true,
"no-invalid-template-strings": true,
"no-invalid-this": true,
"no-misused-new": true,
"no-shadowed-variable": true,
"no-sparse-arrays": true,
"no-string-literal": true,
"no-string-throw": true,
"no-switch-case-fall-through": true,
"no-unused-expression": true,
"no-unused-variable": true,
"no-use-before-declare": true,
"no-var-keyword": true,
"prefer-object-spread": true,
"radix": false,
"restrict-plus-operands": true,
"triple-equals": true,
"typeof-compare": true,
"deprecation": "warning",
"eofline": true,
"indent": [true, "spaces", 2],
"linebreak-style": [true, "LF"],
"max-file-line-count": [true, 500],
"prefer-const": true,
"trailing-comma": [
true,
{
"multiline": "always",
"singleline": "never"
}
],
"align": [
true,
"arguments",
"elements",
"members",
"parameters",
"statements"
],
"array-type": [true, "array-simple"],
"arrow-parens": true,
"arrow-return-shorthand": true,
"binary-expression-operand-order": true,
"class-name": true,
"comment-format": [true, "check-space"],
"encoding": true,
"new-parens": true,
"no-angle-bracket-type-assertion": true,
"no-boolean-literal-compare": true,
"no-consecutive-blank-lines": [true, 2],
"no-irregular-whitespace": true,
"no-parameter-properties": true,
"no-trailing-whitespace": true,
"object-literal-key-quotes": [true, "as-needed"],
"prefer-template": [true, "allow-single-concat"],
"quotemark": [true, "single", "jsx-double", "avoid-escape"],
"semicolon": [true, "always"],
"space-before-function-paren": [true, {"anonymous": "always", "named": "never", "asyncArrow": "always"}],
"switch-final-break": [true, "always"],
"variable-name": [
true,
"ban-keywords",
"check-format",
"allow-leading-underscore"
],
"whitespace": [
true,
"check-branch",
"check-decl",
"check-operator",
"check-module",
"check-separator",
"check-type",
"check-preblock"
],
"jsx-alignment": true,
"jsx-no-bind": true,
"jsx-no-lambda": false,
"jsx-no-string-ref": true,
"jsx-no-multiline-js": false,
"jsx-self-close": true,
"jsx-wrap-multiline": true,
"jsx-boolean-value": false,
"jsx-curly-spacing": "never"
}
}