-
Notifications
You must be signed in to change notification settings - Fork 9
/
.eslintrc.cjs
61 lines (61 loc) · 1.31 KB
/
.eslintrc.cjs
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
module.exports = {
root: true,
extends: ["airbnb", "airbnb/hooks", "prettier"],
plugins: ["prettier", "testing-library"],
rules: {
"prettier/prettier": "error",
"react/jsx-props-no-spreading": "off",
"react/jsx-sort-props": [
"error",
{
ignoreCase: true,
reservedFirst: true,
},
],
"react/function-component-definition": [
2,
{
namedComponents: "function-declaration",
unnamedComponents: "arrow-function",
},
],
"react/react-in-jsx-scope": [0],
"import/order": [
"error",
{
groups: [
["builtin", "external", "internal"],
"parent",
"sibling",
"index",
],
"newlines-between": "never",
alphabetize: {
order: "asc",
caseInsensitive: true,
},
},
],
"jsx-a11y/label-has-associated-control": [
2,
{
inputComponents: ["Field"],
},
],
// workaround for
// https://github.com/import-js/eslint-plugin-import/issues/1810:
"import/no-unresolved": ["error", { ignore: ["wouter"] }],
"react/require-default-props": [
2,
{
functions: "defaultArguments",
},
],
},
env: {
browser: true,
},
parserOptions: {
ecmaVersion: 2020,
},
};