-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
33 lines (33 loc) · 1.25 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
module.exports = {
"env": {
"es6": true,
"node": true,
"mocha": true
},
"extends": "eslint:recommended",
"rules": {
"key-spacing": [2, { // enforce spacing between keys and values in object literal properties
"beforeColon": false,
"afterColon": true
}],
"comma-spacing": ["error", { // enforce spacing before and after comma
"before": false,
"after": true
}],
"strict": ["error", "global"], // Strict mode
"indent": [ // this option sets a specific tab width for your code (off by default) */
"error",
4
],
"space-infix-ops": 2, // require spaces around operators
"space-before-blocks": [2, "always"], // require or disallow space before blocks (off by default)
"quotes": [ // specify whether backticks, double or single quotes should be used
"error",
"single"
],
"semi": [ // require or disallow use of semicolons instead of ASI
"error",
"always"
]
}
};