-
Notifications
You must be signed in to change notification settings - Fork 8
/
.eslintrc.js
46 lines (46 loc) · 1.05 KB
/
.eslintrc.js
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
module.exports = {
extends: [
"airbnb",
"prettier/react",
"plugin:jest/recommended",
"plugin:promise/recommended",
"plugin:prettier/recommended"
],
env: {
jest: true,
browser: true
},
plugins: ["jest", "markdown", "promise", "prettier", "react", "react-hooks"],
rules: {
"import/no-extraneous-dependencies": "off",
"no-alert": "error",
"no-console": "error",
"no-param-reassign": ["error", { props: false }],
"no-unused-vars": [
"error",
{
varsIgnorePattern: "_"
}
],
"jsx-a11y/media-has-caption": "off",
"prettier/prettier": [
"error",
{
semi: false
}
],
"react/prop-types": "off",
"react/jsx-filename-extension": "off",
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
},
overrides: [{
"files": ["**/*.md"],
"rules": {
"react/jsx-no-undef": "off",
"import/no-unresolved": "off",
"no-unused-expressions": "off",
"react/react-in-jsx-scope": "off"
}
}]
}