-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
137 lines (137 loc) · 3.62 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
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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
{
"extends": [
"plugin:react/recommended",
"airbnb"
],
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly",
"JSX":"readonly",
"React": true
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 2021,
"sourceType": "module"
},
"plugins": [
"react",
"react-hooks",
"@typescript-eslint",
"typescript-sort-keys"
],
"ignorePatterns": [
"**/*generated.ts"
],
"rules": {
"max-len": 0,
"no-console": ["warn", { "allow": ["warn", "error", "info"] }],
"object-curly-newline": ["error", { "multiline": true, "consistent": true }],
"import/prefer-default-export": 0,
"no-underscore-dangle": ["error", { "allow": ["_id", "_embedded", "_links", "_email", "_rpcEndpoint"] }],
"react/require-default-props": 0,
"react/function-component-definition": "off",
"react/react-in-jsx-scope": 0,
"react/prop-types": 0,
"import/order": 1,
"react/jsx-no-bind": 1,
"react/no-array-index-key": 0,
"react/jsx-no-useless-fragment": 0,
"react/jsx-props-no-spreading": 0,
"max-classes-per-file": 0,
"no-use-before-define": 0,
"no-nested-ternary": 0,
"jsx-a11y/anchor-is-valid": 0,
"jsx-a11y/alt-text": 0,
"jsx-a11y/media-has-caption": 0,
"jsx-a11y/click-events-have-key-events": 0,
"jsx-a11y/no-static-element-interactions": 0,
"jsx-a11y/label-has-associated-control": 0,
"no-case-declarations": 0,
"linebreak-style": "off",
"no-shadow": "off",
"lines-between-class-members": 0,
"class-methods-use-this": 0,
"no-multiple-empty-lines": 1,
"no-empty-function": 0,
"no-useless-constructor": 0,
"no-param-reassign": "off",
"no-unused-vars": 0,
"prefer-destructuring": 0,
"react-hooks/exhaustive-deps": 1,
"react-hooks/rules-of-hooks": 2,
"@typescript-eslint/no-unused-vars": [
"warn",
{
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_",
"caughtErrorsIgnorePattern": "^_"
}
],
"@typescript-eslint/no-shadow": ["error"],
"@typescript-eslint/no-use-before-define": ["error"],
"@typescript-eslint/member-delimiter-style": ["warn", {
"multiline": {
"delimiter": "semi",
"requireLast": true
},
"singleline": {
"delimiter": "semi",
"requireLast": false
}
}],
"@typescript-eslint/type-annotation-spacing": ["warn", {
"before": false,
"after": true,
"overrides": { "arrow": { "before": true, "after": true }}
}],
"keyword-spacing": "off",
"@typescript-eslint/keyword-spacing": ["warn", {
"overrides": {
"function": { "after": true, "before": true }
} }],
"space-before-blocks": ["warn"],
"react/jsx-filename-extension": [ "warn", {"extensions": [".tsx"]} ],
"import/extensions": [ "error", "ignorePackages", {
"ts": "never",
"tsx": "never",
"js": "never",
"jsx": "never"
}],
"no-await-in-loop": "off",
"no-plusplus": "off",
"consistent-return": "off",
"no-unused-expressions": "off",
"no-continue": "off",
"sort-imports": [
"error",
{
"ignoreDeclarationSort": true,
"memberSyntaxSortOrder": [
"single",
"multiple",
"all",
"none"
]
}
],
"typescript-sort-keys/interface": [
"error",
"asc",
{
"caseSensitive": false,
"natural": true,
"requiredFirst": true
}
],
"no-debugger": "warn"
},
"settings": {
"import/resolver": {
"typescript": {}
}
}
}