forked from sidewalklabs/sumo-web3d
-
Notifications
You must be signed in to change notification settings - Fork 7
/
tslint.json
56 lines (56 loc) · 1.66 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
{
"rules": {
"no-var-keyword": true,
"triple-equals": true,
"class-name": true,
// Disabled for now; see https://github.com/palantir/tslint/issues/2470
// "no-unused-variable": [true, "react", {"ignore-pattern": "^_"}],
// "no-require-imports": true,
"ordered-imports": [true, {"named-imports-order": "lowercase-first"}],
"no-shadowed-variable": true,
"variable-name": [
true,
"check-format",
"allow-leading-underscore",
"allow-pascal-case"
],
"comment-format": [true, "check-space"],
"jsdoc-format": true,
"label-position": true,
"no-arg": true,
"no-angle-bracket-type-assertion": true,
"no-construct": true,
// Has some issues with chai expressions like expect(foo).to.be.true.
// See https://github.com/palantir/tslint/issues/2614
"no-unused-expression": false,
"prefer-const": true,
// Prefer T[] to Array<T>, but allow Array<{complex type}>.
"array-type": [true, "array-simple"],
// Prefer x => y rather than x => { return y; }.
"arrow-return-shorthand": [true, "multiline"],
"interface-over-type-literal": true,
"no-string-throw": true,
"object-literal-shorthand": true,
"space-before-function-paren": [
true,
{
"anonymous": "never",
"asyncArrow": "always",
"constructor": "never",
"method": "never",
"named": "never"
}
],
"only-arrow-functions": [
true,
"allow-named-functions"
],
"max-line-length": [true, 100],
"no-unnecessary-callback-wrapper": true,
"radix": true,
"no-invalid-template-strings": true
},
"linterOptions": {
"typeCheck": true
}
}