anza-xyz / anza-xyz/kit

Enforce type-only imports via linter

Aperta
#1,045 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
enhancement
Lingua principale
TypeScript
Stelle
695
Fork
210
Merge medio
21h 33m
PR unite (30g)
90

Descrizione

## Motivation

https://app.graphite.com/github/pr/anza-xyz/kit/1035/Add-a-function-to-flatten-transaction-plan-results#comment-PRRC_kwDONc0xOc6YXyOR

## Details

Add a linter (I guess this means this really needs to be a pull request for https://github.com/anza-xyz/eslint-config-solana/) that enforces `import type { Foo } from 'foo'` when `Foo` is only used in a type position. Make sure that it works with the import sorter, and has an autofix.

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.