microsoft / microsoft/TypeScript
Allow Program#getSemanticDiagnostics to ignore @ts-ignore
まだ誰も着手していません。
- 主要言語
- Go
- スター
- 111k
- フォーク
- 14.4k
- 平均マージ
- 1日 19時間
- マージ済み PR(30日)
- 117
説明
Search Terms
ts-ignore
Suggestion
Add a parameter to program.getSemanticDiagnostics to turn off filtering by // @ts-ignore comments.
Use Cases
#25166 proposes an option to report unused // @ts-ignore comments. Since this would require yet another compilerOption, I think this should better be done by external tooling like a linter.
Currently there is no way for external tools to know if there would actually be a semantic diagnostic without the comment. With the proposed API one could check that there is at least one diagnostic per ignore comment.
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
Program#getSemanticDiagnostics API から開始し、@ts-ignore コメントがセマンティック診断をどのようにフィルタリングするかを調べます。API がこのフィルタリングを無効にするオプションを受け付け、外部ツールがそうでなければ抑制される診断を観測できるようになれば完了です。この issue では、実行するファイルやテストは指定されていません。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- typescript
- 領域
- compilers
- issue の種類
- 機能追加
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100