-
Notifications
You must be signed in to change notification settings - Fork 0
/
tslint.json
52 lines (52 loc) · 1.93 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
{
"extends": ["tslint:recommended", "tslint-react", "tslint-config-airbnb"],
"linterOptions": {
"exclude": [
"config/**/*.js",
"node_modules/**/*.ts",
"src/registerServiceWorker.ts" // It's generated file.
]
},
"defaultSeverity": "warning",
"rules": {
"import-name": false,
"import-spacing": false,
"jsx-boolean-value": [true, "never"],
"jsx-curly-spacing": [true, "always"],
"max-line-length": [true, 120],
"member-ordering": [
true,
{
"order": [
"private-static-field",
"public-static-field",
"private-instance-field",
"public-instance-field",
"private-constructor",
"public-constructor",
"private-instance-method",
"protected-instance-method",
"public-instance-method"
]
}
],
"no-unused-expression": [true, "allow-fast-null-checks"],
"object-literal-sort-keys": false,
"quotemark": [true, "single", "jsx-double"],
"space-before-function-paren": [true, {"anonymous": "always", "named": "never", "asyncArrow": "always"}],
"trailing-comma": [true, { "multiline": "always", "singleline": "never", "esSpecCompliant": true }],
"typedef-whitespace": false,
"variable-name": [true, "ban-keywords", "check-format", "allow-leading-underscore", "allow-pascal-case"]
},
"jsRules": {
"import-spacing": false,
"jsx-boolean-value": [true, "never"],
"max-line-length": [true, 120],
"no-unused-expression": [true, "allow-fast-null-checks"],
"object-literal-sort-keys": false,
"quotemark": [true, "single", "jsx-double"],
"trailing-comma": [true, { "multiline": "always", "singleline": "never", "esSpecCompliant": true }],
"space-before-function-paren": [true, {"anonymous": "always", "named": "never", "asyncArrow": "always"}],
"variable-name": [true, "ban-keywords", "check-format", "allow-leading-underscore", "allow-pascal-case"]
}
}