epic: typescript migration

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

@ChayanDass がすでに取り組んでいます。

2026年3月18日 から。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
20/100
issue の種類
リファクタリング
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
javascript, react, typescript
領域
frontend

調査の方向性

この issue の TypeScript Migration Guidelines から始め、現在の移行範囲を把握するために tsconfig.json を確認してください。コードベースが完全に移行され、列挙されている TypeScript、linting、testing、依存関係、互換性に関するガイドラインに従っている場合にのみ、issue は完了となります。

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

説明

effort/months Epic exp/intermediate help wanted kind/architecture kind/enhancement P1 status/ready

TypeScript Migration Guidelines

Context:
We are migrating our codebase to TypeScript. This issue will remain open until the migration is fully complete. Please ensure that all new contributions follow these guidelines to maintain consistency and code quality.

File Types & Naming Conventions

  • File Types:
    • Use TypeScript files only: use .tsx for React components and .ts for non-React components.
  • Filename Convention:
    • Use kebab-case for filenames (lowercase only, words separated by hyphens).

Code Standards

  • Component Style:
    • All components must be functional.
    • Do not use prop-types or .defaultProps as these are unnecessary in a TypeScript codebase.
  • Imports:
    • All imports must include the .js extension.
  • State Management & Bundles:
    • Do not use redux-bundler or redux-bundler-react.
    • Do not add new bundles; if possible, create a hook or use context instead.
  • Internationalization:
    • Do not use withTransation; use useTranslation instead.

Project Configuration

  • TypeScript Setup:
    • Add new TypeScript files to tsconfig.json.
    • Include any dependent files that require type checking.
    • If an existing file is too large or requires extensive changes, it can be temporarily ignored until someone can convert it properly.

Additional Guidelines for Contributors

  • Linting & Formatting:
    • Follow the project’s ESLint and Standard (we're trying to get to a point where we can lint using aegir lint) configurations to maintain a consistent code style.
  • Testing:
    • Include unit tests & e2e tests with 100% coverage for all new code. This ensures that our code remains robust during the migration.
  • Documentation:
    • Update or add documentation as necessary to reflect changes or new patterns introduced during the migration.
  • Dependencies:
    • Verify that any new third-party libraries include proper TypeScript type definitions.
  • Backwards Compatibility:
    • Avoid breaking changes. When updating legacy code, strive to maintain compatibility until the entire file can be migrated.
  • Questions & Support:
    • If you have any questions or need clarification on migration specifics, please ping @SgtPooki.

Your cooperation in following these guidelines is essential for a smooth transition to a fully TypeScript codebase. Thank you for your contributions!

主要言語
JavaScript
スター
1.6k
フォーク
539
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

ipfs/ipfs-webui のほかの issue

ipfs/ipfs-webui の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

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

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