-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
59 lines (59 loc) · 1.42 KB
/
.eslintrc.json
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
{
"parser": "babel-eslint",
"extends": [
"standard",
"standard-react",
"standard-jsx",
"prettier",
"plugin:react-hooks/recommended"
],
"plugins": [
"react",
"prettier"
],
"env": {
"jest": true
},
"rules": {
"camelcase": ["error", {
"allow": [
"UNSAFE_componentWillMount",
"UNSAFE_componentWillReceiveProps",
"UNSAFE_componentWillUpdate"
]
}],
"comma-dangle": ["error", {
"arrays": "always-multiline",
"exports": "always-multiline",
"functions": "never",
"imports": "always-multiline",
"objects": "always-multiline"
}],
"eol-last": "off",
"lines-between-class-members": "off",
"no-case-declarations": "error",
"no-prototype-builtins": "off",
"object-shorthand": ["error", "always"],
"prefer-const": ["error", {
"destructuring": "all"
}],
"prettier/prettier": [
"error", {
"semi": false,
"printWidth": 90,
"arrowParens": "always",
"bracketSameLine": true,
"jsxSingleQuote": true,
"singleQuote": true,
"trailingComma": "es5"
}
],
"react/jsx-curly-brace-presence": "off",
"react/jsx-fragments": "off",
"react/jsx-handler-names": "off",
"react/jsx-no-target-blank": "off",
"react/jsx-pascal-case": "off",
"react/require-default-props": "error",
"quote-props": ["error", "as-needed"]
}
}