-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
49 lines (49 loc) · 1.03 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
47
48
49
module.exports = {
env: {
browser: true,
es6: true,
},
extends: ["eslint:recommended", "plugin:react/recommended"],
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 2020,
sourceType: "module",
},
plugins: ["react", "react-hooks", "jsx-a11y", "prettier", "babel"],
rules: {
"react/jsx-filename-extension": [
1,
{
extensions: [".js", ".jsx"],
},
],
"react/boolean-prop-naming": [
"warn",
{
rule: "^(is|has)[A-Z]([A-Za-z0-9]?)+",
},
],
"react/display-name": "off",
"react-hooks/rules-of-hooks": "warn",
"react/react-in-jsx-scope": "off",
"react/prop-types": "off",
"react-hooks/exhaustive-deps": "warn",
"no-console": "off",
"no-debugger": "off",
"prettier/prettier": ["warn"],
},
globals: {
window: true,
document: true,
localStorage: true,
FormData: true,
FileReader: true,
require: true,
Blob: true,
navigator: true,
process: true,
module: true,
},
};