-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eslintrc.json
More file actions
38 lines (37 loc) · 1006 Bytes
/
.eslintrc.json
File metadata and controls
38 lines (37 loc) · 1006 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
{
"extends": ["eslint:recommended", "plugin:node/recommended", "plugin:prettier/recommended"],
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"env": {
"node": true,
"commonjs": true,
"jest": true
},
"rules": {
"node/no-unpublished-require": "off",
"prefer-const": "error",
"no-var": "warn",
"no-unused-vars": "warn",
"no-use-before-define": "error",
// "no-console": "warn",
"no-unused-expressions": "warn",
"camelcase": "warn",
"quotes": ["error", "double", { "avoidEscape": true }],
"semi": ["error", "always"],
"no-multi-spaces": ["error"],
"prettier/prettier": ["error", { "endOfLine": "auto" }],
"no-duplicate-imports": "error",
"no-shadow": "off",
"key-spacing": "error",
"no-multiple-empty-lines": "error",
"no-return-await": "off",
"no-trailing-spaces": "error",
"dot-notation": "error",
"no-bitwise": "error"
},
"globals": {
"request": "readonly"
}
}