-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc
27 lines (26 loc) · 839 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
{
"parserOptions": {
"ecmaVersion": 6,
"sourceType" : "module",
"ecmaFeatures": {
"experimentalObjectRestSpread": true,
"arrowFunctions": true,
"classes": true,
"restParams": true,
"spread": true
}
},
"rules": {
"space-before-function-paren": ["error", {
"anonymous": "always",
"named": "never",
"asyncArrow": "ignore"
}],
"generator-star-spacing": [2, "before"], // enforce the spacing around the * in generator functions (off by default)
"keyword-spacing": ["error", { "before" : true, "after" : true }], // require a space after return, throw, and case
"no-extra-semi" : ["error"],
"no-unused-vars" : ["error"],
"semi" : ["error"],
"space-infix-ops": ["error", { "int32Hint" : true }], // require spaces around operators
}
}