-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
30 lines (29 loc) · 1 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
module.exports = {
"env": {
"browser": true,
"es6": true,
"jquery": true,
},
"extends": "eslint:recommended",
"parserOptions": {
"sourceType": "module",
},
"rules": {
"indent": ["error", 4],
"linebreak-style": ["error", "unix"],
"semi": ["error", "always"],
"comma-dangle": ["error", "always-multiline"],
"space-before-function-paren": ["error", {"anonymous": "always", "named": "never"}],
"keyword-spacing": ["error", {"before": true, "after": true}],
"brace-style": ["error", "1tbs"],
"space-before-blocks": ["error", "always"],
"comma-spacing": ["error", {"before": false, "after": true}],
"array-bracket-spacing": ["error", "never"],
"object-curly-spacing": ["error", "never"],
"prefer-const": ["error", {"destructuring": "all"}],
"no-var": ["error"],
// future: these stripped by tools
"no-console": [0],
"no-debugger": [0],
},
};