-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc
32 lines (32 loc) · 829 Bytes
/
.eslintrc
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
{
"extends": "eslint:recommended",
"env": {
"node": true,
"browser": true,
"es6": true
},
"parserOptions": {
"ecmaVersion": 2017,
"sourceType": "module"
},
"rules": {
"comma-dangle": ["warn", "never"],
"comma-spacing": ["error", { "before": false, "after": true }],
"indent": ["error", 2, {
"MemberExpression": 1,
"SwitchCase": 1
}],
"no-empty": ["error", { "allowEmptyCatch": true }],
"no-multiple-empty-lines": ["error"],
"no-new-symbol": "error",
"no-undef": ["error"],
"no-unused-vars": ["warn"],
"no-console": ["warn"],
"object-curly-spacing": ["error", "always"],
"object-shorthand": "error",
"prefer-const": 2,
"quotes": ["error", "single"],
"semi": ["warn", "always"],
"space-in-parens": ["error", "never"]
}
}