forked from magic-akari/lrc-maker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
32 lines (32 loc) · 882 Bytes
/
.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
{
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint", "react-hooks"],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:react/recommended",
"prettier/@typescript-eslint"
],
"rules": {
"@typescript-eslint/no-use-before-define": 0,
"@typescript-eslint/triple-slash-reference": 0,
"react/prop-types": 0,
"react/jsx-no-undef": [2, { "allowGlobals": true }],
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "error"
},
"env": {
"es2020": true
},
"globals": {
"React": "readonly",
"ReactDOM": "readonly"
},
"settings": {
"react": {
"version": "detect"
}
}
}