-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtslint.json
51 lines (51 loc) · 1.59 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
{
"extends": [
"tslint:recommended",
"tslint-react",
"tslint-eslint-rules",
"tslint-config-prettier"
],
"defaultSeverity": "warning",
"jsRules": {
"object-literal-shorthand": true,
"trailing-comma": [false]
},
"rules": {
"ban": [true, ["describe", "only"], ["it", "only"]],
"arrow-parens": false,
"comment-format": false,
"curly": [true, "ignore-same-line"],
"eofline": true,
"interface-name": false,
"jsx-boolean-value": false,
"jsx-curly-spacing": false,
"jsx-no-multiline-js": false,
"jsx-no-lambda": false, //if we have performance issues, we might have to reenable this,
"linebreak-style": [true, "LF"],
"max-classes-per-file": [true, 5],
"max-line-length": [true, 180],
"member-access": [true, "no-public"],
"no-console": true,
"no-empty-interface": false,
"no-implicit-dependencies": false,
"no-invalid-this": [true, "check-function-in-method"],
"no-angle-bracket-type-assertion": false,
"no-submodule-imports": false,
"no-unused-expression": false, //should be true but TS lint doesn't recognise && operator and considers it as this error,
"no-unused-variable": true,
"object-curly-spacing": [true, "always"],
"object-literal-sort-keys": false,
"ordered-imports": false,
"prefer-object-spread": false,
"quotemark": [true, "single", "jsx-double", "avoid-escape"],
"semicolon": [false, "always"],
"trailing-comma": [true],
"variable-name": [
true,
"ban-keywords",
"check-format",
"allow-leading-underscore",
"allow-pascal-case"
]
}
}