-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.json
executable file
·48 lines (48 loc) · 1.19 KB
/
.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
{
"parser": "@typescript-eslint/parser",
"extends": [
"plugin:react/recommended",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended",
"plugin:storybook/recommended"
],
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module"
},
"plugins": [
"@typescript-eslint",
"prettier",
"simple-import-sort",
"react-hooks"
],
"rules": {
"@typescript-eslint/ban-ts-comment": [
"error",
{
"ts-expect-error": "allow-with-description",
"ts-ignore": "allow-with-description",
"ts-nocheck": true,
"ts-check": false
}
],
"@typescript-eslint/ban-types": ["off"],
"@typescript-eslint/explicit-function-return-type": "warn",
"@typescript-eslint/no-explicit-any": ["warn"],
"@typescript-eslint/no-unused-vars": "error",
"@typescript-eslint/no-use-before-define": ["warn"],
"@typescript-eslint/prefer-optional-chain": "error",
"prettier/prettier": "error",
"react-hooks/exhaustive-deps": "warn",
"react-hooks/rules-of-hooks": "error",
"react/prop-types": ["off"],
"simple-import-sort/exports": "error",
"simple-import-sort/imports": "error",
"react/display-name": "off"
},
"settings": {
"react": {
"version": "detect"
}
}
}