-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
86 lines (86 loc) · 2.55 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
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
{
"parser": "@typescript-eslint/parser",
"env": {
"browser": true,
"es6": true,
"node": true,
"jest": true
},
"extends": ["airbnb", "plugin:@typescript-eslint/recommended", "prettier"],
"plugins": ["import", "react-hooks", "prettier"],
"settings": {
"import/parsers": {
"@typescript-eslint/parser": [".ts", ".tsx"]
},
"import/resolver": {
"typescript": {
"alwaysTryTypes": true
}
}
},
"overrides": [
{
"files": ["*.tsx"],
"rules": {
"react/jsx-filename-extension": ["off"],
"react/prop-types": ["off"],
"arrow-parens": "off",
"import/named": "off",
"no-undef": "off"
}
},
{
"files": ["*.js"],
"rules": {
"@typescript-eslint/no-var-requires": "off"
}
}
],
"rules": {
"indent": "off",
"react/jsx-indent": "off",
"react/jsx-indent-props": "off",
"react/forbid-prop-types": ["off"],
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"@typescript-eslint/indent": "off",
"@typescript-eslint/no-unused-vars": [
"error",
{
"ignoreRestSiblings": true
}
],
"@typescript-eslint/prefer-interface": "off",
"react/jsx-wrap-multilines": "off",
"react/jsx-one-expression-per-line": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/explicit-member-accessibility": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"consistent-return": "off",
"import/named": "off",
"import/extensions": "off",
"react/jsx-props-no-spreading": "off",
"react/jsx-curly-newline": "off",
"@typescript-eslint/ban-ts-ignore": "off",
"@typescript-eslint/no-empty-function": "off",
"react/state-in-constructor": "off",
"import/prefer-default-export": "off",
"no-shadow": "off",
"import/no-extraneous-dependencies": "off",
"@typescript-eslint/ban-types": "warn",
"@typescript-eslint/ban-ts-comment": "warn",
"@typescript-eslint/explicit-module-boundary-types": "off",
"prettier/prettier": "error",
"jsx-a11y/anchor-is-valid": "off",
"jsx-a11y/no-static-element-interactions": "off",
"jsx-a11y/click-events-have-key-events": "off",
"react/jsx-no-target-blank": "off",
"no-param-reassign": "off",
"import/no-unresolved": "off",
"no-use-before-define": "off",
"@typescript-eslint/no-use-before-define": ["error"],
"jsx-a11y/alt-text": "off",
"import/no-cycle": "off"
}
}