-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtslint.json
More file actions
109 lines (93 loc) · 1.98 KB
/
tslint.json
File metadata and controls
109 lines (93 loc) · 1.98 KB
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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
// copied from linkurious-server
{
"defaultSeverity": "error",
"extends": [
"tslint:recommended"
],
"linterOptions": {
"exclude": [
"types_js/**/*.ts"
]
},
"jsRules": {},
"rules": {
"no-conditional-assignment": false,
// don't require interface names to begin with a capital 'I'
"interface-name": [
false
],
// require single quotes for string literals
"quotemark": [
true,
"single"
],
// any shorthand object literal syntax will cause a failure
"object-literal-shorthand": [
true,
"never"
],
// always disallow trailing commas
"trailing-comma": [
true,
{
"multiline": "never",
"singleline": "never"
}
],
// require type for function (non-arrow) parameters and return values
"typedef": [
true,
"call-signature",
"parameter"
],
// allow empty interfaces
"no-empty-interface": [
false
],
// allow the use of require statements outside import statements
"no-var-requires": [
false
],
// allow the use of `console` methods
"no-console": [
false
],
// Requires lines to be maximum 120 characters (except block comments)
"max-line-length": [
true,
{
"limit": 120,
"ignore-pattern": " \\*"
}
],
// don't check ordering of keys in object literals
"object-literal-sort-keys": [
false
],
// arrow functions with one parameter must not have parentheses
"arrow-parens": [
true,
"ban-single-arg-parens"
],
// allow empty blocks
"no-empty": [
true
],
// disallow usage of any as a type declaration
"no-any": [
true
],
// ignore member ordering
"member-ordering": [
false
],
// standard 'for' loop are accepted
"prefer-for-of": [
false
],
// require === and !== in place of == and !=
"triple-equals": [
true
]
}
}