UNPKG

3.64 kBJSONView Raw
1{
2 "extends": "tslint-config-airbnb",
3 "rulesDirectory": "ts-rules",
4 "rules": {
5 "spec-defocus": true,
6 "no-underscore-property": true,
7 "class-name": true,
8 "comment-format": [
9 true,
10 "check-space"
11 ],
12 "curly": true,
13 "eofline": true,
14 "forin": true,
15 "indent": [true, "spaces", 4],
16 "label-position": true,
17 "max-line-length": [
18 true,
19 120
20 ],
21 "prefer-const": true,
22 "no-arg": true,
23 "no-bitwise": false,
24 "no-console": [
25 true,
26 "log",
27 "debug",
28 "info",
29 "time",
30 "timeEnd",
31 "trace"
32 ],
33 "no-construct": true,
34 "no-debugger": true,
35 "no-duplicate-variable": true,
36 "no-empty": false,
37 "no-eval": true,
38 "no-shadowed-variable": true,
39 "no-string-literal": true,
40 "no-switch-case-fall-through": true,
41 "trailing-comma": [
42 true,
43 {
44 "multiline": "always",
45 "singleline": "never"
46 }
47 ],
48 "no-trailing-whitespace": [true, "ignore-template-strings", "ignore-comments", "ignore-blank-lines"],
49 "no-unused-expression": true,
50 "no-var-keyword": true,
51 "no-boolean-literal-compare": false,
52 "new-parens": true,
53 "one-line": [
54 true,
55 "check-open-brace",
56 "check-catch",
57 "check-else",
58 "check-whitespace"
59 ],
60 "quotemark": [
61 true,
62 "double",
63 "avoid-escape",
64 "avoid-template",
65 "jsx-double"
66 ],
67 "radix": true,
68 "semicolon": [
69 true,
70 "always",
71 "strict-bound-class-methods"
72 ],
73 "triple-equals": [
74 true,
75 "allow-null-check"
76 ],
77 "variable-name": ["check-format", "allow-leading-underscore"],
78 "whitespace": [
79 true,
80 "check-branch",
81 "check-decl",
82 "check-operator",
83 "check-separator",
84 "check-type"
85 ],
86 "align": [true, "parameters", "statements", "members", "elements"],
87 "no-consecutive-blank-lines": true,
88 "interface-over-type-literal": true,
89 "no-inferrable-types": [true, "ignore-params"],
90 "no-trailing-whitespace": [
91 true,
92 "ignore-template-strings",
93 "ignore-comments",
94 "ignore-blank-lines"
95 ],
96 "no-console": [
97 true,
98 "log",
99 "debug",
100 "time",
101 "timeEnd",
102 "trace"
103 ],
104 "ter-indent": [
105 true,
106 4,
107 {
108 "SwitchCase": 1
109 }
110 ],
111 "prefer-array-literal": false,
112 "import-name": false,
113 "object-curly-spacing": [
114 false
115 ],
116 "function-name": [
117 true,
118 {
119 "function-regex": "^[A-Za-z$][\\w\\d]+$",
120 "method-regex": "^[a-z$][\\w\\d]+$",
121 "private-method-regex": "^[a-z$][\\w\\d]+$",
122 "protected-method-regex": "^[a-z$][\\w\\d]+$",
123 "static-method-regex": "^[a-z$][\\w\\d]+$"
124 }
125 ],
126 "no-this-assignment": [false, "allow-destructuring"],
127 "ter-prefer-arrow-callback": [false],
128 "ter-arrow-parens": [false],
129 "no-duplicate-imports": false,
130 "void-zero": true
131 }
132}