This repository has been archived by the owner on May 19, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
91 lines (91 loc) · 2.06 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
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
86
87
88
89
90
91
{
"env": {
"browser": true,
"jest/globals": true
},
"parser": "babel-eslint",
"globals": {
"graphql": false
},
"extends": [
"airbnb",
"prettier"
],
"rules": {
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"import/no-named-as-default": "off",
"import/order": [
"error",
{
"newlines-between": "always",
"groups": [
["builtin", "external"],
"internal",
"parent",
["sibling", "index"]
]
}
],
"react/jsx-filename-extension": "off",
"react/destructuring-assignment": "off",
"jsx-a11y/href-no-hash": "off",
"jsx-a11y/anchor-is-valid": ["warn", {
"aspects": ["invalidHref"]
}],
"jsx-a11y/no-autofocus": "off",
"jsx-a11y/label-has-associated-control": [2, {
"controlComponents": ["input"]
}],
"jsx-a11y/label-has-for": [2, {
"components": ["Label"],
"required": {
"some": ["nesting", "id"]
},
"allowChildren": true
}],
"comma-dangle": ["error", {
"arrays": "always-multiline",
"objects": "always-multiline",
"imports": "always-multiline",
"exports": "always-multiline",
"functions": "never"
}],
"no-underscore-dangle": ["error", {
"allow": ["_id"],
"allowAfterThis": true,
"allowAfterSuper": true
}],
"class-methods-use-this": "off",
"no-confusing-arrow": "warn",
"max-params": ["error", 3],
"max-classes-per-file": ["error", 1],
"max-depth": ["error", 3],
"max-nested-callbacks": ["error", 2],
"complexity": ["error", 4]
},
"plugins": [
"import",
"react",
"react-hooks",
"jsx-a11y",
"jest"
],
"overrides": [{
"files": ["**/*.spec.js", "**/__tests__/*", "**/__mocks__/*"],
"env": {
"jest": true
},
"rules": {
"max-nested-callbacks": ["error", 5],
"max-depth": ["error", 5]
}
}],
"parserOptions": {
"ecmaVersion": 10,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
}
}