-
Notifications
You must be signed in to change notification settings - Fork 310
/
.eslintrc.json
30 lines (30 loc) · 1.12 KB
/
.eslintrc.json
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
{
"env": {
"es6": true,
"node": true,
"mocha": true
},
"parserOptions": {
"ecmaVersion": 9
},
"extends": "eslint:recommended",
"rules": {
"comma-spacing": ["error"],
"eqeqeq": ["error", "always"],
"indent": ["error", 4],
"key-spacing": ["error"],
"keyword-spacing": ["error"],
"linebreak-style": ["error", "unix"],
"no-multi-spaces": ["error"],
"no-unused-vars": ["error", {"args": "none"}],
"no-var": ["error"],
"no-console": ["off"],
"prefer-const": ["error"],
"prefer-arrow-callback": ["error"],
"quotes": ["error", "single"],
"semi": ["error"],
"strict": ["error", "global"],
"space-before-blocks": ["error"],
"space-before-function-paren": ["error", {"anonymous": "always", "named": "never"}]
}
}