-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
38 lines (38 loc) · 1.26 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
{
"env": {
"node": true,
"es2022": true
},
"extends": "airbnb-base",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"rules": {
"arrow-parens": ["error", "as-needed"],
"comma-dangle": ["error", "never"],
"curly": ["error", "multi-or-nest"],
"import/extensions": ["error", "ignorePackages"],
"max-len": ["error", { "code": 120, "ignoreTrailingComments": true }],
"no-await-in-loop": "off",
"no-console": "off",
"no-constant-condition": ["error", { "checkLoops": false }],
"no-param-reassign": "off",
"no-plusplus": "off",
"no-shadow": "off",
"no-trailing-spaces": ["error", { "skipBlankLines": true }],
"no-use-before-define": ["error", { "functions": false}],
"no-unused-vars": "warn",
"no-unused-expressions": ["error", { "allowTernary": true }],
"nonblock-statement-body-position": ["error", "any"],
"object-curly-newline": ["error", {
"ObjectPattern": { "multiline": true },
"ImportDeclaration": { "multiline": true },
"ExportDeclaration": { "multiline": true }
}],
"object-curly-spacing": ["error", "always"],
"one-var": ["error", {"separateRequires": true}],
"one-var-declaration-per-line": "off",
"quotes": ["error", "single"]
}
}