epic: typescript migration
@ChayanDass 已经在做这个了。
开始于 2026年3月18日。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 20/100
- Issue 类型
- 重构
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- javascript, react, typescript
- 领域
- frontend
调研方向
从本 issue 中的 TypeScript Migration Guidelines 开始,并检查 tsconfig.json 以了解当前的迁移范围。只有在代码库完成全面迁移,并遵循所列出的 TypeScript、linting、测试、依赖项和兼容性指南后,该 issue 才算完成。
由索引模型根据 Issue 内容生成。
描述
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
.tsxfor React components and.tsfor non-React components.
- Use TypeScript files only: use
- 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-typesor.defaultPropsas these are unnecessary in a TypeScript codebase.
- Imports:
- All imports must include the
.jsextension.
- All imports must include the
- State Management & Bundles:
- Do not use
redux-bundlerorredux-bundler-react. - Do not add new bundles; if possible, create a hook or use context instead.
- Do not use
- Internationalization:
- Do not use
withTransation; useuseTranslationinstead.
- Do not use
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.
- Add new TypeScript files to
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.
- Follow the project’s ESLint and Standard (we're trying to get to a point where we can lint using
- 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,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
ipfs/ipfs-webui 的其他 Issue
-
need/triage
难度 5/5 一周以上 新手友好度 25/100
ipfs/ipfs-webui#2454 ·
-
need/triage
难度 1/5 1 小时以内 新手友好度 45/100
ipfs/ipfs-webui#2391 · 3 条评论 ·
-
effort/days exp/intermediate help wanted P2 status/blocked
难度 5/5 一周以上 新手友好度 25/100
ipfs/ipfs-webui#2380 · 6 条评论 · 1 个 reaction ·
-
难度 4/5 3-5 天 新手友好度 28/100
ipfs/ipfs-webui#2359 · 3 条评论 · 1 个 reaction ·
-
feat: create shortcut component that can be used on any page可能已有人在做 @george-hub331 于 588 天前认领。 未关闭P3
难度 4/5 3-5 天 新手友好度 35/100
ipfs/ipfs-webui#2350 · 2 条评论 ·
相似的 Issue
-
QA
难度 2/5 1-3 小时 新手友好度 68/100
CSIS-iLab/more-red-ink#164 ·
维护者通常 1 天内回复
-
area:filesystem bug need-triage
难度 2/5 1-3 小时 新手友好度 85/100
维护者通常 1 天内回复
-
comp/dashboard P2 type/bug
难度 2/5 1-3 小时 新手友好度 65/100
NousResearch/hermes-agent#156404 ·
维护者通常 1 天内回复
-
Band: compact mode never draws on Claude Code 2.1.292 (level Button has a Text child)可能已有人在做 @Bunty9 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 78/100
DietrichGebert/ponytail#1437 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 88/100
huggingface/transformers.js#1945 ·
维护者通常 1 天内回复