-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
47 lines (47 loc) · 1.36 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
{
"extends": ["airbnb", "airbnb/hooks", "plugin:import/recommended", "prettier"],
"plugins": ["import", "react-hooks", "prettier", "prefer-arrow"],
"parserOptions": {
"ecmaVersion": "latest"
},
"rules": {
"prefer-arrow/prefer-arrow-functions": [
"error",
{
"disallowPrototype": false,
"singleReturnOnly": true,
"classPropertiesAllowed": true
}
],
"prettier/prettier": "error",
"react/jsx-filename-extension": [2, { "extensions": [".js", ".jsx", ".svg", "png"] }],
"react/function-component-definition": [
2,
{
"namedComponents": "arrow-function",
"unnamedComponents": "arrow-function"
}
],
"react/jsx-props-no-spreading": "off",
"arrow-body-style": "off",
"prefer-arrow-callback": "off",
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"import/prefer-default-export": "off",
"import/extensions": "off",
"import/no-unresolved": "off",
"import/no-cycle": "off",
"react/require-default-props": "off",
"no-throw-literal": "off",
"no-nested-ternary": "off",
"react/no-array-index-key": "off",
"react/react-in-jsx-scope": "off",
"import/no-extraneous-dependencies": "off",
"react/prop-types": "off",
"no-param-reassign": "off"
},
"env": {
"browser": true,
"node": true
}
}