-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
32 lines (32 loc) · 977 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": {
"es6": true,
"node": true
},
"rules": {
"comma-spacing": ["error", { "before": false, "after": true }],
"complexity": ["error", 10],
"func-names": ["error", "as-needed"],
"indent": ["error", 2],
"keyword-spacing": ["error", { "before": true, "after": true }],
"linebreak-style": ["error", "unix"],
"no-multiple-empty-lines": ["error"],
"no-trailing-spaces": ["error"],
"no-param-reassign": ["error"],
"no-shadow": ["error"],
"no-unused-expressions": ["error"],
"no-unused-vars": ["error", { "args": "after-used", "vars": "all" }],
"no-var": ["error"],
"prefer-const": ["error"],
"prefer-template": ["error"],
"quotes": ["error", "single"],
"semi": ["error", "always"],
"space-before-blocks": ["error"],
"space-before-function-paren": ["error", {
"anonymous": "always",
"named": "never",
"asyncArrow": "ignore"
}]
}
}