-
Notifications
You must be signed in to change notification settings - Fork 2
/
tslint.json
75 lines (72 loc) · 2.69 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
{
"linterOptions": {
"exclude": ["**/node_modules/**/*"]
},
"rules": {
"no-any": true,
// Conflicts with `no-unused-variable` rule
// https://github.com/palantir/tslint/issues/2728#issuecomment-317262259
// "no-unsafe-any": true,
// - Not currently supported by tslint-language-service
// https://github.com/palantir/tslint/issues/2649
// - This rule causes false positive errors when used with no-inferred-empty-object-type,
// no-unsafe-any
// https://github.com/palantir/tslint/issues/2728#issuecomment-317262259
"no-unused-variable": [true, "check-parameters"],
"strict-boolean-expressions": true,
"ordered-imports": [
true,
{
"grouped-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"]
}
}