-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
38 lines (38 loc) · 1.2 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
{
"parser": "babel-eslint",
"extends": ["prettier","eslint:recommended", "plugin:react/recommended"],
"plugins": ["prettier", "react"],
"rules": {
"semi":"off",
"jsx-quotes": [2, "prefer-single"],
"react/jsx-curly-spacing": [2, {"when": "always", "spacing": {
"objectLiterals": "never"
}}],
"react/jsx-equals-spacing": [2, "always"],
"react/jsx-boolean-value": "error",
"react/jsx-closing-bracket-location": "error",
"react/jsx-first-prop-new-line": "error",
"react/jsx-curly-newline": "error",
"react/jsx-handler-names": "error",
"react/jsx-indent-props": [ "error", 4 ],
"react/jsx-indent": [ "error", 4 ],
"react/jsx-key": "error",
"react/jsx-max-props-per-line": [ "error", { "maximum": 2 }],
"react/jsx-no-bind": "off",
"react/jsx-no-literals": "off",
"react/jsx-no-target-blank": "error",
"react/jsx-pascal-case": "error",
"react/jsx-sort-props": "error",
"react/jsx-space-before-closing": "error"
},
"env": {
"es6": true
},
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
}
}