blob: 0db5751c78476dda1ccde1172f5fdc92c162ff9c [file] [log] [blame]
Lvbo163f721b1a2017-08-23 17:27:33 +08001{
2 "rulesDirectory": [
3 "node_modules/codelyzer"
4 ],
5 "rules": {
6 "arrow-return-shorthand": true,
7 "callable-types": true,
8 "class-name": true,
9 "comment-format": [
10 true,
11 "check-space"
12 ],
13 "curly": true,
14 "eofline": true,
15 "forin": true,
16 "import-blacklist": [
17 true,
18 "rxjs"
19 ],
20 "import-spacing": true,
21 "indent": [
22 true,
23 "spaces"
24 ],
25 "interface-over-type-literal": true,
26 "label-position": true,
27 "max-line-length": [
28 true,
29 140
30 ],
31 "member-access": false,
32 "member-ordering": [
33 true,
34 {
35 "order": [
36 "static-field",
37 "instance-field",
38 "static-method",
39 "instance-method"
40 ]
41 }
42 ],
43 "no-arg": true,
44 "no-bitwise": true,
45 "no-console": [
46 true,
47 "debug",
48 "info",
49 "time",
50 "timeEnd",
51 "trace"
52 ],
53 "no-construct": true,
54 "no-debugger": true,
55 "no-duplicate-super": true,
56 "no-empty": false,
57 "no-empty-interface": true,
58 "no-eval": true,
59 "no-inferrable-types": [
60 true,
61 "ignore-params"
62 ],
63 "no-misused-new": true,
64 "no-non-null-assertion": true,
65 "no-shadowed-variable": true,
66 "no-string-literal": false,
67 "no-string-throw": true,
68 "no-switch-case-fall-through": true,
69 "no-trailing-whitespace": true,
70 "no-unnecessary-initializer": true,
71 "no-unused-expression": true,
72 "no-use-before-declare": true,
73 "no-var-keyword": true,
74 "object-literal-sort-keys": false,
75 "one-line": [
76 true,
77 "check-open-brace",
78 "check-catch",
79 "check-else",
80 "check-whitespace"
81 ],
82 "prefer-const": true,
83 "quotemark": [
84 true,
85 "single"
86 ],
87 "radix": true,
88 "semicolon": [
89 true,
90 "always"
91 ],
92 "triple-equals": [
93 true,
94 "allow-null-check"
95 ],
96 "typedef-whitespace": [
97 true,
98 {
99 "call-signature": "nospace",
100 "index-signature": "nospace",
101 "parameter": "nospace",
102 "property-declaration": "nospace",
103 "variable-declaration": "nospace"
104 }
105 ],
106 "typeof-compare": true,
107 "unified-signatures": true,
108 "variable-name": false,
109 "whitespace": [
110 true,
111 "check-branch",
112 "check-decl",
113 "check-operator",
114 "check-separator",
115 "check-type"
116 ],
117 "directive-selector": [
118 true,
119 "attribute",
120 "app",
121 "camelCase"
122 ],
123 "component-selector": [
124 true,
125 "element",
126 "app",
127 "kebab-case"
128 ],
129 "use-input-property-decorator": true,
130 "use-output-property-decorator": true,
131 "use-host-property-decorator": true,
132 "no-input-rename": true,
133 "no-output-rename": true,
134 "use-life-cycle-interface": true,
135 "use-pipe-transform-interface": true,
136 "component-class-suffix": true,
137 "directive-class-suffix": true,
138 "no-access-missing-member": true,
139 "templates-use-public": true,
140 "invoke-injectable": true
141 }
142}