-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.eslintrc
64 lines (64 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
{
"env": {
"browser": true,
"es2022": true
},
"settings": {
"import/resolver": {
"node": {
"extensions": [".js", ".jsx", ".ts", ".tsx"]
}
},
"react": {
"version": "detect"
}
},
"overrides": [
{
"files": ["**/*.test.js", "**/*.test.jsx"],
"env": {
"jest": true
}
}
],
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": ["react", "prettier", "react-hooks", "jsx-a11y", "promise", "import", "unicorn", "testing-library"],
"extends": [
"eslint:recommended",
"eslint-config-prettier",
"plugin:react/recommended",
"plugin:import/recommended",
"plugin:jsx-a11y/recommended",
"plugin:prettier/recommended",
"plugin:unicorn/recommended",
"airbnb",
"prettier"
],
"rules": {
"no-unused-vars": "warn",
"jsx-a11y/anchor-is-valid": "warn",
"prettier/prettier": "warn",
"promise/catch-or-return": "error",
"promise/no-new-statics": "error",
"promise/no-return-wrap": "error",
"promise/param-names": "error",
"promise/always-return": "warn",
"promise/avoid-new": "warn",
"promise/no-callback-in-promise": "warn",
"promise/no-nesting": "warn",
"promise/no-promise-in-callback": "warn",
"promise/no-return-in-finally": "warn",
"promise/valid-params": "warn",
"promise/no-native": "off",
"react/prop-types": "off",
"react/react-in-jsx-scope": "off",
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"testing-library/no-debugging-utils": "warn",
"testing-library/no-dom-import": "warn",
"unicorn/filename-case": "off"
}
}