-
Notifications
You must be signed in to change notification settings - Fork 230
/
.eslintrc
69 lines (69 loc) · 1.66 KB
/
.eslintrc
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
{
"extends": [
"airbnb",
"plugin:prettier/recommended",
"prettier",
"prettier/flowtype",
"prettier/react",
"prettier/standard",
"plugin:react-hooks/recommended"
],
"rules": {
"react/jsx-props-no-spreading": "off",
"react/jsx-fragments": 0,
"jsx-a11y/anchor-is-valid": [
"error",
{
"components": ["Link"],
"specialLink": ["to", "hrefLeft", "hrefRight"],
"aspects": ["noHref", "invalidHref", "preferButton"]
}
],
"no-param-reassign": [
2,
{
"props": false
}
],
"no-underscore-dangle": 0,
"no-unused-vars": [
"error",
{
"vars": "all",
"args": "after-used",
"ignoreRestSiblings": true,
"argsIgnorePattern": "^_"
}
],
"prettier/prettier": [
"error",
{
"singleQuote": true,
"trailingComma": "all",
"printWidth": 100,
"endOfLine": "auto"
}
],
"react-app/jsx-a11y/href-no-hash": "off", // This rule is dropped but create-react-app uses old rules
"jsx-a11y/label-has-for": "off", // This rule will be dropped soon anyways
"react/destructuring-assignment": "off", // Seems to be way too restrictive
"import/no-cycle": 1, // Should be addressed eventually but does not break
"import/prefer-default-export": "off",
"jsx-a11y/media-has-caption": "off" // Pretty hard to do for every video..
},
"env": {
"jest": true,
"browser": true
},
"globals": {
"FileReader": true,
"window": true
},
"settings": {
"import/resolver": {
"node": {
"moduleDirectory": ["node_modules", "src/"]
}
}
}
}