-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.eslintrc.json
60 lines (60 loc) · 1.62 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"
],
"settings": {
"import/resolver": {
"node": {
"extensions": [".ts"]
}
}
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": ["@typescript-eslint"],
"rules": {
"no-nested-ternary": "off",
"indent": ["error", 2, { "SwitchCase": 1 }],
"semi": ["error", "never"],
"curly": ["error", "all"],
"no-console": "error",
"linebreak-style": ["error", "unix"],
"quotes": ["error", "single"],
"eqeqeq": ["error", "always"],
"no-await-in-loop": "off",
"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": "error",
"no-unsafe-finally": "error",
"no-unexpected-multiline": "error",
"no-unreachable": "error",
"no-undef": "off",
"accessor-pairs": "error",
"arrow-body-style": "error",
"complexity": ["error", 7],
"consistent-return": "off",
"consistent-this": ["error", "self"],
"comma-dangle": ["error", "always-multiline"],
"no-trailing-spaces": "error",
"prettier/prettier": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-unused-vars": [
"error",
{ "argsIgnorePattern": "^_" }
]
}
}