-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
53 lines (53 loc) · 1.52 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
50
51
52
53
module.exports = {
root: true,
parser: "@babel/eslint-parser",
parserOptions: {
ecmaVersion: 6
},
env: {
es6: true,
node: true,
jest: true
},
extends: ["eslint:recommended", "prettier"],
rules: {
"no-debugger": process.env.NODE_ENV === "production" ? "error" : "off",
"no-template-curly-in-string": "error",
"no-promise-executor-return": "error",
"no-useless-backreference": "error",
// "require-atomic-updates": "error",
"array-callback-return": "error",
"block-scoped-var": "error",
"class-methods-use-this": "error",
"consistent-return": "error",
"default-case": ["error", { commentPattern: "^skip|no\\s+default" }],
"default-param-last": "error",
"dot-location": ["error", "property"],
eqeqeq: ["error", "smart"],
"no-alert": "error",
"no-constructor-return": "error",
"no-else-return": "error",
"no-extend-native": "error",
"no-extra-label": "error",
"no-invalid-this": "error",
"no-loop-func": "error",
"no-return-assign": "error",
"no-return-await": "error",
"no-self-compare": "error",
"no-sequences": "error",
"no-throw-literal": "error",
"no-useless-concat": "error",
"no-useless-return": "error",
"no-void": "error",
"wrap-iife": ["error", "inside"],
"no-shadow": ["error", { builtinGlobals: true, hoist: "never" }],
"no-use-before-define": "error",
"no-var": "error",
"prefer-numeric-literals": "error",
"prefer-const": "warn",
"prefer-arrow-callback": "error",
"prefer-rest-params": "error",
"prefer-spread": "error",
"prefer-template": "error"
}
};