-
Notifications
You must be signed in to change notification settings - Fork 0
/
tslint.json
60 lines (60 loc) · 1.84 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
{
"extends": ["tslint-config-standard",
"tslint-consistent-codestyle",
"tslint-config-airbnb",
"tslint-misc-rules"],
"linterOptions": {
"exclude": [
"test/*.test.ts",
"src/FormValidator.d.ts"
]
},
"rules": {
"no-any": true,
"semicolon": [
true,
"always"
],
"interface-name": [true, "always-prefix"],
"class-method-newlines": true,
"class-name": true,
"file-name-casing": [true, "pascal-case"],
"no-reference-import": true,
"no-property-initializers": true,
"no-unnecessary-else": [true, "allow-else-if"],
"ter-indent": [
true,
4
],
"prefer-es6-imports": [
true,
"module-name"
],
"sort-imports": [ true, "whitespace-insensitive" ],
"prefer-array-literal": [true, { "allow-type-parameters": true }],
"no-increment-decrement": true,
"no-unused": true,
"no-var-before-return": true,
"no-duplicate-imports": true,
"prefer-const": true,
"no-var-keyword": true,
"no-var-requires": true,
"max-line-length": [true, 120],
"curly": [true],
"comment-format": [true, "check-space"],
"no-consecutive-blank-lines": true,
"space-before-function-paren": [true, "never"],
"max-file-line-count": [true, 300],
"no-return-await": true,
"variable-name": [true, "check-format", "allow-pascal-case"],
"ban-types": {
"options": [
["Object", "Avoid using the `Object` type. Did you mean `object`?"],
["Function", "Avoid using the `Function` type. Prefer a specific function type, like `() => void`, or use `ts.AnyFunction`."],
["Boolean", "Avoid using the `Boolean` type. Did you mean `boolean`?"],
["Number", "Avoid using the `Number` type. Did you mean `number`?"],
["String", "Avoid using the `String` type. Did you mean `string`?"]
]
}
}
}