This repository has been archived by the owner on Mar 14, 2022. It is now read-only.
/
.eslintrc.json
55 lines (55 loc) · 1.52 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
52
53
54
55
{
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"experimentalObjectRestSpread": true,
"jsx": true
}
},
"env": {
"browser": true,
"es6": true,
"jest": true
},
"extends": ["eslint:recommended", "plugin:react/recommended"],
"plugins": ["react"],
"rules": {
"arrow-body-style": ["error", "as-needed"],
"camelcase": "error",
"comma-dangle": ["error", "only-multiline"],
"comma-style": ["error", "last"],
"dot-location": ["error", "property"],
"eqeqeq": "error",
"indent": ["error", 2, { "VariableDeclarator": 2, "SwitchCase": 1 }],
"keyword-spacing": ["error", { "after": true }],
"no-console": "warn",
"no-debugger": "error",
"no-eq-null": "error",
"no-extra-parens": "error",
"no-extra-semi": "error",
"no-iterator": "error",
"no-lonely-if": "error",
"no-multi-spaces": "off",
"no-nested-ternary": "error",
"no-new-object": "error",
"no-param-reassign": "error",
"no-self-compare": "error",
"no-shadow": "error",
"no-throw-literal": "error",
"no-undef": "error",
"no-underscore-dangle": "off",
"no-var": "error",
"no-void": "error",
"object-shorthand": "error",
"prefer-rest-params": "error",
"prefer-template": "error",
"space-before-function-paren": [
"error",
{ "anonymous": "always", "named": "never", "asyncArrow": "always" }
],
"space-in-brackets": "never",
"template-curly-spacing": "error"
}
}