Skip to content

chore(lint): forbid local withTimeout copies (fixes #457) - #503

Merged
Jaydbrown merged 2 commits into
conduit-protocol:mainfrom
ZacLou:fix/issue-457-withtimeout-lint
Sep 3, 2026
Merged

chore(lint): forbid local withTimeout copies (fixes #457)#503
Jaydbrown merged 2 commits into
conduit-protocol:mainfrom
ZacLou:fix/issue-457-withtimeout-lint

Conversation

@ZacLou

@ZacLou ZacLou commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

Prevents stale branches from reintroducing local withTimeout copies by adding a no-restricted-syntax rule.

  • Bans FunctionDeclaration named withTimeout
  • Bans const/let/var withTimeout assigned a function or arrow function
  • Exempts the canonical implementation in lib/with-timeout.ts

Closes #457

Add no-restricted-syntax rule that bans:
- FunctionDeclaration named withTimeout
- VariableDeclarator named withTimeout initialized with a function or arrow function

Allow the canonical implementation in lib/with-timeout.ts via overrides.

Closes conduit-protocol#457
@Jaydbrown
Jaydbrown merged commit f90e9f3 into conduit-protocol:main Sep 3, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bound the remaining local withTimeout copies to lib/with-timeout.ts

2 participants