Thanks to visit codestin.com
Credit goes to Github.com

Skip to content

feat(lint/js): add noReturnInFinally#9022

Draft
dyc3 wants to merge 2 commits intomainfrom
dyc3/no-return-in-finally
Draft

feat(lint/js): add noReturnInFinally#9022
dyc3 wants to merge 2 commits intomainfrom
dyc3/no-return-in-finally

Conversation

@dyc3
Copy link
Contributor

@dyc3 dyc3 commented Feb 10, 2026

Summary

Port https://github.com/eslint-community/eslint-plugin-promise/blob/main/docs/rules/no-return-in-finally.md

Stacked because it relies on the rule source added in the previous PR.

Generated by sonnet 4.5

Test Plan

snapshot tests were copied from the source rule's tests

Docs

Copy link
Contributor Author

dyc3 commented Feb 10, 2026

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

This stack of pull requests is managed by Graphite. Learn more about stacking.

@changeset-bot
Copy link

changeset-bot bot commented Feb 10, 2026

🦋 Changeset detected

Latest commit: c0a0b97

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 13 packages
Name Type
@biomejs/biome Patch
@biomejs/cli-win32-x64 Patch
@biomejs/cli-win32-arm64 Patch
@biomejs/cli-darwin-x64 Patch
@biomejs/cli-darwin-arm64 Patch
@biomejs/cli-linux-x64 Patch
@biomejs/cli-linux-arm64 Patch
@biomejs/cli-linux-x64-musl Patch
@biomejs/cli-linux-arm64-musl Patch
@biomejs/wasm-web Patch
@biomejs/wasm-bundler Patch
@biomejs/wasm-nodejs Patch
@biomejs/backend-jsonrpc Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions github-actions bot added A-CLI Area: CLI A-Project Area: project A-Linter Area: linter L-JavaScript Language: JavaScript and super languages A-Diagnostic Area: diagnostocis labels Feb 10, 2026
@dyc3 dyc3 force-pushed the dyc3/no-return-in-finally branch from 3d6e1aa to 29bda1e Compare February 10, 2026 15:25
@dyc3 dyc3 marked this pull request as ready for review February 10, 2026 15:25
@dyc3 dyc3 marked this pull request as draft February 10, 2026 15:26
@dyc3 dyc3 force-pushed the dyc3/no-return-in-finally branch from 29bda1e to eb9bcb2 Compare February 10, 2026 15:30
@dyc3 dyc3 force-pushed the dyc3/no-return-in-finally branch from eb9bcb2 to c0a0b97 Compare February 10, 2026 16:19
@dyc3 dyc3 marked this pull request as ready for review February 10, 2026 16:22
@siketyan
Copy link
Member

I think this won't detect return statements in a nested block, including inside an if statement.

@dyc3 dyc3 marked this pull request as draft February 10, 2026 17:36
@dyc3
Copy link
Contributor Author

dyc3 commented Feb 10, 2026

The source rule also doesn't do that. I don't know if that's intentional though.

Base automatically changed from dyc3/no-nested-promises to main February 11, 2026 15:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-CLI Area: CLI A-Diagnostic Area: diagnostocis A-Linter Area: linter A-Project Area: project L-JavaScript Language: JavaScript and super languages

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants