-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy path.eslintrc.json
27 lines (27 loc) · 896 Bytes
/
.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
{
"extends": "eslint:recommended",
"env": {
"browser": true,
"node": true,
"es6": true,
"mocha": true
},
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module"
},
"rules": {
"semi": [2, "always"],
"object-curly-spacing": [2, "always"],
"max-len": ["error", 120],
"quotes": ["error", "double", { "allowTemplateLiterals": true }],
"keyword-spacing": ["error", {"before": true, "after": true}],
"indent": ["error", 4, {"SwitchCase": 1}],
"comma-spacing": ["error", { "before": false, "after": true }],
"key-spacing": ["error", { "beforeColon": false, "afterColon": true }],
"no-trailing-spaces": ["error", { "skipBlankLines": true }],
"arrow-spacing": "error",
"no-duplicate-imports": "error",
"prefer-const": "error"
}
}