@foray1010/eslint-config 6.1.3 → 6.2.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 +10 -0
- package/package.json +2 -2
- package/presets/react.js +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,16 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [6.2.0](https://github.com/foray1010/common-presets/compare/@foray1010/eslint-config@6.1.3...@foray1010/eslint-config@6.2.0) (2022-04-05)
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
- enable testing-library/prefer-user-event ([5a1de13](https://github.com/foray1010/common-presets/commit/5a1de1348fbc591a35559d5710185487d6b31a87))
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
- disable no-await-sync-events for @testing-library/user-event v14 ([372a3b5](https://github.com/foray1010/common-presets/commit/372a3b597f5cca2f53bbc895cd0e3da3c051263a))
|
|
15
|
+
|
|
6
16
|
### [6.1.3](https://github.com/foray1010/common-presets/compare/@foray1010/eslint-config@6.1.2...@foray1010/eslint-config@6.1.3) (2022-03-20)
|
|
7
17
|
|
|
8
18
|
### Bug Fixes
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package",
|
|
3
3
|
"name": "@foray1010/eslint-config",
|
|
4
|
-
"version": "6.
|
|
4
|
+
"version": "6.2.0",
|
|
5
5
|
"homepage": "https://github.com/foray1010/common-presets/tree/master/packages/eslint-config#readme",
|
|
6
6
|
"bugs": "https://github.com/foray1010/common-presets/issues",
|
|
7
7
|
"repository": {
|
|
@@ -48,5 +48,5 @@
|
|
|
48
48
|
"publishConfig": {
|
|
49
49
|
"access": "public"
|
|
50
50
|
},
|
|
51
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "4ef900b508bad3ab5f5c29a904ddd9021af43310"
|
|
52
52
|
}
|
package/presets/react.js
CHANGED
|
@@ -51,7 +51,6 @@ module.exports = {
|
|
|
51
51
|
plugins: ['eslint-plugin-jest-dom', 'eslint-plugin-testing-library'],
|
|
52
52
|
rules: {
|
|
53
53
|
// avoid using unnecessary `await` as workaround for `not wrapped in act(...)` warnings
|
|
54
|
-
'testing-library/no-await-sync-events': 'error',
|
|
55
54
|
'testing-library/no-wait-for-empty-callback': 'error',
|
|
56
55
|
// avoid side effects inside `waitFor`
|
|
57
56
|
'testing-library/no-wait-for-snapshot': 'error',
|
|
@@ -61,6 +60,8 @@ module.exports = {
|
|
|
61
60
|
'testing-library/prefer-presence-queries': 'error',
|
|
62
61
|
// using `screen` to avoid name collision
|
|
63
62
|
'testing-library/prefer-screen-queries': 'error',
|
|
63
|
+
// prefer @testing-library/user-event over fireEvent
|
|
64
|
+
'testing-library/prefer-user-event': 'error',
|
|
64
65
|
// as `wait` is deprecated
|
|
65
66
|
'testing-library/prefer-wait-for': 'error',
|
|
66
67
|
},
|