-
Notifications
You must be signed in to change notification settings - Fork 9
/
.eslintrc
42 lines (42 loc) · 1 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
{
"root": true,
"env": {
"browser": true,
"node": true,
"es2020": true
},
"settings": {
"react": {
"version": "detect"
}
},
"parserOptions": {
"sourceType": "module",
"ecmaFeatures": {
"jsx": true,
"modules": true
},
"ecmaVersion": 2020
},
"extends": [
"plugin:react/recommended",
"prettier",
"plugin:prettier/recommended"
],
"ignorePatterns": ["node_modules/", "dist/"],
"parser": "@typescript-eslint/parser",
"plugins": ["react", "react-hooks", "prettier", "jsx-a11y"],
"rules": {
"@typescript-eslint/no-empty-interface": "off",
"react-hooks/exhaustive-deps": "warn",
"react-hooks/rules-of-hooks": "error",
"react/display-name": "off",
"react/jsx-no-target-blank": "error",
"react/jsx-uses-react": "error",
"react/jsx-uses-vars": "error",
"react/prop-types": "off",
"jsx-a11y/no-static-element-interactions": "error",
"jsx-a11y/aria-role": "error",
"jsx-a11y/no-autofocus": "error"
}
}