-
-
Notifications
You must be signed in to change notification settings - Fork 26
/
.eslintrc.json
80 lines (80 loc) · 2.2 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
{
"env": {
"browser": true,
"commonjs": true,
"es2021": true
},
"extends": [
"eslint:recommended"
],
"parserOptions": {
"ecmaVersion": 2022
},
"rules": {
"quotes": "off",
"no-console": "off",
"no-debugger": "off",
"linebreak-style": [
"error",
"unix"
],
"semi": [
"warn",
"always"
],
"no-unused-vars": [
"warn",
{
"args": "none"
}
],
"no-constant-condition": [
"error",
{
"checkLoops": false
}
],
"no-constant-binary-expression": "warn",
"no-constructor-return": "error",
"no-new-native-nonconstructor": "error",
"no-unreachable-loop": "error",
"no-use-before-define": ["warn", "nofunc"],
"complexity": ["warn", 60],
"max-len": ["warn", {
"code": 110,
"ignoreComments": false,
"ignoreTrailingComments": false,
"ignoreStrings": false,
"ignoreTemplateLiterals": false,
"ignoreRegExpLiterals": false
}],
"max-nested-callbacks": ["warn", 3],
"max-depth": ["warn", 8],
"curly": "warn",
"eqeqeq": ["error", "always", {"null": "ignore"}],
"no-implicit-globals": "error",
"no-throw-literal": "error",
"no-var": "error",
"no-unreachable": "warn",
"no-warning-comments": "off",
"prefer-const": ["warn", {"destructuring": "all"}],
"require-await": "warn",
"func-call-spacing": "warn",
"indent": ["warn", 4, {
"CallExpression": {"arguments": "first"},
"FunctionDeclaration": {"parameters": "first"},
"FunctionExpression": {"parameters": "first"},
"ObjectExpression": "first",
"ArrayExpression": 1,
"SwitchCase": 1
}],
"no-trailing-spaces": "warn"
},
"overrides": [{
"files": ["*.mjs"],
"parserOptions": {
"sourceType": "module",
"allowImportExportEverywhere": true
}
}]
}