-
Notifications
You must be signed in to change notification settings - Fork 4
/
.eslintrc
35 lines (35 loc) · 1.2 KB
/
.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
28
29
30
31
32
33
34
35
{
"env": {
"browser": true,
"es6": true
},
"rules": {
"array-bracket-spacing": ["error", "never"],
"block-spacing": ["error"],
"comma-dangle": ["error", "never"],
"comma-spacing": ["error", {"before": false, "after": true}],
"indent": ["error", 2], // modify this depending on the project
"key-spacing": ["error", {"beforeColon": false}],
"keyword-spacing": ["error", {"before": true, "after": true}],
"linebreak-style": ["error", "unix"],
"lines-around-comment": [
"error",
{"beforeLineComment": true, "beforeBlockComment": true}
],
"no-cond-assign": ["error", "always"],
"no-console": "off",
"no-mixed-spaces-and-tabs": ["error"],
"no-multi-spaces": ["error"],
"no-trailing-spaces": ["error"],
"no-unused-vars": ["error", {"vars": "all"}],
"no-whitespace-before-property": ["error"],
"object-curly-spacing": ["error", "never"],
"quotes": ["error", "single"],
"semi": ["error", "always"],
"semi-spacing": ["error"],
"space-before-blocks": ["error"],
"space-in-parens": ["error", "never"],
"spaced-comment": ["error", "always", {"block": {"balanced": true}}],
"wrap-iife": ["error", "inside"]
}
}