-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc.js
42 lines (42 loc) · 1.05 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
module.exports = {
root: true,
parserOptions: {
ecmaVersion: 6,
sourceType: "module"
},
env: {
browser: true
},
globals: {
module: false
},
extends: "eslint:recommended",
"rules": {
"guard-for-in": 2,
"no-alert": 1,
"no-caller": 2,
"no-else-return": 2,
"no-empty-function": 2,
"no-eval": 2,
"no-implicit-globals": 2,
"no-implied-eval": 2,
"no-new": 1,
"no-return-assign": 2,
"no-return-await": 2,
"no-self-compare": 2,
"no-sequences": 2,
"vars-on-top": 2,
"no-shadow": 1,
"no-use-before-define": 2,
"camelcase": ["error", { "properties": "always" }],
"no-plusplus": 2,
"no-tabs": 2,
"no-nested-ternary": 2,
"one-var": ["error", "always"],
"quotes": ["error", "single"],
"semi": ["error", "always"],
"comma-dangle": ["error", "never"],
"radix": ["error", "always"],
"eqeqeq": ["error", "always"]
}
};