This repository has been archived by the owner on May 29, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 28
/
Copy pathtslint.json
72 lines (72 loc) · 1.77 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
{
"extends": ["tslint:recommended", "tslint-react"],
"rules": {
"max-classes-per-file": false,
"indent": [true, "spaces", 2],
// Custom
"trailing-comma": [false, {"multiline": "always", "singleline": "never"}],
"interface-name": [false, "always-prefix"],
"whitespace": [true, "check-module", "check-rest-spread"],
"only-arrow-functions": false,
"arrow-parens": false,
"jsx-no-multiline-js": false,
"jsx-no-lambda": false,
"prefer-template": true,
"member-ordering": [
true,
{
"order": [
"public-static-field",
"public-instance-field",
"private-static-field",
"private-instance-field",
"public-constructor",
"private-constructor",
"public-instance-method",
"protected-instance-method",
"private-instance-method"
]
}
],
// General
"no-console": [true,
"time",
"timeEnd",
"trace"
],
"max-line-length": [
true,
{"limit": 140, "ignore-pattern": "^import"},
],
"no-string-literal": false,
"no-use-before-declare": true,
"object-literal-sort-keys": false,
"ordered-imports": false,
"no-empty-interface": false,
"no-empty": false,
"quotemark": [
true,
"single",
"jsx-double",
"avoid-escape"
],
"variable-name": [
true,
"allow-leading-underscore",
"allow-pascal-case",
"ban-keywords",
"check-format"
],
"jsx-boolean-value": false,
"semicolon": [true, "always", "ignore-bound-class-methods"]
},
"linterOptions": {
"exclude": [
"styleguide.config.js",
"styleguide/**/*.js",
"config/**/*.js",
"node_modules/**/*.ts",
"coverage/lcov-report/*.js"
]
}
}