-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
87 lines (87 loc) · 2.53 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
87
{
"extends": [
"airbnb",
"airbnb/hooks",
"airbnb-typescript",
"eslint:recommended",
"plugin:jsx-a11y/recommended",
"prettier",
"react-app",
"react-app/jest"
],
"globals": {
"BigInt": "readonly"
},
"parserOptions": {
"project": "./tsconfig.json"
},
"plugins": ["jsx-a11y"],
"rules": {
"camelcase": "off",
"global-require": "off",
"import/extensions": "off",
"import/named": "off",
"import/no-cycle": "off",
"import/no-dynamic-require": "off",
"import/no-extraneous-dependencies": "off",
"import/order": [
"error",
{
"alphabetize": { "order": "asc" },
"groups": [
["builtin", "external"],
["parent", "sibling", "index"]
],
"newlines-between": "always"
}
],
"jsx-a11y/anchor-is-valid": "off",
"jsx-a11y/click-events-have-key-events": "off",
"lines-between-class-members": "off",
"no-console": [
"warn",
{
"allow": ["error", "groupCollapsed", "groupEnd", "info", "warn"]
}
],
"no-nested-ternary": "off",
"no-param-reassign": "off",
"no-restricted-syntax": "off",
"no-shadow": "off",
"no-underscore-dangle": "off",
"padding-line-between-statements": [
"error",
{
"blankLine": "always",
"prev": "*",
"next": "block-like"
},
{
"blankLine": "always",
"prev": "block-like",
"next": "*"
},
{ "blankLine": "always", "prev": ["const", "let"], "next": "*" },
{
"blankLine": "any",
"prev": ["const", "let"],
"next": ["const", "let"]
}
],
"react/forbid-prop-types": "off",
"react/jsx-filename-extension": [
"error",
{
"extensions": [".js", ".jsx", ".ts", ".tsx"]
}
],
"react/jsx-no-duplicate-props": "off",
"react/jsx-props-no-spreading": "off",
"react/no-array-index-key": "off",
"react/no-danger": "off",
"react/prop-types": "error",
"react/react-in-jsx-scope": "off",
"react/state-in-constructor": "off",
"react-hooks/exhaustive-deps": "off"
}
}