-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
61 lines (61 loc) · 1.63 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
49
50
51
52
53
54
55
56
57
58
59
60
61
{
"globals": {
"process": true
},
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended", "plugin:react/recommended", "prettier"],
"plugins": ["@typescript-eslint", "prettier", "react", "react-hooks", "prefer-arrow"],
"env": {
"browser": true,
"jasmine": true,
"jest": true,
"es6": true
},
"rules": {
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"prettier/prettier": "warn",
"react/prop-types": "off",
"react/jsx-no-bind": "off",
"react/no-array-index-key": "off",
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "error",
"@typescript-eslint/no-empty-interface": "warn",
"@typescript-eslint/no-empty-function": "off",
"quotes": "off",
"@typescript-eslint/quotes": ["off", "backtick"],
"react/jsx-curly-brace-presence": [
"off",
{
"props": "always",
"children": "never"
}
],
"prefer-arrow/prefer-arrow-functions": [
"off",
{
"disallowPrototype": true,
"singleReturnOnly": false,
"classPropertiesAllowed": true,
"allowStandaloneDeclarations": false
}
],
"prefer-arrow-callback": [
"off",
{
"allowNamedFunctions": false,
"allowUnboundThis": false
}
],
"func-style": ["off", "expression"],
"arrow-body-style": ["off", "as-needed"],
"object-shorthand": "off"
},
"settings": {
"react": {
"pragma": "React",
"version": "detect"
}
},
"parser": "@typescript-eslint/parser"
}