-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtslint.json
88 lines (83 loc) · 2.49 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
{
"extends": [
"tslint:recommended"
],
"rulesDirectory": [
"node_modules/codelyzer"
],
"rules": {
// Headsoak custom
"align": false,
"import-spacing": false,
"indent": [
true,
"spaces"
],
"jsdoc-format": true,
"max-line-length": false, // would be great to have, but it covers comments too, which I don't prefer
"no-consecutive-blank-lines": [true, 2],
"no-empty": false,
"no-trailing-whitespace": true,
"no-unused-expression": [true, "allow-fast-null-checks"],
"object-literal-shorthand": false,
"one-line": false,
"one-variable-per-declaration": false,
"only-arrow-functions": false,
"triple-equals": [
true,
"allow-null-check"
],
// Headsoak custom for Angular 2
"import-destructuring-spacing": false,
"no-forward-ref": false,
// "pipe-naming": [true, "camelCase", "my"],
"pipe-naming": false,
"use-life-cycle-interface": false, // @TODO/refactor This makes sense (https://goo.gl/w1Nwk3) but is a lot of overhead - let's leave out for now
// @TODO/polish Would be nice to change these in the future?
"member-access": false,
// "member-ordering": [
// true,
// "public-before-private",
// "static-before-instance",
// "variables-before-functions"
// ],
"member-ordering": false,
"no-console": false,
"no-shadowed-variable": false,
// Custom
"trailing-comma": [false, {"multiline": "always", "singleline": "never"}],
"interface-name": [false, "always-prefix"],
// Angular 2
"component-class-suffix": true,
// "component-selector": [true, "element", "my", "kebab-case"],
"directive-class-suffix": true,
// "directive-selector": [true, "attribute", "my", "camelCase"],
"invoke-injectable": true,
"no-access-missing-member": true,
"no-attribute-parameter-decorator": true,
"no-input-rename": true,
"no-output-rename": true,
"templates-use-public": true,
"use-host-property-decorator": true,
"use-input-property-decorator": true,
"use-output-property-decorator": true,
"use-pipe-transform-interface": true,
// General
"no-string-literal": false,
"no-use-before-declare": true,
"object-literal-sort-keys": false,
"ordered-imports": false,
"quotemark": [
true,
"single",
"avoid-escape"
],
"variable-name": [
true,
"allow-leading-underscore",
"allow-pascal-case",
"ban-keywords",
"check-format"
]
}
}