-
Notifications
You must be signed in to change notification settings - Fork 205
/
.eslintrc
89 lines (89 loc) · 2.53 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
{
"rules": {
"quotes": [2, "single"],
"linebreak-style": [2, "unix"],
"semi": [2, "always"],
"no-extra-parens": [2, "all"],
"curly": [2, "multi-line"],
"no-multi-spaces": 2,
"array-bracket-spacing": [2, "never"],
"block-spacing": [2, "always"],
"camelcase": 2,
"comma-spacing": [2, {
"before": false,
"after": true
}],
"eol-last": 2,
"func-call-spacing": [2, "never"],
"jsx-quotes": [2, "prefer-double"],
"keyword-spacing": 2,
"no-trailing-spaces": 2,
"semi-spacing": [2, {
"before": false,
"after": true
}],
"space-before-blocks": 2,
"space-before-function-paren": [2, {
"anonymous": "always",
"named": "never"
}],
"space-infix-ops": 2,
"arrow-body-style": [2, "as-needed"],
"arrow-parens": [2, "as-needed"],
"arrow-spacing": 2,
"no-useless-rename": 2,
"no-var": 2,
"object-shorthand": [2, "always", {
"avoidQuotes": true
}],
"prefer-const": 2,
"template-curly-spacing": 2,
"dot-location": [2, "property"],
"no-multiple-empty-lines": [2, {
"max": 1,
"maxEOF": 1
}],
"react/display-name": 2,
"react/jsx-no-duplicate-props": 2,
"react/jsx-no-undef": 2,
"react/jsx-uses-react": 2,
"react/jsx-uses-vars": 2,
"react/no-deprecated": 1,
"react/no-direct-mutation-state": 2,
"react/no-is-mounted": 2,
"react/no-unknown-property": 2,
"react/no-render-return-value": 2,
"react/prop-types": 0,
"react/react-in-jsx-scope": 2,
"react/require-render-return": 2,
"react/self-closing-comp": [2, {
"component": true,
"html": true
}],
"react/jsx-no-bind": [2, {
"ignoreRefs": true,
"allowArrowFunctions": true,
"allowBind": false
}],
"react/jsx-equals-spacing": [2, "never"],
"react/jsx-curly-spacing": [2, "never"]
},
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true,
"modules": true
}
},
"env": {
"browser": true,
"es6": true,
"node": true
},
"plugins": [
"react"
],
"extends": ["eslint:recommended", "prettier"]
}