-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
48 lines (48 loc) · 1.44 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
{
"extends": ["airbnb"],
"plugins": ["jest", "react-hooks"],
"parser": "babel-eslint",
"env": {
"browser": true,
"commonjs": true,
"es6": true,
"node": true,
"jest/globals": true
},
"settings": {
"import/resolver": {
"node": {
"extensions": [".js", ".json"],
"paths": ["./src", "./tests"]
}
}
},
"rules": {
"linebreak-style": 0,
"indent": ["error", 4, { "SwitchCase": 1 }],
"semi":["error", "never"],
"arrow-parens": ["error", "always"],
"import/extensions": ["error", "never", {
"svg": "always",
"png": "always"
}],
"comma-dangle": ["error", {
"objects": "always-multiline",
"arrays": "always-multiline",
"imports": "always-multiline",
"exports": "always-multiline"
}],
"react/prop-types": "off",
"react/jsx-filename-extension": "off",
"react/jsx-props-no-spreading": "off",
"react/jsx-indent": ["error", 4],
"react/jsx-indent-props": ["error", 4],
"jsx-a11y/anchor-is-valid": "off",
"import/no-extraneous-dependencies": ["error", {
"devDependencies": true
}],
"react/jsx-one-expression-per-line": "off",
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn"
}
}