-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
37 lines (37 loc) · 934 Bytes
/
.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
{
"root": true,
"parserOptions": {
"ecmaVersion": 2022, // Top-level await, etc.
"sourceType": "module",
"ecmaFeatures": {
}
},
"env": {
"node": true,
"es2022": true // Defines `Promise`, etc.
},
"extends": [
"eslint:recommended",
"plugin:prettier/recommended"
],
"rules": {
"prefer-arrow-callback": "error",
"func-style": ["error", "declaration", { "allowArrowFunctions": true }],
"no-param-reassign": "error",
"no-shadow": "error",
"no-console": "error",
"max-classes-per-file": "error",
"complexity": "error",
"no-empty": "error",
"curly": "error",
"max-len": ["error", {"code": 132, "comments": 162}],
"max-lines": ["error", 1000],
"quotes": ["error", "single"],
"newline-per-chained-call": ["error", { "ignoreChainWithDepth": 2 }],
"prettier/prettier": ["warn"]
},
"ignorePatterns": [
"node_modules",
".tap"
]
}