Skip to content

feat(eslint-plugin): add rule [strict-void-return] #9707

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

Open
wants to merge 45 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
76c295b
feat(eslint-plugin): add rule [strict-void-return]
phaux Aug 2, 2024
5454727
chore: generate configs
phaux Aug 2, 2024
38e2d18
better handling of base class/interfaces
phaux Aug 2, 2024
cb58ccc
update docs
phaux Aug 2, 2024
75da13d
restructure some code
phaux Aug 2, 2024
db1bc42
Merge branch 'main' into strict-void-return
phaux Aug 4, 2024
e0ef02d
Merge branch 'main' into strict-void-return
phaux Aug 5, 2024
2d82282
update to new RuleTester
phaux Aug 5, 2024
8cea97b
more detailed messages
phaux Aug 9, 2024
c16c874
Merge branch 'main' into strict-void-return
phaux Aug 9, 2024
d8f2b03
more coverage
phaux Aug 9, 2024
b353dc9
lint fix
phaux Aug 10, 2024
3de72ca
fix addEventListener test
phaux Aug 10, 2024
ae1fd10
Merge branch 'main' into strict-void-return
phaux Aug 15, 2024
cc7a23e
fix node imports
phaux Aug 15, 2024
fe7a62e
Merge branch 'main' into strict-void-return
phaux Sep 14, 2024
a335f3c
simplify options
phaux Sep 15, 2024
4d8bf19
Apply suggestions from code review
phaux Sep 18, 2024
31434c8
Merge branch 'main' into strict-void-return
phaux Sep 18, 2024
4075db2
docs
phaux Sep 18, 2024
4c9a620
Merge branch 'main' into strict-void-return
phaux Nov 4, 2024
f4f68f9
update snapshots
phaux Nov 4, 2024
f4bc0bc
fix lint errors
phaux Nov 7, 2024
458ccf5
simplify messages
phaux Nov 7, 2024
335a7cf
move option descriptions to schema
phaux Nov 7, 2024
6981f67
update snapshots
phaux Nov 7, 2024
3c0484f
Merge branch 'main' into strict-void-return
phaux Dec 7, 2024
851f472
update messages
phaux Dec 7, 2024
21b4020
don't use node:assert
phaux Dec 13, 2024
8687130
simplify examples
phaux Dec 21, 2024
3f9d977
update snapshots
phaux Dec 21, 2024
172548c
remove autofixes
phaux Dec 21, 2024
a484413
Merge branch 'main' into strict-void-return
phaux Dec 22, 2024
bb4c90b
remove unused function
phaux Jan 7, 2025
5d76db0
Merge branch 'main' into strict-void-return
phaux Jan 7, 2025
5c56d72
Merge branch 'main' into strict-void-return
phaux Mar 9, 2025
55b6378
recreate from main
phaux Apr 24, 2025
600422e
Merge branch 'main' into strict-void-return
phaux Apr 24, 2025
f72849a
take ESTree nodes in utils
phaux Apr 24, 2025
b43a125
add tests
phaux Apr 24, 2025
76c3b30
add test
phaux Apr 24, 2025
75ac458
remove dynamic messages
phaux Apr 25, 2025
2f0326d
remove unnecessary code
phaux Apr 25, 2025
8b20c4b
remove allowReturnPromiseIfTryCatch
phaux Apr 25, 2025
74dfcba
update docs
phaux Apr 25, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion packages/eslint-plugin/docs/rules/no-misused-promises.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -311,4 +311,5 @@ You might consider using [ESLint disable comments](https://eslint.org/docs/lates

## Related To

- [`no-floating-promises`](./no-floating-promises.mdx)
- [`strict-void-return`](./strict-void-return.mdx) - A superset of this rule's `checksVoidReturn` option which also checks for non-Promise values.
- [`no-floating-promises`](./no-floating-promises.mdx) - Warns about unhandled promises in _statement_ positions.
Loading
Loading