This repository has been archived by the owner on Oct 14, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtslint.json
110 lines (110 loc) · 3.94 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
{
"rulesDirectory": ["rules"],
"rules": {
"class-members-name": [
true,
{
"formatRules": [{ "kind": "property", "format": "camel-case", "allowedPrefixes": ["_"] }],
"ignoreParentSuffixes": ["Dto"]
}
],
"const-variable-name": [true, "only-primitives"],
"exported-namespace-members": true,
"type-parameter-name": true,
"backing-field": true,
"no-redundant-jsdoc": true,
"align": [true, "parameters", "statements"],
"class-name": true,
"comment-format": [false],
"curly": true,
"eofline": true,
"forin": true,
"indent": [true, "spaces"],
"interface-name": [true, "never-prefix"],
"jsdoc-format": true,
"max-line-length": [true, 140],
"no-construct": true,
"no-debugger": true,
"no-duplicate-variable": true,
"no-duplicate-super": true,
"prefer-const": [
true,
{
"destructuring": "all"
}
],
"semicolon": [true, "always", "ignore-bound-class-methods"],
"prefer-template": [true, "allow-single-concat"],
"no-invalid-this": true,
"no-eval": true,
"no-internal-module": true,
"no-require-imports": true,
"no-trailing-whitespace": true,
"import-spacing": true,
"no-default-export": true,
"no-var-keyword": true,
"no-unnecessary-type-assertion": true,
"space-before-function-paren": [
true,
{
"asyncArrow": "always",
"named": "never",
"anonymous": "never",
"method": "never",
"constructor": "never"
}
],
"no-angle-bracket-type-assertion": true,
"no-empty-interface": true,
"return-undefined": true,
"no-sparse-arrays": true,
"await-promise": true,
"promise-function-async": true,
"label-position": true,
"array-type": [true, "array-simple"],
"arrow-return-shorthand": [true, "multiline"],
"only-arrow-functions": [true, "allow-declarations", "allow-named-functions"],
"one-line": [true, "check-catch", "check-finally", "check-else", "check-open-brace", "check-whitespace"],
"member-access": [true, "check-accessor"],
"arrow-parens": [true, "ban-single-arg-parens"],
"no-consecutive-blank-lines": [true, 1],
"quotemark": [true, "double", "jsx-double"],
"no-console": [true, "log"],
"no-empty": true,
"no-reference": true,
"no-shadowed-variable": true,
"no-unused-expression": [true, "allow-new"],
"encoding": true,
"typedef": [true, "call-signature", "member-variable-declaration"],
"typedef-whitespace": [
true,
{
"call-signature": "nospace",
"index-signature": "nospace",
"parameter": "nospace",
"property-declaration": "nospace",
"variable-declaration": "nospace"
}
],
"triple-equals": [true, "allow-null-check"],
"variable-name": [true, "ban-keywords", "check-format", "allow-pascal-case", "allow-leading-underscore"],
"whitespace": [
true,
"check-branch",
"check-decl",
"check-operator",
"check-module",
"check-separator",
"check-type",
"check-typecast"
],
"ban-types": [
true,
["Object", "Use `{}` instead."],
["object", "Use `{}` instead."],
["Function", "Use `() => void` instead."],
["String", "Don't use 'String' as a type. Use 'string' instead."]
],
"no-any": true
}
}