-
Notifications
You must be signed in to change notification settings - Fork 281
/
.eslintrc
27 lines (27 loc) · 937 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
{
"env": {
"browser": true,
"commonjs": true,
"es6": true,
"mocha": true,
"jquery": 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 }]
}
}