-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
49 lines (48 loc) · 1.35 KB
/
.eslintrc.js
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
"use strict"
module.exports = {
env: {
es6: true,
mocha: true,
node: true
},
extends: ["eslint:recommended"],
globals: {
__non_webpack_require__: false
},
parserOptions: {
ecmaVersion: "2020",
sourceType: "commonjs"
},
parser: "babel-eslint",
plugins: ["node"],
root: true,
rules: {
"arrow-parens": "error",
"arrow-spacing": "error",
"brace-style": ["error", "1tbs"],
"comma-dangle": "error",
curly: "error",
"eol-last": "error",
"keyword-spacing": "error",
"no-console": ["error", { allow: ["error"] }],
"no-constant-condition": ["error", { checkLoops: false }],
"no-empty": ["error", { allowEmptyCatch: true }],
"no-multiple-empty-lines": ["error", { max: 1 }],
"no-trailing-spaces": "error",
"no-undef": "error",
"no-undefined": "error",
"no-unused-vars": "error",
"no-useless-rename": "error",
"no-var": "error",
"one-var": ["error", "never"],
"quote-props": ["error", "as-needed"],
quotes: ["error", "double", { allowTemplateLiterals: true, avoidEscape: true }],
"rest-spread-spacing": "error",
semi: ["error", "never"],
"sort-vars": "error",
"space-before-function-paren": ["error", { named: "never" }],
"space-infix-ops": "error",
"spaced-comment": ["error", "always", { block: { balanced: true } }],
strict: "error"
}
}