@leancodepl/eslint-config 7.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +221 -0
- package/README.md +11 -0
- package/package.json +18 -0
- package/project.json +22 -0
- package/src/index.json +3 -0
- package/src/lib/a11y.json +3 -0
- package/src/lib/imports.json +43 -0
- package/src/lib/index.json +65 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+
# Change Log
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file. See
|
|
4
|
+
[Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
|
+
|
|
6
|
+
<a name="6.5.1"></a>
|
|
7
|
+
|
|
8
|
+
## [6.5.1](https://github.com/projects/leancodepl/repos/js_corelibrary/compare/diff?targetBranch=refs%2Ftags%2Fv6.5.0&sourceBranch=refs%2Ftags%2Fv6.5.1) (2023-07-25)
|
|
9
|
+
|
|
10
|
+
### Bug Fixes
|
|
11
|
+
|
|
12
|
+
- use peer dependencies for eslint config
|
|
13
|
+
([ae78f41](https://github.com/projects/leancodepl/repos/js_corelibrary/commits/ae78f41))
|
|
14
|
+
|
|
15
|
+
<a name="6.5.0"></a>
|
|
16
|
+
|
|
17
|
+
# [6.5.0](https://github.com/projects/leancodepl/repos/js_corelibrary/compare/diff?targetBranch=refs%2Ftags%2Fv6.4.1&sourceBranch=refs%2Ftags%2Fv6.5.0) (2023-07-25)
|
|
18
|
+
|
|
19
|
+
### Features
|
|
20
|
+
|
|
21
|
+
- upgrade linters deps ([0d265aa](https://github.com/projects/leancodepl/repos/js_corelibrary/commits/0d265aa))
|
|
22
|
+
|
|
23
|
+
<a name="6.3.0"></a>
|
|
24
|
+
|
|
25
|
+
# [6.3.0](https://github.com/projects/leancodepl/repos/js_corelibrary/compare/diff?targetBranch=refs%2Ftags%2Fv6.2.0&sourceBranch=refs%2Ftags%2Fv6.3.0) (2022-08-10)
|
|
26
|
+
|
|
27
|
+
**Note:** Version bump only for package @leancode/eslint-config
|
|
28
|
+
|
|
29
|
+
<a name="6.2.0"></a>
|
|
30
|
+
|
|
31
|
+
# [6.2.0](https://bitbucket.org/projects/leancode-team/repos/core-js-library/compare/diff?targetBranch=refs%2Ftags%2Fv6.1.8&sourceBranch=refs%2Ftags%2Fv6.2.0) (2022-02-21)
|
|
32
|
+
|
|
33
|
+
### Features
|
|
34
|
+
|
|
35
|
+
- update packages ([e7a3cb8](https://bitbucket.org/projects/leancode-team/repos/core-js-library/commits/e7a3cb8))
|
|
36
|
+
- update packages ([f67355c](https://bitbucket.org/projects/leancode-team/repos/core-js-library/commits/f67355c))
|
|
37
|
+
|
|
38
|
+
<a name="6.1.1"></a>
|
|
39
|
+
|
|
40
|
+
## [6.1.1](https://bitbucket.org/projects/leancode-team/repos/core-js-library/compare/diff?targetBranch=refs%2Ftags%2Fv6.1.0&sourceBranch=refs%2Ftags%2Fv6.1.1) (2021-08-20)
|
|
41
|
+
|
|
42
|
+
**Note:** Version bump only for package @leancode/eslint-config
|
|
43
|
+
|
|
44
|
+
<a name="6.1.0"></a>
|
|
45
|
+
|
|
46
|
+
# [6.1.0](https://bitbucket.org/projects/leancode-team/repos/core-js-library/compare/diff?targetBranch=refs%2Ftags%2Fv6.0.0&sourceBranch=refs%2Ftags%2Fv6.1.0) (2021-08-09)
|
|
47
|
+
|
|
48
|
+
### Features
|
|
49
|
+
|
|
50
|
+
- add pluggable eslint rules for imports
|
|
51
|
+
([1dc8351](https://bitbucket.org/projects/leancode-team/repos/core-js-library/commits/1dc8351))
|
|
52
|
+
|
|
53
|
+
<a name="6.0.0"></a>
|
|
54
|
+
|
|
55
|
+
# [6.0.0](https://bitbucket.org/projects/leancode-team/repos/core-js-library/compare/diff?targetBranch=refs%2Ftags%2Fv5.2.0&sourceBranch=refs%2Ftags%2Fv6.0.0) (2021-07-05)
|
|
56
|
+
|
|
57
|
+
### Features
|
|
58
|
+
|
|
59
|
+
- update dependencies ([0fed8db](https://bitbucket.org/projects/leancode-team/repos/core-js-library/commits/0fed8db))
|
|
60
|
+
|
|
61
|
+
<a name="5.2.0"></a>
|
|
62
|
+
|
|
63
|
+
# [5.2.0](https://bitbucket.org/projects/leancode-team/repos/core-js-library/compare/diff?targetBranch=refs%2Ftags%2Fv5.1.0&sourceBranch=refs%2Ftags%2Fv5.2.0) (2021-01-14)
|
|
64
|
+
|
|
65
|
+
### Features
|
|
66
|
+
|
|
67
|
+
- update eslint ([d82764f](https://bitbucket.org/projects/leancode-team/repos/core-js-library/commits/d82764f))
|
|
68
|
+
- update typescript to 4.1
|
|
69
|
+
([d37dd16](https://bitbucket.org/projects/leancode-team/repos/core-js-library/commits/d37dd16))
|
|
70
|
+
- update typescript to 4.1.3
|
|
71
|
+
([5e125da](https://bitbucket.org/projects/leancode-team/repos/core-js-library/commits/5e125da))
|
|
72
|
+
|
|
73
|
+
<a name="5.1.0"></a>
|
|
74
|
+
|
|
75
|
+
# [5.1.0](https://bitbucket.org/projects/leancode-team/repos/core-js-library/compare/diff?targetBranch=refs%2Ftags%2Fv5.0.2&sourceBranch=refs%2Ftags%2Fv5.1.0) (2020-11-02)
|
|
76
|
+
|
|
77
|
+
### Features
|
|
78
|
+
|
|
79
|
+
- extend eslint rules ([018fae4](https://bitbucket.org/projects/leancode-team/repos/core-js-library/commits/018fae4))
|
|
80
|
+
|
|
81
|
+
<a name="5.0.2"></a>
|
|
82
|
+
|
|
83
|
+
## [5.0.2](https://bitbucket.org/projects/leancode-team/repos/core-js-library/compare/diff?targetBranch=refs%2Ftags%2Fv5.0.1&sourceBranch=refs%2Ftags%2Fv5.0.2) (2020-10-05)
|
|
84
|
+
|
|
85
|
+
### Bug Fixes
|
|
86
|
+
|
|
87
|
+
- bump ts parser version
|
|
88
|
+
([1080e75](https://bitbucket.org/projects/leancode-team/repos/core-js-library/commits/1080e75))
|
|
89
|
+
- change eslint typescript version
|
|
90
|
+
([66eaa63](https://bitbucket.org/projects/leancode-team/repos/core-js-library/commits/66eaa63))
|
|
91
|
+
- typescript builds ([d17bb0c](https://bitbucket.org/projects/leancode-team/repos/core-js-library/commits/d17bb0c))
|
|
92
|
+
|
|
93
|
+
<a name="5.0.1"></a>
|
|
94
|
+
|
|
95
|
+
## [5.0.1](https://bitbucket.org/projects/leancode-team/repos/core-js-library/compare/diff?targetBranch=refs%2Ftags%2Fv5.0.0&sourceBranch=refs%2Ftags%2Fv5.0.1) (2020-09-14)
|
|
96
|
+
|
|
97
|
+
### Bug Fixes
|
|
98
|
+
|
|
99
|
+
- tests ([a48ec0f](https://bitbucket.org/projects/leancode-team/repos/core-js-library/commits/a48ec0f))
|
|
100
|
+
|
|
101
|
+
<a name="5.0.0"></a>
|
|
102
|
+
|
|
103
|
+
# [5.0.0](https://bitbucket.org/projects/leancode-team/repos/core-js-library/compare/diff?targetBranch=refs%2Ftags%2Fv4.5.0&sourceBranch=refs%2Ftags%2Fv5.0.0) (2020-08-24)
|
|
104
|
+
|
|
105
|
+
### Bug Fixes
|
|
106
|
+
|
|
107
|
+
- tests ([c5e8edf](https://bitbucket.org/projects/leancode-team/repos/core-js-library/commits/c5e8edf))
|
|
108
|
+
|
|
109
|
+
### Features
|
|
110
|
+
|
|
111
|
+
- update to typescript 4.0
|
|
112
|
+
([271f089](https://bitbucket.org/projects/leancode-team/repos/core-js-library/commits/271f089))
|
|
113
|
+
|
|
114
|
+
### BREAKING CHANGES
|
|
115
|
+
|
|
116
|
+
- update peer dependency of TS to 4.0
|
|
117
|
+
|
|
118
|
+
<a name="4.5.0"></a>
|
|
119
|
+
|
|
120
|
+
# [4.5.0](https://bitbucket.org/projects/leancode-team/repos/core-js-library/compare/diff?targetBranch=refs%2Ftags%2Fv4.4.1&sourceBranch=refs%2Ftags%2Fv4.5.0) (2020-07-01)
|
|
121
|
+
|
|
122
|
+
### Features
|
|
123
|
+
|
|
124
|
+
- **eslint-config:** add opt-in a11y config
|
|
125
|
+
([a8b65bf](https://bitbucket.org/projects/leancode-team/repos/core-js-library/commits/a8b65bf))
|
|
126
|
+
|
|
127
|
+
<a name="4.4.1"></a>
|
|
128
|
+
|
|
129
|
+
## [4.4.1](https://bitbucket.org/projects/leancode-team/repos/core-js-library/compare/diff?targetBranch=refs%2Ftags%2Fv4.4.0&sourceBranch=refs%2Ftags%2Fv4.4.1) (2020-05-26)
|
|
130
|
+
|
|
131
|
+
**Note:** Version bump only for package @leancode/eslint-config
|
|
132
|
+
|
|
133
|
+
<a name="4.4.0"></a>
|
|
134
|
+
|
|
135
|
+
# [4.4.0](https://bitbucket.org/projects/leancode-team/repos/core-js-library/compare/diff?targetBranch=refs%2Ftags%2Fv4.3.2&sourceBranch=refs%2Ftags%2Fv4.4.0) (2020-04-22)
|
|
136
|
+
|
|
137
|
+
**Note:** Version bump only for package @leancode/eslint-config
|
|
138
|
+
|
|
139
|
+
<a name="4.3.2"></a>
|
|
140
|
+
|
|
141
|
+
## [4.3.2](https://bitbucket.org/projects/leancode-team/repos/core-js-library/compare/diff?targetBranch=refs%2Ftags%2Fv4.3.1&sourceBranch=refs%2Ftags%2Fv4.3.2) (2020-04-21)
|
|
142
|
+
|
|
143
|
+
**Note:** Version bump only for package @leancode/eslint-config
|
|
144
|
+
|
|
145
|
+
<a name="4.3.1"></a>
|
|
146
|
+
|
|
147
|
+
## [4.3.1](https://bitbucket.org/projects/leancode-team/repos/core-js-library/compare/diff?targetBranch=refs%2Ftags%2Fv4.3.0&sourceBranch=refs%2Ftags%2Fv4.3.1) (2020-04-20)
|
|
148
|
+
|
|
149
|
+
**Note:** Version bump only for package @leancode/eslint-config
|
|
150
|
+
|
|
151
|
+
<a name="4.3.0"></a>
|
|
152
|
+
|
|
153
|
+
# [4.3.0](https://bitbucket.org/projects/leancode-team/repos/core-js-library/compare/diff?targetBranch=refs%2Ftags%2Fv4.2.0&sourceBranch=refs%2Ftags%2Fv4.3.0) (2020-04-10)
|
|
154
|
+
|
|
155
|
+
### Features
|
|
156
|
+
|
|
157
|
+
- **eslint-config:** iterate linters config
|
|
158
|
+
([88dac1f](https://bitbucket.org/projects/leancode-team/repos/core-js-library/commits/88dac1f))
|
|
159
|
+
- **prettier-config:** upgrade prettier to v2
|
|
160
|
+
([866576d](https://bitbucket.org/projects/leancode-team/repos/core-js-library/commits/866576d))
|
|
161
|
+
|
|
162
|
+
<a name="4.2.0"></a>
|
|
163
|
+
|
|
164
|
+
# [4.2.0](https://bitbucket.org/projects/leancode-team/repos/core-js-library/compare/diff?targetBranch=refs%2Ftags%2Fv4.1.2&sourceBranch=refs%2Ftags%2Fv4.2.0) (2020-03-06)
|
|
165
|
+
|
|
166
|
+
**Note:** Version bump only for package @leancode/eslint-config
|
|
167
|
+
|
|
168
|
+
<a name="4.1.2"></a>
|
|
169
|
+
|
|
170
|
+
## [4.1.2](https://bitbucket.org/projects/leancode-team/repos/core-js-library/compare/diff?targetBranch=refs%2Ftags%2Fv4.1.1&sourceBranch=refs%2Ftags%2Fv4.1.2) (2020-02-17)
|
|
171
|
+
|
|
172
|
+
**Note:** Version bump only for package @leancode/eslint-config
|
|
173
|
+
|
|
174
|
+
<a name="4.1.1"></a>
|
|
175
|
+
|
|
176
|
+
## [4.1.1](https://bitbucket.org/projects/leancode-team/repos/core-js-library/compare/diff?targetBranch=refs%2Ftags%2Fv4.1.0&sourceBranch=refs%2Ftags%2Fv4.1.1) (2020-02-17)
|
|
177
|
+
|
|
178
|
+
**Note:** Version bump only for package @leancode/eslint-config
|
|
179
|
+
|
|
180
|
+
## 4.1.0 (2020-02-17)
|
|
181
|
+
|
|
182
|
+
## 4.1.0 (2020-02-06)
|
|
183
|
+
|
|
184
|
+
- v4.1.0-alpha.6 ([b8f6eb1](https://bitbucket.org/leancode-team/core-js-library/commits/b8f6eb1))
|
|
185
|
+
|
|
186
|
+
## 4.1.0-alpha.5 (2020-02-06)
|
|
187
|
+
|
|
188
|
+
- Relax linters versioning ([6ff5707](https://bitbucket.org/leancode-team/core-js-library/commits/6ff5707))
|
|
189
|
+
- v4.1.0-alpha.5 ([981a306](https://bitbucket.org/leancode-team/core-js-library/commits/981a306))
|
|
190
|
+
|
|
191
|
+
## 4.1.0-alpha.4 (2020-02-06)
|
|
192
|
+
|
|
193
|
+
- Fix linters configuration and upgrade
|
|
194
|
+
([72ee3c5](https://bitbucket.org/leancode-team/core-js-library/commits/72ee3c5))
|
|
195
|
+
- v4.1.0-alpha.4 ([d778eb6](https://bitbucket.org/leancode-team/core-js-library/commits/d778eb6))
|
|
196
|
+
|
|
197
|
+
## 4.1.0-alpha.1 (2019-11-06)
|
|
198
|
+
|
|
199
|
+
- Extend typescript default configuration
|
|
200
|
+
([3c3024e](https://bitbucket.org/leancode-team/core-js-library/commits/3c3024e))
|
|
201
|
+
- v4.1.0-alpha.1 ([e51eab2](https://bitbucket.org/leancode-team/core-js-library/commits/e51eab2))
|
|
202
|
+
|
|
203
|
+
## 4.1.0-alpha.0 (2019-11-06)
|
|
204
|
+
|
|
205
|
+
- Update linters dependencies ([aa28dce](https://bitbucket.org/leancode-team/core-js-library/commits/aa28dce))
|
|
206
|
+
- v4.1.0-alpha.0 ([5fd0ce1](https://bitbucket.org/leancode-team/core-js-library/commits/5fd0ce1))
|
|
207
|
+
|
|
208
|
+
## 4.0.0 (2019-10-23)
|
|
209
|
+
|
|
210
|
+
- v4.0.0 ([1d5b7a4](https://bitbucket.org/leancode-team/core-js-library/commits/1d5b7a4))
|
|
211
|
+
|
|
212
|
+
## <small>3.4.95 (2019-09-20)</small>
|
|
213
|
+
|
|
214
|
+
- Add build system and bump packages versions
|
|
215
|
+
([097d5c3](https://bitbucket.org/leancode-team/core-js-library/commits/097d5c3))
|
|
216
|
+
- Add linting configuration ([d047ffa](https://bitbucket.org/leancode-team/core-js-library/commits/d047ffa))
|
|
217
|
+
- Make linters configuration more detailed
|
|
218
|
+
([617dde4](https://bitbucket.org/leancode-team/core-js-library/commits/617dde4))
|
|
219
|
+
- Unignore eslint configuration ([b26380f](https://bitbucket.org/leancode-team/core-js-library/commits/b26380f))
|
|
220
|
+
- Update linters dependencies ([07d26dc](https://bitbucket.org/leancode-team/core-js-library/commits/07d26dc))
|
|
221
|
+
- v3.4.95 ([c84752b](https://bitbucket.org/leancode-team/core-js-library/commits/c84752b))
|
package/README.md
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# eslint-config
|
|
2
|
+
|
|
3
|
+
This library was generated with [Nx](https://nx.dev).
|
|
4
|
+
|
|
5
|
+
## Building
|
|
6
|
+
|
|
7
|
+
Run `nx build eslint-config` to build the library.
|
|
8
|
+
|
|
9
|
+
## Running unit tests
|
|
10
|
+
|
|
11
|
+
Run `nx test eslint-config` to execute the unit tests via [Jest](https://jestjs.io).
|
package/package.json
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@leancodepl/eslint-config",
|
|
3
|
+
"version": "7.1.0",
|
|
4
|
+
"main": "src/index.json",
|
|
5
|
+
"peerDependencies": {
|
|
6
|
+
"@typescript-eslint/eslint-plugin": ">=5.3.1",
|
|
7
|
+
"@typescript-eslint/parser": ">=5.3.1",
|
|
8
|
+
"eslint": ">=8.9.0",
|
|
9
|
+
"eslint-config-prettier": ">=8.1.0",
|
|
10
|
+
"eslint-plugin-import": ">=2.22.1",
|
|
11
|
+
"eslint-plugin-jsx-a11y": ">=6.3.1",
|
|
12
|
+
"eslint-plugin-react": ">=7.21.2",
|
|
13
|
+
"eslint-plugin-react-hooks": ">=4.1.2",
|
|
14
|
+
"eslint-plugin-unused-imports": ">=2.0.0",
|
|
15
|
+
"prettier": ">=2.1.2",
|
|
16
|
+
"typescript": ">=4.5.5"
|
|
17
|
+
}
|
|
18
|
+
}
|
package/project.json
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@leancodepl/eslint-config",
|
|
3
|
+
"$schema": "../../../node_modules/nx/schemas/project-schema.json",
|
|
4
|
+
"sourceRoot": "packages/linters/eslint-config/src",
|
|
5
|
+
"projectType": "library",
|
|
6
|
+
"targets": {
|
|
7
|
+
"build": {
|
|
8
|
+
"command": "node tools/scripts/copy.mjs packages/linters/eslint-config {args.outputPath}",
|
|
9
|
+
"configurations": {
|
|
10
|
+
"args": {
|
|
11
|
+
"outputPath": "{options.outputPath}"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
"options": { "outputPath": "dist/packages/linters/eslint-config" }
|
|
15
|
+
},
|
|
16
|
+
"publish": {
|
|
17
|
+
"command": "node tools/scripts/publish.mjs @leancodepl/eslint-config {args.registry} {args.ver} {args.tag}",
|
|
18
|
+
"dependsOn": ["build"]
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"tags": []
|
|
22
|
+
}
|
package/src/index.json
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": ["plugin:import/typescript", "prettier"],
|
|
3
|
+
"plugins": ["import"],
|
|
4
|
+
"rules": {
|
|
5
|
+
"@typescript-eslint/no-unused-vars": "off",
|
|
6
|
+
"import/first": "error",
|
|
7
|
+
"import/newline-after-import": "error",
|
|
8
|
+
"import/no-anonymous-default-export": "error",
|
|
9
|
+
"import/no-duplicates": "error",
|
|
10
|
+
"import/no-extraneous-dependencies": "error",
|
|
11
|
+
"import/no-named-default": "error",
|
|
12
|
+
"import/no-self-import": "error",
|
|
13
|
+
"import/no-useless-path-segments": [
|
|
14
|
+
"error",
|
|
15
|
+
{
|
|
16
|
+
"noUselessIndex": true
|
|
17
|
+
}
|
|
18
|
+
],
|
|
19
|
+
"import/order": [
|
|
20
|
+
"error",
|
|
21
|
+
{
|
|
22
|
+
"groups": [["builtin", "external"], "internal", ["index", "sibling", "parent"], "object"],
|
|
23
|
+
"pathGroups": [
|
|
24
|
+
{
|
|
25
|
+
"pattern": "react",
|
|
26
|
+
"group": "external",
|
|
27
|
+
"position": "before"
|
|
28
|
+
}
|
|
29
|
+
],
|
|
30
|
+
"newlines-between": "never",
|
|
31
|
+
"alphabetize": {
|
|
32
|
+
"order": "asc",
|
|
33
|
+
"caseInsensitive": true
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
],
|
|
37
|
+
"react/jsx-uses-react": "off",
|
|
38
|
+
"react/jsx-uses-vars": "error"
|
|
39
|
+
},
|
|
40
|
+
"settings": {
|
|
41
|
+
"import/internal-regex": "^react$"
|
|
42
|
+
}
|
|
43
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
{
|
|
2
|
+
"parser": "@typescript-eslint/parser",
|
|
3
|
+
"plugins": ["@typescript-eslint", "react", "react-hooks"],
|
|
4
|
+
"extends": [
|
|
5
|
+
"eslint:recommended",
|
|
6
|
+
"plugin:@typescript-eslint/eslint-recommended",
|
|
7
|
+
"plugin:@typescript-eslint/recommended",
|
|
8
|
+
"plugin:react/recommended",
|
|
9
|
+
"prettier"
|
|
10
|
+
],
|
|
11
|
+
"rules": {
|
|
12
|
+
"no-var": "off",
|
|
13
|
+
"no-console": [
|
|
14
|
+
"warn",
|
|
15
|
+
{
|
|
16
|
+
"allow": ["warn", "error", "assert"]
|
|
17
|
+
}
|
|
18
|
+
],
|
|
19
|
+
"max-params": [
|
|
20
|
+
"error",
|
|
21
|
+
{
|
|
22
|
+
"max": 4
|
|
23
|
+
}
|
|
24
|
+
],
|
|
25
|
+
"arrow-body-style": "error",
|
|
26
|
+
"no-useless-rename": "error",
|
|
27
|
+
"@typescript-eslint/explicit-function-return-type": "off",
|
|
28
|
+
"@typescript-eslint/no-explicit-any": "off",
|
|
29
|
+
"@typescript-eslint/prefer-interface": "off",
|
|
30
|
+
"@typescript-eslint/explicit-member-accessibility": "off",
|
|
31
|
+
"@typescript-eslint/no-parameter-properties": "off",
|
|
32
|
+
"@typescript-eslint/no-empty-function": "off",
|
|
33
|
+
"@typescript-eslint/no-use-before-define": "off",
|
|
34
|
+
"@typescript-eslint/no-var-requires": "off",
|
|
35
|
+
"@typescript-eslint/camelcase": "off",
|
|
36
|
+
"@typescript-eslint/no-empty-interface": "off",
|
|
37
|
+
"@typescript-eslint/no-inferrable-types": "off",
|
|
38
|
+
"@typescript-eslint/explicit-module-boundary-types": "off",
|
|
39
|
+
"@typescript-eslint/ban-types": "off",
|
|
40
|
+
"react/prop-types": "off",
|
|
41
|
+
"react/display-name": "off",
|
|
42
|
+
"react/jsx-curly-brace-presence": "warn",
|
|
43
|
+
"react/jsx-fragments": "warn",
|
|
44
|
+
"react/jsx-sort-props": [
|
|
45
|
+
"warn",
|
|
46
|
+
{
|
|
47
|
+
"callbacksLast": true,
|
|
48
|
+
"shorthandFirst": true,
|
|
49
|
+
"shorthandLast": false,
|
|
50
|
+
"ignoreCase": true,
|
|
51
|
+
"noSortAlphabetically": false,
|
|
52
|
+
"reservedFirst": true
|
|
53
|
+
}
|
|
54
|
+
],
|
|
55
|
+
"react/react-in-jsx-scope": "off",
|
|
56
|
+
"react-hooks/rules-of-hooks": "error",
|
|
57
|
+
"react-hooks/exhaustive-deps": "error"
|
|
58
|
+
},
|
|
59
|
+
"settings": {
|
|
60
|
+
"import/internal-regex": "^react$"
|
|
61
|
+
},
|
|
62
|
+
"env": {
|
|
63
|
+
"browser": true
|
|
64
|
+
}
|
|
65
|
+
}
|