Azure / Azure/typespec-azure

Add linting rule when using `@encode(string)` on types that don't need it

Open
#1,277 0 comments 1 reaction 0 assignees View on GitHub
feature lib:azure-core triaged:core
Dominant language
TypeScript
Stars
27
Forks
90
Avg merge
1d 22h
Merged PRs (30d)
156

Description

```
@encode(string) id: int32;
```

probably show that the service is not doing something good

Contributor guide

Open the contributing guide

Research direction

No file or test is named. Start by locating the lint-rule entry point and existing rule tests, then reproduce the @encode(string) id: int32 example. Done means the linter reports this unnecessary encoding with a clear diagnostic and the behavior is covered by a test.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.