-
Notifications
You must be signed in to change notification settings - Fork 0
/
tslint.js
48 lines (37 loc) · 1.35 KB
/
tslint.js
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
module.exports = {
"extends":[
"tslint:latest",
"tslint-eslint-rules",
"tslint-config-standard"
],
"rules": {
/** Lock down indentation */
"indent": [true, "spaces", 2],
"ter-indent": [true, 2],
/** Typescripts vscode tmlanguage actually needs semicolons ;( */
"semicolon": [true, "always"],
/** Using ter's line length to ignore comments */
"max-line-length": [false],
"ter-max-len": [true, 130, { ignoreComments: true }],
/** Laxer tslint */
"no-angle-bracket-type-assertion": false,
"no-object-literal-type-assertion": [false],
/** Disabled, because pointless */
"object-literal-sort-keys": false,
"no-default-export": true,
/** Aesthetic & consistancy */
"ter-func-call-spacing": [true],
"curly": true,
"trailing-comma": [true, { multiline: "always", singleline: "never" }],
"object-literal-key-quotes": [ true, "consistent-as-needed" ],
"object-curly-spacing": [ true, "always" ],
"array-bracket-spacing": [true, "never"],
"space-in-parens": [true, "never"],
/** Disabled because sub-module imports are useful when you don't want to import the whole universe */
"no-submodule-imports": false,
"return-undefined": false,
"no-implicit-dependencies": [true, "dev"],
"await-promise": [true, "Thenable", "Bluebird"],
"no-console": [false]
}
};