-
Notifications
You must be signed in to change notification settings - Fork 18
/
tslint.json
115 lines (111 loc) · 4.01 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
105
106
107
108
109
110
111
112
113
114
115
{
"extends": ["tslint:recommended", "tslint-config-prettier"],
"rulesDirectory": ["node_modules/codelyzer", "tslint-plugin-prettier"],
"rules": {
"deprecation": { "severity": "warning" },
"prettier": [true, ".prettierrc", { "editorconfig": false }],
"array-type": [true, "array"],
"binary-expression-operand-order": true,
"ban-comma-operator": true,
"comment-format": [true, "check-space"],
"cyclomatic-complexity": [true, 20],
"import-blacklist": [true, "rxjs/Rx"],
"interface-name": [true, "never-prefix"],
"jsdoc-format": [true, "check-multiline-start"],
"max-classes-per-file": false,
"member-access": [true, "no-public"],
"member-ordering": [
true,
{
"order": [
"static-field",
"instance-field",
"constructor",
"public-static-method",
"protected-static-method",
"private-static-method",
"public-instance-method",
"protected-instance-method",
"private-instance-method"
]
}
],
"no-angle-bracket-type-assertion": true,
"no-any": false,
"no-console": true,
"no-duplicate-imports": true,
"no-empty": false,
"no-empty-interface": false,
"no-inferrable-types": [true, "ignore-params", "ignore-properties"],
"no-invalid-template-strings": true,
"no-invalid-this": [true, "check-function-in-method"],
"no-magic-numbers": false,
"no-non-null-assertion": false,
"no-object-literal-type-assertion": false,
"no-parameter-reassignment": true,
"no-this-assignment": true,
"no-switch-case-fall-through": false,
"no-unbound-method": false,
"no-unnecessary-callback-wrapper": true,
"object-literal-key-quotes": false,
"object-literal-shorthand": true,
"object-literal-sort-keys": false,
"ordered-imports": false,
"prefer-conditional-expression": true,
"prefer-method-signature": false,
"prefer-object-spread": true,
"prefer-template": [true, "allow-single-concat"],
"prefer-switch": true,
"prefer-while": true,
"return-undefined": true,
"switch-default": true,
"triple-equals": true,
"typedef": [true, "parameter", "call-signature", "property-declaration"],
"typeof-compare": false,
"variable-name": [true, "ban-keywords", "check-format", "allow-leading-underscore"],
"template-banana-in-box": true,
"template-no-negated-async": true,
"component-max-inline-declarations": true,
"no-lifecycle-call": true,
"prefer-output-readonly": true,
"no-conflicting-lifecycle": true,
"use-component-selector": true,
"no-queries-metadata-property": false,
"prefer-inline-decorator": true,
"no-inputs-metadata-property": false,
"no-outputs-metadata-property": false,
"no-host-metadata-property": false,
"no-attribute-decorator": true,
"no-output-native": true,
"no-input-rename": false,
"no-output-rename": false,
"no-output-on-prefix": true,
"no-forward-ref": true,
"no-unused-css": true,
"use-lifecycle-interface": true,
"contextual-lifecycle": true,
"template-use-track-by-function": false,
"use-pipe-transform-interface": true,
"component-class-suffix": [true, "Component"],
"directive-class-suffix": [true, "Directive"],
"no-pipe-impure": false,
"template-i18n": false,
"template-cyclomatic-complexity": [true, 20],
"template-conditional-complexity": [true, 8],
"readonly-keyword": [false, "ignore-class", { "ignore-prefix": "mutable" }],
"readonly-array": [false, { "ignore-prefix": "mutable" }],
"no-let": [true, "ignore-local", { "ignore-prefix": "mutable" }],
"no-array-mutation": [true, { "ignore-prefix": "mutable" }],
"no-object-mutation": [true, { "ignore-prefix": "this." }],
"no-delete": false,
"no-method-signature": false,
"no-this": false,
"no-class": false,
"no-mixed-interface": true,
"no-expression-statement": false,
"no-if-statement": false,
"no-loop-statement": false,
"no-throw": false,
"no-try": false
}
}