-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
50 lines (50 loc) · 1.63 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
{
"parser": "babel-eslint",
"extends": ["prettier", "eslint:recommended", "plugin:react/recommended"],
"plugins": ["prettier", "react", "react-hooks"],
"rules": {
"semi": "off",
"react-hooks/rules-of-hooks": "error", // Checks rules of Hooks
"react-hooks/exhaustive-deps": "warn",
"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",
"space-infix-ops": "error",
"no-unneeded-ternary": "error",
"react/prop-types": 0,
"allowAllPropertiesOnSameLine": 0
},
"env": {
"es6": true
},
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
}
}