-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy path.eslintrc
More file actions
38 lines (38 loc) · 800 Bytes
/
Copy path.eslintrc
File metadata and controls
38 lines (38 loc) · 800 Bytes
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
{
"root": true,
"extends": ["prettier"],
"env": {
"node": true,
"es6": true
},
"parserOptions": {
"ecmaVersion": 14
},
"ignorePatterns": ["node_modules"],
"rules": {
"camelcase": "error",
"eqeqeq": "error",
"max-len": [
"error",
{
"code": 135,
"tabWidth": 0,
"ignorePattern": "(?:^\\t*(?:let|const) [a-zA-Z]*(?:HTML|[mM]essage) \\+?= (['\"`])[^\\n]*?\\1;$|^\\t*help: (['\"`])[^\\n]*?\\2[;,]$)"
}
],
"no-console": "error",
"no-restricted-imports": ["error", { "patterns": [".*"] }],
"no-unreachable": "error",
"no-unused-expressions": "error",
"no-var": "error",
"prefer-const": [
"error",
{
"destructuring": "all",
"ignoreReadBeforeAssign": true
}
],
"spaced-comment": ["error", "always"],
"yoda": ["error", "never"]
}
}