-
Notifications
You must be signed in to change notification settings - Fork 29
/
.eslintrc
49 lines (48 loc) · 1.13 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
46
47
48
49
{
"env": {
"browser": true,
"node": true
},
"plugins": [
"react",
"import"
],
"extends": [
"plugin:react/recommended"
],
"parserOptions": {
"ecmaVersion": 6,
"ecmaFeatures": {
"jsx": true
}
},
"rules": {
"indent": ["error", 2, {"SwitchCase": 1}],
"eqeqeq": "error",
"curly": "error",
"quotes": ["error", "single"],
"no-unused-vars": "error",
"no-undef": "error",
"no-multi-spaces": "error",
"no-empty": "error",
"comma-dangle": ["error", "never"],
"semi": ["error", "always"],
"wrap-iife": ["error", "inside"],
"linebreak-style": "error",
"comma-spacing": ["error", {"before": false, "after": true}],
"no-spaced-func": "error",
"no-var": "error",
"prefer-const": "error",
"prefer-template": "error",
"object-curly-spacing": ["error", "always"],
"prefer-arrow-callback": "error",
"object-shorthand": ["error", "always"],
"no-shadow": "error",
"brace-style": "error",
"arrow-body-style": ["error", "as-needed"],
"import/no-unresolved": ["error", { "commonjs": true }]
},
"globals": {
"punk": true
}
}