-
Notifications
You must be signed in to change notification settings - Fork 7
/
.eslintrc
39 lines (39 loc) · 1018 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
33
34
35
36
37
38
39
{
"env": {
//remove either of the lines below if you don't need it
//enable nodejs environment
"node": 1,
//enable browser environment
"browser": 1
},
"globals": {
//place settings for globals here, such as
"exampleGlobalVariable": true
},
"extends": "google",
"rules": {
//Additional eslint rules
"object-curly-spacing": [ "warn", "always" ],
"require-jsdoc": ["error", {
"require": {
"FunctionDeclaration": false,
"MethodDefinition": false,
"ClassDeclaration": false,
"ArrowFunctionExpression": false
}
}],
"no-unused-vars": ["error", {"args": "none", "ignoreRestSiblings": true}],
"space-infix-ops": ["error", {"int32Hint": false}],
"prefer-promise-reject-errors": ["error"]
},
"parserOptions": {
"ecmaVersion": 2016,
"sourceType": "module",
"ecmaFeatures": {
"experimentalObjectRestSpread": true
}
},
"plugins": [
//you can put plugins here
]
}