-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.eslintrc
77 lines (77 loc) · 1.84 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
{
"parser": "@typescript-eslint/parser",
"extends": [
"plugin:react/recommended",
"plugin:@typescript-eslint/recommended",
"prettier/@typescript-eslint"
],
"plugins": ["react-hooks"],
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module",
"allowImportExportEverywhere": true,
"ecmaFeatures": {
"jsx": true,
"experimentalObjectRestSpread": true
}
},
"rules": {
"indent": [
"error",
2,
{
"SwitchCase": 1,
"VariableDeclarator": {
"var": 2,
"let": 2,
"const": 3
},
"MemberExpression": 1,
"FunctionDeclaration": {
"parameters": 1
},
"CallExpression": {
"arguments": 1
},
"ArrayExpression": 1,
"ObjectExpression": 1
}
],
"no-unused-vars": [
"error",
{
"vars": "local",
"args": "after-used"
}
],
"no-console": ["error"],
"space-before-function-paren": [
"error",
{
"anonymous": "never",
"named": "never"
}
],
"no-trailing-spaces": "error",
"no-multiple-empty-lines": "error",
"react/jsx-no-duplicate-props": "error",
"react/jsx-no-target-blank": "error",
"react/jsx-no-undef": "error",
"react/no-did-mount-set-state": "error",
"react/no-did-update-set-state": "error",
"react/no-direct-mutation-state": "error",
"react/no-unknown-property": "error",
"react/no-unused-prop-types": "error",
"react/prefer-es6-class": ["error", "always"],
"react/prop-types": "error",
"react/require-render-return": "error",
"react-hooks/rules-of-hooks": "error",
"@typescript-eslint/ban-ts-ignore": 0,
"@typescript-eslint/explicit-function-return-type": 0
},
"settings": {
"react": {
"version": "detect"
}
}
}