]> git.proxmox.com Git - ceph.git/blob - ceph/src/pybind/mgr/dashboard/frontend/tslint.json
2911ef2c53610818d192ff88d588b67ce2633135
[ceph.git] / ceph / src / pybind / mgr / dashboard / frontend / tslint.json
1 {
2 "rulesDirectory": ["node_modules/codelyzer"],
3 "rules": {
4 "no-consecutive-blank-lines": true,
5 "arrow-return-shorthand": true,
6 "callable-types": true,
7 "class-name": true,
8 "comment-format": [true, "check-space"],
9 "curly": true,
10 "deprecation": {
11 "severity": "error"
12 },
13 "eofline": true,
14 "forin": true,
15 "import-blacklist": [true,
16 "rxjs/Rx",
17 {"@angular/core/testing": ["async"]},
18 ["(\\.{1,2}\/){2,}"] // e.g import ../../foobar
19 ],
20 "import-spacing": true,
21 "indent": [true, "spaces"],
22 "interface-over-type-literal": true,
23 "label-position": true,
24 "member-access": false,
25 "member-ordering": [
26 true,
27 {
28 "order": ["static-field", "instance-field", "static-method", "instance-method"]
29 }
30 ],
31 "no-arg": true,
32 "no-bitwise": true,
33 "no-console": [true, "debug", "info", "time", "timeEnd", "trace"],
34 "no-construct": true,
35 "no-debugger": true,
36 "no-duplicate-super": true,
37 "no-duplicate-imports": [true, { "allow-namespace-imports": true }],
38 "no-empty": [true, "allow-empty-catch"],
39 "no-empty-interface": true,
40 "no-eval": true,
41 "no-inferrable-types": [true, "ignore-params"],
42 "no-misused-new": true,
43 "no-non-null-assertion": true,
44 "no-shadowed-variable": true,
45 "no-string-literal": false,
46 "no-string-throw": true,
47 "no-switch-case-fall-through": true,
48 "no-trailing-whitespace": true,
49 "no-unnecessary-initializer": true,
50 "no-unused-expression": true,
51 "no-var-keyword": true,
52 "object-literal-sort-keys": false,
53 "one-line": [true, "check-open-brace", "check-catch", "check-else", "check-whitespace"],
54 "prefer-const": true,
55 "quotemark": [true, "single"],
56 "radix": true,
57 "triple-equals": [true, "allow-null-check"],
58 "typedef-whitespace": [
59 true,
60 {
61 "call-signature": "nospace",
62 "index-signature": "nospace",
63 "parameter": "nospace",
64 "property-declaration": "nospace",
65 "variable-declaration": "nospace"
66 }
67 ],
68 "unified-signatures": true,
69 "variable-name": [true, "check-format", "allow-snake-case", "allow-leading-underscore"],
70 "whitespace": [
71 true,
72 "check-branch",
73 "check-operator",
74 "check-separator",
75 "check-type",
76 "check-module"
77 ],
78 "directive-selector": [true, "attribute", "cd", "camelCase"],
79 "component-selector": [true, "element", "cd", "kebab-case"],
80 "no-output-on-prefix": true,
81 "no-inputs-metadata-property": true,
82 "no-outputs-metadata-property": true,
83 "no-host-metadata-property": true,
84 "no-attribute-decorator": true,
85 "no-input-rename": true,
86 "no-output-rename": true,
87 "use-lifecycle-interface": true,
88 "use-pipe-transform-interface": true,
89 "component-class-suffix": true,
90 "directive-class-suffix": true,
91 "no-forward-ref": true,
92 "no-output-native": true,
93 "ordered-imports": [
94 true,
95 {
96 "grouped-imports": true,
97 "groups": [
98 {
99 "name": "angular",
100 "match": "^@angular",
101 "order": 1
102 },
103 {
104 "name": "relative dir",
105 "match": "^(\\.|\\.\\.|~)/.*",
106 "order": 3
107 },
108 {
109 "name": "node_modules",
110 "match": ".*",
111 "order": 2
112 }
113 ]
114 }
115 ]
116 },
117 "jsRules": { "no-empty": true }
118 }