-
Notifications
You must be signed in to change notification settings - Fork 407
/
.eslintrc
47 lines (45 loc) · 1.19 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
{
"env": {
"browser": true,
"jest": true
},
"extends": [
"@ericgio/eslint-config-react",
"plugin:@typescript-eslint/recommended",
"plugin:react-hooks/recommended",
"prettier"
],
"globals": {},
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint"],
"settings": {
"import/resolver": {
"node": {
"extensions": [".js", ".jsx", ".ts", ".tsx"]
}
}
},
"rules": {
"@typescript-eslint/no-shadow": 2,
"@typescript-eslint/no-unused-vars": [
2,
{ "vars": "all", "args": "after-used", "ignoreRestSiblings": true }
],
"@typescript-eslint/no-use-before-define": ["error"],
"react/jsx-filename-extension": [
1,
{
"extensions": [".js", ".jsx", ".tsx"]
}
],
"react/jsx-fragments": [2, "syntax"],
"react/static-property-placement": [2, "static public field"],
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"import/extensions": "off",
"react/jsx-no-bind": "off",
// Turn off the following rules since they conflict with the TS version.
"no-shadow": "off",
"no-use-before-define": "off"
}
}