microsoft / microsoft/typespec

Create a lint rule that disallows destructuring parameters

Open
#6,953 0 comments 0 reactions 1 assignee Claimed by @maorleger View on GitHub
emitter-framework feature triaged:core
Dominant language
Java
Stars
5.9k
Forks
394
Avg merge
1d 23h
Merged PRs (30d)
104

Description

Destructuring parameters rebinds them to new names and loses reactivity (as far as I understand it).

To help us avoid this in the future, a lint rule that disallows it would be helpful

Can do, and yeah it would not be obvious to future me that destructuring has this side-effect of losing reactivity so some sort of linter rule would be helpful 🙏

_Originally posted by @maorleger in https://github.com/microsoft/typespec/pull/6951#discussion_r2038392647_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.