Azure / Azure/typespec-azure

Azure Core linter rules for unions

Open
#468 1 comment 0 reactions 0 assignees View on GitHub
design:accepted linter
Dominant language
TypeScript
Stars
27
Forks
90
Avg merge
1d 21h
Merged PRs (30d)
164

Description

There is plenty of union cases that are not nicely representable in many languages, I don't believe we have any linter rules today guiding here.

```ts
union A {
string,
{name: string}
}
```

Contributor guide

Open the contributing guide

Research direction

The issue does not name files, tests, or an entry point. Start by locating the existing Azure Core linter rules and how union cases are tested, then clarify which union shapes need guidance, including the string-and-object example. Done means the agreed union patterns have linter rules with tests covering them.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
compilers
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.