This repository has been archived by the owner on Mar 10, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
57 lines (57 loc) · 1.6 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
50
51
52
53
54
55
56
57
{
"plugins": [
"prettier",
"react"
],
"extends": [
"react-app"
],
"env": {
"browser": true
},
"rules": {
"jsx-quotes": [2, "prefer-single"],
"react/jsx-curly-spacing": [2, "always"],
"react/prefer-stateless-function": "off",
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
"react/no-deprecated": "off",
"jsx-a11y/href-no-hash": "off",
"no-throw-literal": "off",
"operator-assignment": "off",
"no-unused-vars": ["error", {
"vars": "all", "args": "after-used"
}],
"comma-dangle": "off",
"indent": ["error", 2, {"SwitchCase": 1}],
"quotes": ["error", "single"],
"semi": ["error", "always"],
"no-console": "off",
"camelcase": "off",
"object-curly-spacing": ["error", "never"],
"prefer-const": "off",
"no-underscore-dangle": "off",
"no-param-reassign": "off",
"no-plusplus": "off",
"no-useless-escape": "off",
"no-restricted-properties": "off",
"consistent-return": "off",
"guard-for-in": "off",
"no-loop-func": "off",
"curly": ["error", "all"],
"brace-style": ["error", "1tbs"],
"default-case": "off",
"prefer-destructuring": "off",
"padding-line-between-statements": [
"error",
{ "blankLine": "always", "prev": "*", "next": "block-like" },
{ "blankLine": "always", "prev": "block-like", "next": "*" }
],
"max-len": ["error", {"code": 100}],
"implicit-arrow-linebreak": ["error", "beside"],
"no-control-regex": "off",
"arrow-parens": ["error", "always"]
},
"settings": {
"import/resolver": "webpack"
}
}