forked from osdc/osdc-bot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
32 lines (32 loc) · 1018 Bytes
/
.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
module.exports = {
"env": {
"browser": true,
"es6": true,
"mocha": true,
"node": true
},
"extends": "eslint:recommended",
"parserOptions": {
"sourceType": "module"
},
"rules": {
"arrow-spacing": ["error"],
"brace-style": ["error", "1tbs", { "allowSingleLine": true }],
"camelcase": ["error", { properties: "never" }],
"comma-dangle": ["error", "never"],
"comma-spacing": ["error", { "before": false, "after": true }],
"indent": ["error", 2],
"max-len": ["error", { "ignoreUrls": true, "ignoreTrailingComments": true }],
"no-cond-assign": ["error", "always"],
"no-const-assign": ["error"],
"no-extra-semi": ["error"],
"no-return-assign": ["error", "always"],
"no-var": ["error"],
"object-curly-spacing": ["error", "always"],
"quotes": ["error", "single"],
"semi": ["error", "always"],
"space-in-parens": ["error", "never"],
"spaced-comment": ["error", "always"],
"template-curly-spacing": ["error", "never"]
}
};