anza-xyz / anza-xyz/kit

Enforce type-only imports via linter

未關閉
#1,045 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
enhancement
主要語言
TypeScript
星號
695
分支
210
平均合併
21 小時 33 分鐘
30 天內合併 PR
90

描述

## 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.

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。