-
Notifications
You must be signed in to change notification settings - Fork 150
Move rules settings to ESLint shared config: refactor await-async-query and no-await-sync-query #260
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Move rules settings to ESLint shared config: refactor await-async-query and no-await-sync-query #260
Changes from all commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
cb8c50c
refactor(no-await-sync-query): use custom rule creator
Belco90 501f604
refactor(no-await-sync-query): improve error message
Belco90 4279c72
test(no-await-sync-query): check error location in invalid cases
Belco90 19fbcf3
refactor(no-await-sync-query): catch sync queries with detection helper
Belco90 1364182
test(no-await-sync-query): use more realistic scenarios
Belco90 79973d5
test(no-await-sync-query): add more cases for custom queries and sett…
Belco90 9447804
refactor(await-async-query): use custom rule creator
Belco90 2cdafb7
refactor(await-async-query): improve error message
Belco90 b4f506d
feat: new detection helpers for findBy queries
Belco90 6ac7555
refactor(await-async-query): detection helpers + aggressive reporting
Belco90 ee1b791
test(await-async-query): add cases for custom queries
Belco90 0260208
test(await-async-query): add more cases for custom queries
Belco90 12d5c67
test(await-async-query): check errors locations
Belco90 10af260
test(await-async-query): mix built-in and custom queries
Belco90 c13aea1
test(await-async-query): non-matching query case
Belco90 743f29d
feat(await-async-query): report query wrappers
Belco90 ae51b6a
refactor(await-async-query): extract ast utils for functions
Belco90 30caeea
test(await-async-query): cases for arrow functions
Belco90 0312ec9
refactor(await-async-query): extract ast util for promise handled
Belco90 e0a8e42
test(await-async-query): increase coverage
Belco90 11e1b1f
refactor(await-async-query): rename isPromiseResolved to hasChainedThen
Belco90 03131e0
docs(await-async-query): update rule description and examples
Belco90 2cce123
docs(await-async-query): minor improvements
Belco90 2d5438a
refactor: minor type fix
Belco90 e8b93ef
docs(await-async-query): more fixes
Belco90 7fa901d
docs(await-async-query): wrong return type
Belco90 bce0486
refactor(await-async-query): check regex more efficiently
Belco90 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Final detection helpers to complete requirement 4: aggressive query reporting