-
Notifications
You must be signed in to change notification settings - Fork 4
/
tslint.json
61 lines (61 loc) · 2.15 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
{
"extends": ["tslint-no-unused"],
"linterOptions": {
"exclude": ["**/node_modules/**/*"]
},
"rules": {
"no-unused": true,
"no-any": true,
"no-unsafe-any": true,
"strict-boolean-expressions": true,
"ordered-imports": [true],
"no-inferrable-types": [true, "ignore-properties"],
"no-switch-case-fall-through": true,
"arrow-return-shorthand": [true, "multiline"],
"no-use-before-declare": true,
"no-inferred-empty-object-type": true,
"unified-signatures": true,
"no-conditional-assignment": true,
"no-floating-promises": true,
"no-object-literal-type-assertion": true,
"no-shadowed-variable": true,
"no-unbound-method": [true, "ignore-static"],
"no-unused-expression": true,
"no-var-keyword": true,
"no-void-expression": true,
"prefer-object-spread": true,
"radix": true,
"restrict-plus-operands": true,
"triple-equals": true,
"use-default-type-parameter": true,
"use-isnan": true,
"deprecation": true,
"max-file-line-count": [true, 400],
// Rationale: https://github.com/palantir/tslint/issues/1182#issue-151780453
"no-default-export": true,
"prefer-const": true,
"class-name": true,
"match-default-export-name": true,
"no-boolean-literal-compare": true,
"no-consecutive-blank-lines": true,
"no-irregular-whitespace": true,
"no-unnecessary-callback-wrapper": true,
"object-literal-shorthand": true,
"prefer-switch": true,
"prefer-template": true,
"quotemark": [true, "single", "avoid-escape"],
"variable-name": [
true,
"ban-keywords",
"check-format",
// e.g. for whitelisting unused function parameters
"allow-leading-underscore",
// e.g. for io-ts types
"allow-pascal-case"
],
"no-import-side-effect": true,
"no-duplicate-imports": true,
"no-implicit-dependencies": [true, "dev"],
"array-type": [true, "array-simple"]
}
}