-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
36 lines (36 loc) · 1.31 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
module.exports = {
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": 2017
},
"env" : {
"browser": true,
"node": true,
"es6": true
},
"rules": {
// enable additional rules, mostly with auto fix...
"strict" : ["error", "global"],
"indent": ["error", 4, {
"FunctionDeclaration": {"parameters": "first"},
"FunctionExpression": {"parameters": "first"},
"CallExpression": {"arguments": "first"},
"ArrayExpression": "first",
"ObjectExpression": "first",
"MemberExpression": 1
}],
"no-multi-spaces" : ["error"],
"linebreak-style": ["error", "unix"],
"quotes": ["error", "single", {"avoidEscape": true}],
"semi": ["error", "always"],
"key-spacing": ["error", { "beforeColon": false, "afterColon": true}],
"keyword-spacing": ["error", { "before": true }],
"array-bracket-spacing": ["error", "never"],
"comma-spacing": ["error", {"before": false, "after": true}],
"semi-spacing": ["error", {"before": false, "after": true}],
"space-in-parens": ["error", "never"],
"max-len" : ["error", 80],
"no-multiple-empty-lines": "error",
"no-trailing-spaces" : ["error"]
}
};