-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy path.eslintrc.js
53 lines (53 loc) · 896 Bytes
/
.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,
env: {
es6: true
},
parserOptions: {
ecmaVersion: 2017
},
extends: [
"prettier",
"standard",
"prettier/standard"
],
rules: {
indent: [
"warn",
2
],
quotes: [
"warn",
"double"
],
semi: [
"error",
"always"
],
"no-var": [
"error"
],
"no-console": process.env.NODE_ENV === "production" ? "error" : "off",
"no-debugger": process.env.NODE_ENV === "production" ? "error" : "off",
"no-unused-vars": [
"off"
],
"no-mixed-spaces-and-tabs": [
"warn"
],
"object-curly-spacing": [
"warn",
"always"
],
"prefer-const": [
"warn"
],
"max-len": [
"warn",
{ code: 120 }
],
"prefer-promise-reject-errors": 0,
"no-throw-literal": 0,
"standard/no-callback-literal": 0
}
};