no-await-sync-query
: false positive in non-test code
#447
Labels
no-await-sync-query
: false positive in non-test code
#447
Plugin version
4.6.0
ESLint version
7.17.0
Node.js version
12.13.1
npm/yarn version
6.12.1
Operating system
macOS Catalina, Version 10.15.7
Bug description
Related to: #122
We're running into a false positive from this rule triggering outside of test files. In particular, it seems to match on any async function that starts with
getBy*
, regardless of whether the function is fromtesting-library
.Steps to reproduce
This applies to any other function that has the naming convention
getBy*
. It's possible to rename the function for our use case, but I wouldn't expect the rule to trigger when this file doesn't usetesting-library
.Error output/screenshots
Output from running ESLint:
ESLint configuration
Rule(s) affected
no-await-sync-query
Anything else?
#208 closed #122, which seems to have resolved this for
await-async-query
, but it doesn't look like it changedno-await-sync-query
.Do you want to submit a pull request to fix this bug?
No
The text was updated successfully, but these errors were encountered: