-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
60 lines (60 loc) · 1.68 KB
/
.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
{
"root": true,
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"prettier",
"plugin:prettier/recommended",
"plugin:sonarjs/recommended",
"plugin:security/recommended"
],
"settings": {
"import/resolver": {
"node": {
"extensions": [".ts"]
}
}
},
"plugins": ["@typescript-eslint"],
"rules": {
"no-nested-ternary": "off",
"semi": ["error", "never"],
"curly": ["error", "all"],
"no-console": "error",
"linebreak-style": ["error", "unix"],
"quotes": ["error", "single"],
"eqeqeq": ["error", "always"],
"no-await-in-loop": "error",
"array-callback-return": "error",
"no-compare-neg-zero": "error",
"no-dupe-else-if": "error",
"no-dupe-keys": "error",
"no-duplicate-imports": "error",
"sort-imports": "error",
"no-unused-expressions": "error",
"no-unused-labels": "error",
"no-unused-vars": "off",
"no-use-before-define": "off",
"no-unsafe-finally": "error",
"no-unexpected-multiline": "error",
"no-unreachable": "error",
"no-undef": "off",
"accessor-pairs": "error",
"arrow-body-style": "error",
"complexity": ["error", 10],
"consistent-return": "error",
"consistent-this": ["error", "self"],
"comma-dangle": ["off", "always-multiline"],
"no-trailing-spaces": "error",
"prettier/prettier": "off",
"import/prefer-default-export": "off",
"security/detect-object-injection": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-unused-vars": [
"error",
{ "argsIgnorePattern": "^_" }
],
"indent": "off"
}
}