-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
31 lines (31 loc) · 899 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
27
28
29
30
31
{
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint", "react", "react-hooks"],
"parserOptions": {
"project": "./tsconfig.json",
"tsconfigRootDir": "./",
"sourceType": "module"
},
"extends": [
"plugin:@typescript-eslint/recommended",
"prettier",
"prettier/@typescript-eslint",
"plugin:react/recommended"
],
"rules": {
"@typescript-eslint/explicit-member-accessibility": 0,
"no-console": ["error", { "allow": ["warn", "error"] }],
"@typescript-eslint/explicit-function-return-type": 0,
"@typescript-eslint/interface-name-prefix": [2, "always"],
"@typescript-eslint/no-unused-vars": 0,
"react/prop-types": [0],
"@typescript-eslint/no-explicit-any": 0,
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn"
},
"settings": {
"react": {
"version": "detect"
}
}
}