-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy path.eslintrc.json
51 lines (51 loc) · 1.5 KB
/
.eslintrc.json
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
46
47
48
49
50
51
{
"extends": "eslint:recommended",
"rules": {
"semi": ["error", "always"],
"quotes": ["error", "double"],
"block-scoped-var": "error",
"consistent-return": "error",
"curly": "error",
"eqeqeq": "error",
"no-alert": "error",
"no-caller": "error",
"no-eval": "error",
"no-console": "off",
"no-invalid-this": "error",
"no-unused-expressions": "error",
"strict": ["error", "safe"],
"global-require": "error",
"array-bracket-newline": "error",
"array-bracket-spacing": ["error", "always"],
"brace-style": "error",
"comma-dangle": "error",
"comma-spacing": "error",
"comma-style": "error",
"func-call-spacing": "error",
"indent": ["error", 4, {
"SwitchCase": 1
}],
"key-spacing": "error",
"new-cap": "error",
"new-parens": "error",
"no-lonely-if": "error",
"no-new-object": "error",
"no-nested-ternary": "error",
"no-whitespace-before-property": "error",
"semi-spacing": "error",
"semi-style": "error",
"space-before-blocks": "error",
"space-before-function-paren": ["error", "never"],
"spaced-comment": ["error", "always", {
"exceptions": ["/"]
}],
"switch-colon-spacing": "error"
},
"parserOptions": {
"sourceType": "module"
},
"env": {
"browser": true,
"es6": true
}
}