-
Notifications
You must be signed in to change notification settings - Fork 153
Closed
Labels
awaiting responseWaiting for a reply from the OPWaiting for a reply from the OP
Description
Have you read the Troubleshooting section?
Yes
Plugin version
v5.6.0
ESLint version
v7.32.0
Node.js version
v16.10.0
package manager and version
pnpm v6.16.0
Operating system
macOS Monterey, version 12.3.1
Bug description
no-await-sync-query yells on unrelated testing-library code.
Steps to reproduce
- enable the rule
- create
getBySomethingfunction - call the new
getBySomethingfunction
Error output/screenshots
135:41 error `getById` query is sync so it does not need to be awaited testing-library/no-await-sync-query
ESLint configuration
{
"plugins": [
"jest",
// ...
"testing-library",
"jest-dom"
],
"extends": [
// ...
"plugin:testing-library/react",
"plugin:jest-dom/recommended"
],
"rules": {
// ...
"testing-library/no-await-sync-events": "error",
"testing-library/no-global-regexp-flag-in-query": "error",
"testing-library/no-manual-cleanup": "error",
"testing-library/prefer-explicit-assert": "error",
"testing-library/prefer-user-event": "error",
"testing-library/no-render-in-setup": "off",
"testing-library/render-result-naming-convention": "off"
}
}Rule(s) affected
no-await-sync-query
Anything else?
No response
Do you want to submit a pull request to fix this bug?
No
Metadata
Metadata
Assignees
Labels
awaiting responseWaiting for a reply from the OPWaiting for a reply from the OP


