-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.js
More file actions
85 lines (85 loc) · 2.26 KB
/
Copy pathindex.js
File metadata and controls
85 lines (85 loc) · 2.26 KB
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
module.exports = {
env: {
browser: true,
},
extends: ["plugin:prettier/recommended", "plugin:react/recommended"],
plugins: ["prettier", "react-hooks", "import", "jest"],
rules: {
"arrow-body-style": ["warn", "as-needed"],
"arrow-parens": "off",
"comma-dangle": [
"warn",
{
arrays: "always-multiline",
exports: "always-multiline",
functions: "never",
imports: "always-multiline",
objects: "always-multiline",
},
],
"function-paren-newline": "off",
"import/default": "error",
"import/no-extraneous-dependencies": ["error"],
"import/no-unresolved": "error",
"import/order": [
"warn",
{
alphabetize: {
order: "asc",
},
groups: ["builtin", "external", ["sibling", "parent"], "index"],
"newlines-between": "always",
},
],
"import/prefer-default-export": "off",
"import/no-cycle": "error",
indent: "off",
"jsx-a11y/anchor-is-valid": "off",
"jsx-a11y/click-events-have-key-events": "off",
"jsx-a11y/label-has-for": "off",
"jsx-a11y/no-static-element-interactions": "off",
"no-confusing-arrow": "off",
"no-mixed-operators": "off",
"no-plusplus": "off",
"object-curly-newline": "off",
"prefer-template": "warn",
"prettier/prettier": "warn",
quotes: [
"error",
"single",
{
avoidEscape: true,
},
],
"react-hooks/rules-of-hooks": "error",
"react/forbid-prop-types": "off",
"react/jsx-curly-newline": "off",
"react/jsx-indent": "off",
"react/jsx-curly-brace-presence": [
"error",
{ props: "never", children: "never" },
],
"react/jsx-one-expression-per-line": "off",
"react/jsx-props-no-spreading": "off",
"react/jsx-wrap-multilines": "off",
"react/no-multi-comp": "off",
"react/no-unstable-nested-components": ["error", { allowAsProps: true }],
"react/prop-types": "off",
"react/react-in-jsx-scope": "off",
"react/jsx-filename-extension": "off",
"react/self-closing-comp": [
"error",
{
component: true,
html: true,
},
],
"react/sort-comp": "off",
"sort-imports": [
"warn",
{
ignoreDeclarationSort: true,
},
],
},
};