-
Notifications
You must be signed in to change notification settings - Fork 0
/
tslint.json
71 lines (71 loc) · 1.54 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
{
"extends": [
"tslint:latest",
"tslint-react",
"tslint-config-prettier"
],
"rulesDirectory": [
"tslint-plugin-prettier"
],
"rules": {
// enforce use of Array<T>, instead of T[].
"array-type": [
true,
"generic"
],
// suggest converting () => { return x; } to () => x.
"arrow-return-shorthand": [
true,
"multiline"
],
// ensure proper spacing between import statement keywords.
"import-spacing": true,
// disallow trailing whitespace at the end of a line.
"no-trailing-whitespace": [
true,
"ignore-template-strings"
],
// only enable this to please Kronborg... :D
"object-literal-sort-keys": [
false,
"ignore-case"
],
"prettier": [
true,
{
"arrowParens": "always",
"bracketSpacing": true,
"jsxBracketSameLine": true,
"printWidth": 80,
"semi": false,
"singleQuote": true,
"tabWidth": 2,
"trailingComma": "es5",
"useTabs": false
}
],
"space-before-function-paren": false,
"variable-name": [
true,
"ban-keywords",
"check-format",
"allow-leading-underscore",
"allow-pascal-case"
],
"no-implicit-dependencies": [
true,
"dev"
],
// this is up for discussion
"no-submodule-imports": false,
// already in the codebase
"no-default-export": false
},
"linterOptions": {
"exclude": [
"config/**/*.js",
"coverage/lcov-report/*.js",
"node_modules"
]
}
}