-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy path.eslintrc
45 lines (45 loc) · 973 Bytes
/
.eslintrc
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
{
"extends": [
"airbnb-base",
"airbnb-typescript/base",
"prettier",
"plugin:sonarjs/recommended"
],
"parserOptions": {
"project": "./tsconfig.json"
},
"rules": {
"import/prefer-default-export": 0,
"@typescript-eslint/no-use-before-define": 0,
"complexity": [
"error",
6
],
"sonarjs/cognitive-complexity": [
"error",
7
],
"@typescript-eslint/naming-convention": [
"error",
{
"selector": "variable",
"format": ["camelCase"],
"leadingUnderscore": "forbid",
"trailingUnderscore": "forbid"
},
{
"selector": "function",
"format": ["camelCase", "PascalCase"],
"leadingUnderscore": "forbid",
"trailingUnderscore": "forbid"
}
],
"no-plusplus": ["error", { "allowForLoopAfterthoughts": true }],
"no-restricted-syntax": [
0,
{
"selector": "ForOfStatement"
}
]
}
}