-
Notifications
You must be signed in to change notification settings - Fork 11
/
.eslintrc.json
37 lines (37 loc) · 977 Bytes
/
.eslintrc.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
{
"root": true,
"parser": "@typescript-eslint/parser",
"ignorePatterns": ["test/**/*"],
"overrides": [
{
"files": ["*.ts"],
"parserOptions": {
"project": "tsconfig.json",
"sourceType": "module"
},
"plugins": ["@typescript-eslint/eslint-plugin"],
"extends": [
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
"env": {
"node": true,
"jest": true
},
"rules": {
"@typescript-eslint/ban-ts-comment": "off",
"max-lines": ["error", 500],
"max-params": ["error", 3],
"max-lines-per-function": ["error", 75],
"no-else-return": ["error", { "allowElseIf": false }],
"no-var": 2,
"prefer-arrow-callback": 2,
"prefer-const": 2,
"prefer-destructuring": 2,
"no-invalid-this": 2,
"no-loop-func": 2,
"arrow-body-style": 2
}
}
]
}