-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc.json
26 lines (26 loc) · 863 Bytes
/
.eslintrc.json
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
{
"plugins": ["react", "react-hooks", "@typescript-eslint"],
"extends": ["prettier", "plugin:react/recommended", "plugin:@typescript-eslint/recommended"],
"env": {
"browser": true,
"jest": true,
"es6": true
},
"rules": {
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"@typescript-eslint/explicit-function-return-type": 0,
"@typescript-eslint/no-explicit-any": 0,
"@typescript-eslint/no-use-before-define": ["error", { "functions": false, "variables": false }],
"@typescript-eslint/explicit-module-boundary-types": 0,
"react/display-name": 0,
"no-param-reassign": ["error", { "props": true, "ignorePropertyModificationsFor": ["state"] }]
},
"settings": {
"react": {
"pragma": "React",
"version": "detect"
}
},
"parser": "@typescript-eslint/parser"
}