-
Notifications
You must be signed in to change notification settings - Fork 180
/
.eslintrc
45 lines (45 loc) · 1.23 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
36
37
38
39
40
41
42
43
44
45
{
"extends": ["eslint:recommended"],
"env": {
"es6": true,
"browser": true,
"commonjs": true,
"jquery": true
},
"globals": {
"chrome": true
},
"parser": "babel-eslint",
"rules": {
"arrow-spacing": "error",
"block-spacing": "error",
"curly": "error",
"default-case": "error",
"indent": [2, 2, {"SwitchCase": 1, "VariableDeclarator": {"var": 2, "let": 2, "const": 3}}],
"newline-after-var": ["error", "always"],
"no-console": 0,
"no-debugger": "error",
"no-else-return": "error",
"no-extra-bind": "error",
"no-implicit-coercion": "error",
"no-multi-spaces": ["error", { "exceptions": { "VariableDeclarator": true, "AssignmentExpression": true } }],
"no-template-curly-in-string": "error",
"no-trailing-spaces": "warn",
"no-undef-init": "error",
"no-unused-vars": "error",
"no-var": 1,
"object-shorthand": "error",
"prefer-arrow-callback": "error",
"prefer-const": "error",
"prefer-reflect": "error",
"require-await": "error",
"semi": "error",
"space-before-function-paren": ["error", {
"anonymous": "always",
"named": "never",
"asyncArrow": "ignore"
}],
"spaced-comment": 1,
"strict": "error"
}
}