Enforce restrict-try-block lint rule - #38
Merged
Merged
Conversation
rdlabo
marked this pull request as ready for review
August 14, 2026 06:05
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
@rdlabo/rules/restrict-try-blockwith the strict fleet defaults@rdlabo/eslint-plugin-rulesto 21.2.6 and align its Angular tooling dependenciestryblocks andPromise.resolve()escape hatches with explicit async boundariesWhy
The shared Workers toolkit should enforce the same narrow error-boundary policy as its consumers. Version 21.2.6 also rejects
Promise.resolve()escape hatches, so existing code needed to express Promise rejection handling directly while retaining the synchronous failure behavior of the previoustryblocks.The plugin statically loads its Angular template rule without declaring the parser dependency, so the parser is declared explicitly. Angular peers are pinned to the 21.x toolchain, and their Node requirement is recorded separately in
devEngineswithout narrowing the published runtime support.Impact
There are no intended public API changes. Error handling remains fail-soft or retrying where it was before, including callbacks and bindings that throw before returning a Promise.
Validation
npm cinpm run lintnpm run typechecknpm test(64 files, 461 tests)npm run format:checknpm run buildgit diff --check