-
Notifications
You must be signed in to change notification settings - Fork 15
/
.eslintrc.json
80 lines (80 loc) · 1.86 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
{
"parser": "babel-eslint",
"extends": [
"@webex/eslint-config-react",
"plugin:jsx-a11y/recommended",
"plugin:prettier/recommended",
"prettier/react"
],
"plugins": ["react", "jsx-a11y", "import", "prettier", "react-hooks"],
"env": {
"browser": true,
"jest": true
},
"globals": {
"expect": true
},
"rules": {
"react-hooks/rules-of-hooks": "error", // Checks rules of Hooks
"react-hooks/exhaustive-deps": "warn", // Checks effect dependencies
"arrow-body-style": [
"error",
"as-needed",
{
"requireReturnForObjectLiteral": false
}
],
"prefer-arrow-callback": [
"error",
{
"allowNamedFunctions": false,
"allowUnboundThis": true
}
],
"no-confusing-arrow": ["error"],
"jsx-a11y/no-autofocus": 0,
"jsx-a11y/media-has-caption": 0,
"jsx-a11y/anchor-is-valid": [
"error",
{
"components": ["Link"],
"specialLink": ["hrefLeft", "hrefRight"],
"aspects": ["invalidHref", "preferButton"]
}
],
"no-param-reassign": [
"error",
{
"props": true,
"ignorePropertyModificationsFor": ["draft"]
}
],
"require-jsdoc": "off",
"default-case": 0,
"no-warning-comments": 0,
"import/no-unresolved": 2,
"import/prefer-default-export": 0,
"import/no-named-as-default": 0,
"class-methods-use-this": 0,
"comma-dangle": [
"error",
{
"arrays": "always-multiline",
"objects": "always-multiline",
"imports": "always-multiline",
"exports": "always-multiline",
"functions": "never"
}
],
"no-console": 2,
"no-underscore-dangle": [
"error",
{
"allow": [],
"allowAfterThis": false,
"allowAfterSuper": false,
"enforceInMethodNames": true
}
]
}
}