microsoft / microsoft/TypeScript

Suggestion: Config files authored in JS should automatically have intellisense support

オープン
#35,046 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

Suggestion
主要言語
Go
スター
111k
フォーク
14.3k
平均マージ
2日 4時間
マージ済み PR(30日)
132

説明

Some libraries (e.g. Babel, Webpack, ESLint) use JS files for their config files.

We don't automatically provide IntelliSense support for these - however, the existing definitions (at least for Babel and Webpack) do provide types that describe the module shape of the files, so they can be manually set up today with a JSDoc comment.

It may be possible to provide a mechanism for associating these config files with their @types packages, and allowing those packages to specify that a given type expresses the module shape of the config file.

Courtesy of @uniqueiniquity

First suggested here: https://developercommunity.visualstudio.com/content/idea/385119/better-webpack-support.html

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

issue で説明されている手動の JSDoc セットアップと、@types の Babel および Webpack の定義が config モジュールの形状をどのように表現しているかを確認してください。JavaScript の config ファイル用の関連付けメカニズムを定義して実装し、JSDoc コメントなしで IntelliSense が提供されることを検証してください。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
javascript, typescript
領域
developer-experience, tooling
issue の種類
機能追加
難易度
5/5
見積もり時間
1週間以上
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
25/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。