-
Notifications
You must be signed in to change notification settings - Fork 7
/
.eslintrc
119 lines (119 loc) 路 3.15 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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
{
"extends": [
"eslint-config-airbnb",
"plugin:@typescript-eslint/recommended"
],
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint",
"react-hooks"
],
"env": {
"browser": true,
"node": true,
"jest": true,
"es6": true
},
"rules": {
"indent": [
"error",
2
],
"react/jsx-indent": [
"error",
2
],
"react/no-access-state-in-setstate": 0,
"react/destructuring-assignment": 0,
"lines-between-class-members": 0,
"arrow-parens": 0,
"prefer-object-spread": 0,
"operator-linebreak": 0,
"import/prefer-default-export": 0,
"import/extensions": 0,
"no-mixed-operators": 0,
"react/prefer-stateless-function": 0,
"react/jsx-filename-extension": 0,
"react/forbid-prop-types": 0,
"react/no-unused-prop-types": 1,
"react/jsx-one-expression-per-line": 0,
"react/state-in-constructor": 0,
"react/jsx-props-no-spreading": 0,
"react/static-property-placement": 0,
"jsx-a11y/anchor-is-valid": 0,
"jsx-a11y/no-static-element-interactions": 0,
"jsx-a11y/click-events-have-key-events": 0,
"function-paren-newline": 0,
"no-unused-vars": "off",
"max-classes-per-file": 0,
"no-param-reassign": 0,
"no-unused-expressions": 0,
"max-len": "off",
"react/sort-comp": 0,
"no-restricted-syntax": 0,
"import/no-named-as-default-member": 0,
"class-methods-use-this": 0,
"import/no-named-as-default": 0,
"prefer-destructuring": 0,
"no-underscore-dangle": 0,
"no-bitwise": 0,
"no-prototype-builtins": 0,
"no-plusplus": ["error",
{
"allowForLoopAfterthoughts": true
}
],
"no-explicit-any": "off",
"default-param-last": "off",
"no-shadow": "off",
"no-use-before-define": "off",
"@typescript-eslint/no-use-before-define": "warn",
"@typescript-eslint/no-shadow": "warn",
"@typescript-eslint/no-explicit-any": "warn",
"@typescript-eslint/ban-types": "warn",
"@typescript-eslint/ban-ts-comment": 0,
"@typescript-eslint/explicit-module-boundary-types": 0,
"@typescript-eslint/no-non-null-assertion": 0,
"@typescript-eslint/explicit-member-accessibility": 0,
"@typescript-eslint/explicit-function-return-type": 0,
"@typescript-eslint/no-unused-vars": [
1,
{
"vars": "all",
"args": "after-used",
"ignoreRestSiblings": false
}
],
"@typescript-eslint/interface-name-prefix": "off",
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"object-curly-newline": [
"error",
{
"ObjectPattern": {
"multiline": true
},
"ExportDeclaration": {
"multiline": true,
"minProperties": 2
}
}
],
"no-void": "off",
"react/no-multi-comp": "off",
"func-names": "off",
"comma-dangle": [
"error",
"only-multiline"
],
"import/no-mutable-exports": "off",
"consistent-return": "off",
"no-dupe-class-members": "off",
"@typescript-eslint/no-dupe-class-members": ["error"]
},
"settings": {
"import/resolver": {
"typescript": {}
}
}
}