forked from MikaAK/angular-safeguard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtslint.json
161 lines (159 loc) · 5.32 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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
{
"tsConfigFile": "src/tsconfig.app.json",
"rulesDirectory": [
"codelyzer",
"tslint-eslint-rules"
],
"extends": [
"tslint-eslint-rules"
],
"rules": {
"ban-comma-operator": true,
"no-implicit-dependencies": [true, "dev"],
"no-return-await": true,
"no-redundant-jsdoc": true,
"adjacent-overload-signatures": true,
"member-access": [true, "check-accessor", "check-parameter-property"],
"member-ordering": ["true, statics-first"],
"no-empty-interface": true,
"no-import-side-effect": [true, {"ignore-module": "(\\.html|\\.css)$"}],
"no-internal-module": true,
"no-magic-numbers": [true, 0, 1, 2, 3],
"no-namespace": true,
"no-non-null-assertion": true,
"no-parameter-reassignment": true,
"no-reference": true,
"no-var-requires": true,
"only-arrow-functions": [true, "allow-declarations", "allow-named-functions"],
"typedef": true,
"typedef-whitespace": "onespace",
"unified-signatures": true,
"label-position": true,
"no-arg": true,
"use-isnan": true,
"typeof-compare": true,
"triple-equals": true,
"prefer-object-spread": true,
"prefer-conditional-expression": true,
"no-var-keyword": true,
"no-unused-expression": true,
"no-unsafe-finally": true,
"no-this-assignment": true,
"no-switch-case-fall-through": true,
"no-string-throw": true,
"no-string-literal": true,
"no-sparse-arrays": true,
"no-shadowed-variable": true,
"no-misused-new": true,
"no-invalid-this": true,
"no-eval": true,
"space-within-parens": 0,
"no-empty": [true, "allow-empty-catch"],
"no-duplicate-variable": [true, "check-parameters"],
"no-duplicate-super": true,
"no-debugger": true,
"no-console": [true, "warn", "error"],
"no-conditional-assignment": true,
"cyclomatic-complexity": true,
"variable-name": [true, "ban-keywords", "check-format", "allow-leading-underscore"],
"space-before-function-paren": [true, "never"],
"semicolon": [true, "never"],
"quotemark": [true, "single", "avoid-escape"],
"prefer-template": [true, "allow-single-concat"],
"prefer-switch": [true, {"min-cases": 3}],
"prefer-method-signature": true,
"one-line": [true, "check-catch", "check-finally", "check-else", "check-open-brace", "check-whitespace"],
"object-literal-shorthand": true,
"object-literal-key-quotes": [true, "as-needed"],
"number-literal-format": true,
"no-unnecessary-initializer": true,
"no-unnecessary-callback-wrapper": true,
"no-trailing-whitespace": true,
"no-reference-import": true,
"no-irregular-whitespace": true,
"no-consecutive-blank-lines": true,
"new-parens": true,
"jsdoc-format": true,
"interface-name": [true, "always-prefix"],
"comment-format": [true, "check-space"],
"class-name": true,
"callable-types": true,
"binary-expression-operand-order": true,
"arrow-return-shorthand": true,
"arrow-parens": true,
"array-type": [true, "array"],
"no-require-imports": true,
"no-mergeable-namespace": true,
"prefer-const": true,
"no-duplicate-imports": true,
"no-default-export": true,
"max-line-length": [true, 120],
"max-file-line-count": [true, 500],
"max-classes-per-file": [true, 5, "exclude-class-expressions"],
"linebreak-style": [true, "LF"],
"indent": [true, "spaces", 2],
"trailing-comma": [true, {"singleline": {"arrays": true}}],
"whitespace": [true,
"check-branch",
"check-decl",
"check-operator",
"check-separator",
"check-rest-spread",
"check-type",
"check-type-operator",
"check-preblock"
],
"no-duplicate-switch-case": true,
"banana-in-box": true,
"pipe-impure": true,
"templates-no-negated-async": true,
"no-attribute-parameter-decorator": true,
"no-input-rename": true,
"no-output-rename": true,
"no-forward-ref": true,
"no-output-on-prefix": true,
"no-unused-css": true,
"use-life-cycle-interface": true,
"use-pipe-decorator": true,
"use-pipe-transform-interface": true,
"use-view-encapsulation": true,
"angular-whitespace": [true, "check-interpolation"],
"use-host-property-decorator": true,
"use-input-property-decorator": true,
"use-output-property-decorator": true,
"component-class-suffix": true,
"directive-class-suffix": true,
"pipe-naming": ["camelCase", "sc"],
"directive-selector": [
true,
"attribute",
"sc",
"camelCase"
],
"component-selector": [
true,
"element",
"sc",
"kebab-case"
],
"no-constant-condition": true,
"no-control-regex": true,
"no-duplicate-case": true,
"no-empty-character-class": true,
"no-ex-assign": true,
"no-invalid-regexp": true,
"no-regex-spaces": true,
"no-unexpected-multiline": true,
"valid-typeof": true,
"valid-jsdoc": true,
"no-multi-spaces": [true, {"VariableDeclaration": true}],
"handle-callback-err": [true, {"allowProperties": false}],
"array-bracket-spacing": [true, "never"],
"block-spacing": [true, "always"],
"brace-style": [true, "1tbs", {"allowSingleLine": true}],
"ter-no-irregular-whitespace": true,
"ter-no-sparse-arrays": true,
"ter-func-call-spacing": [true, "never"],
"ter-indent": [true, 2, {"VariableDeclarator": {"var": 2, "let": 2, "const": 3}}]
}
}