forked from Azure/BatchExplorer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtslint.json
74 lines (73 loc) · 2.51 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
{
"extends": "tslint:recommended",
"defaultSeverity": "error",
"rulesDirectory": [
"node_modules/codelyzer"
],
"rules": {
// TSLint override
"no-this-assignment": [true, {"allow-destructuring": true}],
"no-duplicate-imports": true,
"encoding": true,
"indent": [true, "spaces", 4],
"object-literal-shorthand": false,
"adjacent-overload-signatures": false,
"max-classes-per-file": [false],
"arrow-parens": false,
"no-inferrable-types": [false],
"interface-name": [ true, "never-prefix" ],
"no-string-literal": false,
"variable-name": [true, "ban-keywords", "check-format", "allow-leading-underscore"], // https://github.com/palantir/tslint/issues/1489
"whitespace": [true,
"check-branch",
"check-decl",
"check-operator",
"check-separator",
"check-type"
],
"ordered-imports": [true, {
"import-sources-order": "case-insensitive",
"named-imports-order": "lowercase-last"
}],
"object-literal-sort-keys": false,
"arrow-return-shorthand": [true],
"ban": [
true,
["batchLabsApp", "debugCrash"], // Show a warning if the main window is being shown on start for debug purposes
{"name": "fdescribe", "message": "Don't keep jasmine fit methods in the code."},
{"name": "fit", "message": "Don't keep jasmine fit methods in the code."}
],
"no-empty-interface": false,
"space-before-function-paren": [false],
"no-irregular-whitespace": true,
"no-invalid-template-strings": true,
"no-sparse-arrays": true,
"no-duplicate-switch-case": true,
"no-return-await": true,
"ban-comma-operator": true,
// Codelyzer rules(Angular2)
"directive-selector": [true, "attribute", "bl", "camelCase"],
"component-selector": [true, "element", "bl", "kebab-case"],
"use-input-property-decorator": true,
"use-output-property-decorator": true,
"use-host-property-decorator": true,
"no-attribute-parameter-decorator": true,
"no-input-rename": true,
"no-output-rename": true,
"no-forward-ref": true,
"use-life-cycle-interface": true,
"use-pipe-transform-interface": true,
"pipe-naming": [false, "camelCase", "bl"],
"component-class-suffix": true,
"directive-class-suffix": true,
"import-destructuring-spacing": true,
"invoke-injectable": true,
"no-shadowed-variable": false,
// TODO enable
"prefer-const": false
},
"jsRules": {
"object-literal-sort-keys": false,
"trailing-comma": [false]
}
}