-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
28 lines (28 loc) · 1.2 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
"use strict";
module.exports = {
"extends" : [
"eslint:recommended",
],
"env" : {
"es6" : true,
"node" : true,
"mocha" : true,
},
"rules" : {
"comma-style" : ["error", "last"],
"indent" : ["error", 4],
"no-tabs" : "error",
"no-eval" : ["error", {"allowIndirect": false}],
"curly" : "error",
"brace-style" : ["error", "stroustrup"],
"dot-location" : ["error", "property"],
"no-redeclare" : "off",
"no-console" : "error",
"strict" : "error",
"comma-dangle" : ["error", "always-multiline"],
"eol-last" : ["error", "always"],
"no-nested-ternary" : "error",
"no-trailing-spaces" : "error",
"one-var" : ["error", { "const": "never", "let": "always", "var": "always" }],
},
}