-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
41 lines (41 loc) · 1.06 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
{
"extends": ["airbnb"],
"plugins": ["react-hooks"],
"rules": {
"comma-dangle": ["error", {
"arrays": "never",
"objects": "never",
"imports": "never",
"exports": "never",
"functions": "never"
}],
"react/jsx-props-no-spreading": ["error", {
"html": "ignore",
"custom": "ignore",
"exceptions": [""]
}],
"arrow-parens": [2, "as-needed", { "requireForBlockBody": false }],
"react/require-default-props": "off",
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"react/jsx-filename-extension": "off",
"react/no-danger": "off",
"import/no-extraneous-dependencies": ["error", {"devDependencies": ["importers/**/*.js"]}],
"react/jsx-curly-newline": "off", // already handled by prettier, but differently, so we have to disable one
"quotes": [
2,
"single",
{
"avoidEscape": true
}
]
},
"env": {
"jest": true,
"browser": true
},
"globals": {
"window": true
},
"ignorePatterns": ["**/*.test.js"]
}