forked from dicarlo2/neotracker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tslint.json
131 lines (130 loc) · 4.79 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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
{
"extends": ["tslint:all", "tslint-react", "tslint-config-prettier"],
"rulesDirectory": [
"tslint-microsoft-contrib",
"./node_modules/tslint-immutable/rules",
"./node_modules/tslint-consistent-codestyle/rules",
"./node_modules/tslint-sonarts/lib/rules/",
"./node_modules/tslint-clean-code/dist/build",
"./node_modules/rxjs-tslint-rules/dist/rules"
],
"linterOptions": {
"exclude": ["./packages/*/package.json", "./package.json", "./packages/*/src/**/__generated__/**/*"]
},
"rules": {
"ban-ts-ignore": false,
"cyclomatic-complexity": false,
"no-unused-variable": false,
"no-duplicate-variable": false,
"no-unbound-method": false,
"completed-docs": false,
"interface-name": false,
"max-classes-per-file": false,
"object-literal-sort-keys": false,
"no-namespace": false,
"typedef": false,
"no-empty-interface": false,
"no-use-before-declare": false,
"no-magic-numbers": false,
"prefer-method-signature": false,
"restrict-plus-operands": false,
"no-unsafe-any": false,
"max-file-line-count": false,
"no-expression-statement": false,
"no-parameter-properties": false,
"prefer-function-over-method": false,
"file-name-casing": false,
"trailing-comma": [
true,
{
"multiline": {
"objects": "always",
"arrays": "always",
"functions": "always",
"typeLiterals": "always"
},
"esSpecCompliant": true
}
],
"ordered-imports": true,
"quotemark": [false, "single", "avoid-escape"],
"triple-equals": [true, "allow-undefined-check"],
"member-ordering": [
true,
{
"order": "statics-first"
}
],
"no-inferrable-types": true,
"only-arrow-functions": [true, "allow-declarations"],
"no-submodule-imports": [true, "rxjs", "ix", "graphql", "relay", "uuid", "@material-ui", "react-dom", "relay-runtime", "react-cosmos-test"],
"strict-boolean-expressions": [true, "allow-null-union", "allow-undefined-union", "allow-string", "allow-number", "allow-mix", "allow-boolean-or-undefined"],
"no-implicit-dependencies": [true, "dev"],
"comment-format": [true, "check-space"],
"no-void-expression": [true, "ignore-arrow-function-shorthand"],
"no-this-assignment": [
true,
{
"allow-destructuring": true
}
],
"one-variable-per-declaration": [true, "ignore-for-loop"],
"variable-name": [true, "allow-pascal-case", "ban-keywords", "check-format", "allow-leading-underscore"],
"export-name": true,
"no-control-regex": true,
"invalid-void": false,
"no-null-undefined-union": false,
"strict-comparisons": false,
"strict-string-expressions": false,
"static-this": false,
"no-empty-line-after-opening-brace": true,
"increment-decrement": true,
"no-invalid-regexp": true,
"no-regex-spaces": true,
"no-single-line-block-comment": false,
"no-suspicious-comment": true,
"no-unnecessary-field-initialization": true,
"possible-timing-attack": true,
"prefer-array-literal": [true, { "allow-type-parameters": true }],
"promise-must-complete": true,
"use-named-parameter": true,
"no-unused-expression": [true, "allow-fast-null-checks"],
"readonly-keyword": [true, "ignore-local", { "ignore-prefix": ["mutable", "this.mutable"] }],
"readonly-array": [true, "ignore-local", { "ignore-prefix": ["mutable", "this.mutable"] }],
"no-let": [true, "ignore-local"],
"no-array-mutation": [true, { "ignore-prefix": ["mutable", "this.mutable", "ctx.mutable"] }],
"no-object-mutation": [true, { "ignore-prefix": ["mutable", "this.mutable", "app.proxy", "app.silent", "ctx."] }],
"no-method-signature": true,
"no-loop-statement": true,
"no-accessor-recursion": true,
"no-collapsible-if": true,
"no-unnecessary-else": true,
"no-unnecessary-type-annotation": true,
"no-unused": [true, "unused-function-expression-name", "unused-class-expression-name", "unused-catch-binding"],
"no-var-before-return": false,
"prefer-while": true,
"no-ignored-initial-value": true,
"no-ignored-return": true,
"no-in-misuse": true,
"no-misleading-array-reverse": true,
"no-unthrown-error": true,
"no-use-of-empty-return-value": true,
"no-useless-increment": true,
"no-useless-intersection": true,
"no-array-delete": true,
"no-dead-store": true,
"no-gratuitous-expressions": true,
"no-inconsistent-return": true,
"no-redundant-boolean": true,
"no-redundant-parentheses": true,
"no-useless-cast": true,
"prefer-immediate-return": true,
"prefer-promise-shorthand": true,
"use-primitive-type": true,
"no-map-without-usage": true,
"rxjs-finnish": true,
"rxjs-no-ignored-error": true,
"jsx-boolean-value": false,
"jsx-no-lambda": false
}
}