UNPKG

2.73 kBJSONView Raw
1{
2 "extends": ["tslint-react"],
3 "rules": {
4 "align": [
5 true,
6 "parameters",
7 "arguments",
8 "statements"
9 ],
10 "ban": false,
11 "class-name": true,
12 "comment-format": [
13 true,
14 "check-space"
15 ],
16 "curly": true,
17 "eofline": false,
18 "forin": true,
19 "indent": [ true, "spaces" ],
20 "interface-name": [true, "never-prefix"],
21 "jsdoc-format": true,
22 "jsx-no-lambda": false,
23 "jsx-no-multiline-js": false,
24 "label-position": true,
25 "max-line-length": [ true, 120 ],
26 "member-ordering": [
27 true,
28 "public-before-private",
29 "static-before-instance",
30 "variables-before-functions"
31 ],
32 "no-any": true,
33 "no-arg": true,
34 "no-bitwise": true,
35 "no-console": [
36 true,
37 "log",
38 "error",
39 "debug",
40 "info",
41 "time",
42 "timeEnd",
43 "trace"
44 ],
45 "no-consecutive-blank-lines": true,
46 "no-construct": true,
47 "no-debugger": true,
48 "no-duplicate-variable": true,
49 "no-empty": true,
50 "no-eval": true,
51 "no-shadowed-variable": true,
52 "no-string-literal": true,
53 "no-switch-case-fall-through": true,
54 "no-trailing-whitespace": false,
55 "no-unused-expression": true,
56 "no-use-before-declare": true,
57 "one-line": [
58 true,
59 "check-catch",
60 "check-else",
61 "check-open-brace",
62 "check-whitespace"
63 ],
64 "quotemark": [true, "single", "jsx-double"],
65 "radix": true,
66 "semicolon": [true, "always"],
67 "switch-default": true,
68
69 "trailing-comma": [false],
70
71 "triple-equals": [ true, "allow-null-check" ],
72 "typedef": [
73 true,
74 "parameter",
75 "property-declaration"
76 ],
77 "typedef-whitespace": [
78 true,
79 {
80 "call-signature": "nospace",
81 "index-signature": "nospace",
82 "parameter": "nospace",
83 "property-declaration": "nospace",
84 "variable-declaration": "nospace"
85 }
86 ],
87 "variable-name": [true, "ban-keywords", "check-format", "allow-leading-underscore", "allow-pascal-case"],
88 "whitespace": [
89 true,
90 "check-branch",
91 "check-decl",
92 "check-module",
93 "check-operator",
94 "check-separator",
95 "check-type",
96 "check-typecast"
97 ]
98 }
99}