-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.js
84 lines (84 loc) · 1.83 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
module.exports = {
env: {
node: true,
es6: true
},
extends: [
"eslint:recommended"
],
parserOptions: {
parser: "babel-eslint",
ecmaVersion: 8,
sourceType: "module"
},
globals: {
document: true
},
rules: {
indent: ["error", 2],
"linebreak-style": ["error", "unix"],
quotes: ["error", "double"],
semi: ["error", "always"],
curly: ["error", "all"],
eqeqeq: ["error", "always"],
"prefer-const": "error",
"comma-dangle": ["error", "never"],
"new-parens": "error",
"quote-props": ["error", "as-needed"],
"object-shorthand": "error",
"space-before-function-paren": ["error", "never"],
"function-paren-newline": 0,
"prefer-destructuring": 0,
"prefer-template": 0,
"no-console": 0,
"no-alert": 0,
"no-plusplus": 0,
"eol-last": 0,
"no-undef": ["error", { typeof: true }],
"no-use-before-define": 0,
"no-else-return": ["error", { allowElseIf: true }],
"no-empty-function": "error",
"no-unused-expressions": ["error"],
"no-unused-labels": "error",
"no-var": "error",
"no-unused-vars": [
"error",
{
vars: "all",
args: "none",
ignoreRestSiblings: false
}
],
camelcase: [
"error",
{
properties: "never"
}
],
"no-unsafe-finally": "error",
"no-cond-assign": "error",
"no-multiple-empty-lines": [
"error",
{
max: 2,
maxEOF: 1
}
],
"no-caller": "error",
"no-bitwise": "error",
"no-debugger": "error",
"no-eval": "error",
"no-throw-literal": "error",
"no-trailing-spaces": "error",
radix: ["error", "as-needed"],
"valid-typeof": "error",
"use-isnan": "error",
"key-spacing": [
"error",
{
beforeColon: false,
afterColon: true
}
]
}
};