-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtslint.json
94 lines (91 loc) · 2.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
{
"rulesDirectory": ["tslint-microsoft-contrib", "tslint-consistent-codestyle"],
// Set base rules
"extends": ["tslint:recommended", "tslint-react", "tslint-microsoft-contrib", "tslint-config-prettier"],
"linterOptions": {
"exclude": ["*.json", "**/*.json"]
},
// Set rule overrides for Typescript.
// Avoid setting style rules that conflict with Prettier's auto-formatting.
"rules": {
"arrow-return-shorthand": false,
"class-name": false,
"completed-docs": false,
"eofline": false,
"export-name": false,
"forin": true,
"function-name": [
true,
{
"function-regex": "^\\w+$",
"method-regex": "^[a-z]\\w+$",
"private-method-regex": "^_[a-z]\\w+$",
"protected-method-regex": "^[a-z_]\\w+$",
"static-method-regex": "^[a-z]\\w+$"
}
],
"import-name": false,
"indent": [true, "spaces"],
"interface-name": false,
"match-default-export-name": false,
"max-line-length": [true, 180],
"member-access": [true, "no-public"],
"member-ordering": false,
"mocha-no-side-effect-code": false,
"new-parens": true,
"newline-before-return": false,
"no-angle-bracket-type-assertion": false,
"no-any": false,
"no-consecutive-blank-lines": [true],
"no-non-null-assertion": false,
"no-console": false,
"no-empty": false,
"no-floating-promises": false,
"no-http-string": false,
"no-implicit-dependencies": false,
"no-import-side-effect": false,
"no-increment-decrement": false,
"no-inferrable-types": [true],
"no-null-keyword": false,
"no-relative-imports": false,
"no-require-imports": false,
"no-submodule-imports": false,
"no-suspicious-comment": false,
"no-switch-case-fall-through": true,
"no-typeof-undefined": false,
"no-unsafe-any": false,
"no-use-before-declare": false,
"no-void-expression": [true, "ignore-arrow-function-shorthand"],
"one-line": [true, "check-catch", "check-finally", "check-else", "check-open-brace", "check-whitespace"],
"one-variable-per-declaration": [false],
"ordered-imports": [false],
"prefer-function-over-method": false,
"prefer-method-signature": false,
"prefer-readonly": false,
"prefer-template": [true, "allow-single-concat"],
"prefer-type-cast": false,
"promise-function-async": false,
"react-this-binding-issue": [
true,
{
"allow-anonymous-listeners": true
}
],
"semicolon": [true, "always", "ignore-bound-class-methods"],
"strict-boolean-expressions": false,
"switch-default": false,
"switch-final-break": false,
"typedef": false,
"variable-name": false,
"use-simple-attributes": false,
"whitespace": [
true,
"check-branch",
"check-decl",
"check-operator",
"check-module",
"check-separator",
"check-type"
]
}
}