forked from standard/eslint-config-standard-jsx
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheslintrc.json
More file actions
31 lines (29 loc) · 760 Bytes
/
eslintrc.json
File metadata and controls
31 lines (29 loc) · 760 Bytes
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
{
"parserOptions": {
"ecmaVersion": 2018,
"ecmaFeatures": {
"jsx": true
},
"sourceType": "module"
},
"plugins": [
"react"
],
"rules": {
"jsx-quotes": ["error", "prefer-single"],
"react/jsx-boolean-value": "error",
"react/jsx-curly-spacing": ["error", "never"],
"react/jsx-equals-spacing": ["error", "never"],
"react/jsx-indent": ["error", 2],
"react/jsx-indent-props": ["error", 2],
"react/jsx-no-duplicate-props": "error",
"react/jsx-no-undef": "error",
"react/jsx-tag-spacing": ["error", {
"beforeSelfClosing": "always",
"beforeClosing": "never"
}],
"react/jsx-uses-react": "error",
"react/jsx-uses-vars": "error",
"react/self-closing-comp": "error"
}
}