forked from bangbang93/mongoose-typescript
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tslint.json
156 lines (155 loc) · 4.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
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
{
"defaultSeverity": "error",
"extends": [
"tslint:latest"
],
"jsRules": {
"arrow-return-shorthand": true,
"arrow-parens": true,
"curly": [true, "ignore-same-line"],
"deprecation": true,
"encoding": true,
"file-name-casing": [true, "kebab-case"],
"import-spacing": true,
"indent": [true, "spaces", 2],
"label-position": true,
"newline-per-chained-call": true,
"no-bitwise": false,
"no-console": true,
"no-conditional-assignment": true,
"no-duplicate-super": true,
"no-eval": true,
"no-implicit-dependencies": [true, "dev"],
"no-return-await": true,
"no-shadowed-variable": [false],
"no-submodule-imports": false,
"no-string-literal": false,
"no-string-throw": true,
"no-this-assignment": [true, {"allowed-names": ["^(self|that)$"], "allow-destructuring": true}],
"no-unnecessary-callback-wrapper": true,
"no-unnecessary-initializer": true,
"no-unsafe-finally": true,
"no-unused-expression": [true, "allow-fast-null-checks"],
"no-var-keyword": true,
"object-literal-key-quotes": [true, "as-needed"],
"object-literal-sort-keys": [false],
"only-arrow-functions": [true, "allow-declarations", "allow-named-functions"],
"prefer-const": true,
"prefer-for-of": true,
"prefer-method-signature": true,
"prefer-switch": true,
"prefer-template": [true, "allow-single-concat"],
"prefer-while": true,
"quotemark": [true, "single", "avoid-template", "avoid-escape"],
"restrict-plus-operands": true,
"semicolon": [true, "never"],
"space-before-function-paren": [true, {
"anonymous": "always",
"named": "never",
"asyncArrow": "always",
"constructor": "never",
"method": "never"
}],
"trailing-comma": [true, {
"multiline": "always",
"singleline": "never"
}],
"triple-equals": true,
"use-isnan": true,
"variable-name": [true, "check-format", "allow-leading-underscore", "allow-pascal-case", "ban-keywords"]
},
"rules": {
"arrow-return-shorthand": true,
"arrow-parens": true,
"curly": [true, "ignore-same-line"],
"deprecation": true,
"encoding": true,
"file-name-casing": [true, "kebab-case"],
"import-spacing": true,
"indent": [true, "spaces", 2],
"label-position": true,
"max-classes-per-file": false,
"newline-per-chained-call": true,
"no-bitwise": false,
"no-boolean-literal-compare": true,
"no-console": true,
"no-conditional-assignment": true,
"no-duplicate-super": true,
"no-eval": true,
"no-empty": [true, "allow-empty-catch"],
"no-implicit-dependencies": [true, "dev", "optional"],
"no-reference-import": true,
"no-return-await": true,
"no-namespace": false,
"no-shadowed-variable": [false],
"no-submodule-imports": false,
"no-string-literal": false,
"no-string-throw": true,
"no-this-assignment": [true, {"allowed-names": ["^(self|that)$"], "allow-destructuring": true}],
"no-unbound-method": [true, "ignore-static"],
"no-unnecessary-callback-wrapper": true,
"no-unnecessary-initializer": true,
"no-unnecessary-qualifier": true,
"no-unsafe-finally": true,
"no-unused-expression": [true, "allow-fast-null-checks"],
"no-var-keyword": true,
"no-var-requires": true,
"object-literal-key-quotes": [true, "as-needed"],
"object-literal-sort-keys": [false],
"only-arrow-functions": [true, "allow-declarations", "allow-named-functions"],
"prefer-conditional-expression": false,
"prefer-const": true,
"prefer-for-of": true,
"prefer-method-signature": true,
"prefer-switch": true,
"prefer-template": [true, "allow-single-concat"],
"prefer-while": true,
"promise-function-async": true,
"quotemark": [true, "single", "avoid-template", "avoid-escape"],
"restrict-plus-operands": true,
"semicolon": [true, "never"],
"space-before-function-paren": [true, {
"anonymous": "always",
"named": "never",
"asyncArrow": "always",
"constructor": "never",
"method": "never"
}],
"trailing-comma": [true, {
"multiline": "always",
"singleline": "never"
}],
"triple-equals": true,
"typedef-whitespace": [
true,
{
"call-signature": "nospace",
"index-signature": "nospace",
"parameter": "nospace",
"property-declaration": "nospace",
"variable-declaration": "nospace"
},
{
"call-signature": "onespace",
"index-signature": "onespace",
"parameter": "onespace",
"property-declaration": "onespace",
"variable-declaration": "onespace"
}
],
"unified-signatures": true,
"use-isnan": true,
"variable-name": [true, "check-format", "allow-leading-underscore", "allow-pascal-case", "ban-keywords"]
},
"linterOptions": {
"exclude": [
"bin/**",
"lib/**",
"dist/**",
"config/**",
"test/**",
"rpc-package/lib/**",
"apidoc/**"
]
}
}