-
Notifications
You must be signed in to change notification settings - Fork 152
/
.eslintrc
26 lines (26 loc) · 917 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
{
"env": {
"browser": true,
"commonjs": true,
"es6": true,
"mocha": true
},
"extends": "eslint:recommended",
"parserOptions": { "sourceType": "module" },
"rules": {
"eqeqeq": ["error", "always"],
"brace-style": "error",
"comma-spacing": ["warn", { "before": false, "after": true }],
"curly": "error",
"semi-spacing": ["error", { "before": false, "after": true }],
"indent": ["warn", 2],
"key-spacing": ["error", { "beforeColon": false, "afterColon": true }],
"keyword-spacing": ["error", { "before": true, "after": true }],
"linebreak-style": ["error", "unix"],
"max-len": ["warn", 80],
"new-cap": ["error", { "newIsCap": true }],
"object-shorthand": ["error", "always"],
"space-before-blocks": ["error", { "functions": "always", "keywords": "always", "classes": "always" }],
"space-infix-ops": ["error", { "int32Hint": false }]
}
}