This repository has been archived by the owner on Apr 4, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
99 lines (99 loc) · 1.98 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
{
"extends": [
"airbnb",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:import/typescript",
"plugin:jest/recommended",
"plugin:react/recommended",
"plugin:promise/recommended",
"plugin:jsx-a11y/recommended",
"plugin:@typescript-eslint/recommended",
"prettier/react",
"prettier/@typescript-eslint",
"plugin:prettier/recommended"
],
"plugins": [
"@typescript-eslint",
"jest",
"import",
"promise",
"jsx-a11y",
"react-hooks",
"prettier"
],
"rules": {
"prettier/prettier": [
"error",
{
"bracketSpacing": true,
"trailingComma": "all",
"singleQuote": true,
"semi": true
}
],
"react/prop-types": "off",
"react/jsx-filename-extension": [
"error",
{
"extensions": [
".tsx"
]
}
],
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/no-use-before-define": [
"error",
{
"functions": false
}
],
"promise/always-return": "off",
"no-unused-vars": [
"error",
{
"ignoreRestSiblings": true,
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_"
}
],
"react/sort-comp": [
"warn",
{
"order": [
"propTypes",
"defaultProps",
"static-methods",
"state",
"instance-variables",
"lifecycle",
"everything-else",
"/^on.+$/",
"/^handle.+$/",
"/^render.+$/",
"render"
]
}
]
},
"settings": {
"react": {
"version": "detect"
}
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 2019,
"ecmaFeatures": {
"jsx": true
}
},
"env": {
"jest/globals": true,
"browser": true,
"es6": true
}
}