a2ui-project / a2ui-project/a2ui
Prevent unsafe js reflection like Object.entries(), to better support property renaming
- 主要言語
- TypeScript
- スター
- 16.4k
- フォーク
- 1.3k
- 平均マージ
- 2日 13時間
- マージ済み PR(30日)
- 134
説明
Using Object.entries() can cause code to break when using a compiler that has property renaming enabled, which is common for 1P.
Context for Googlers:
[go/typescript-optimization-safety-testing](https://goto.google.com/typescript-optimization-safety-testing)
コントリビューションガイド
調査の方向性
Look for existing lint rules or compiler checks in the codebase that flag unsafe reflection. The issue mentions property renaming optimizations common at Google; start by searching for 'Object.entries' usage in the source. Determine how to detect and prevent such patterns, possibly by adding a custom ESLint rule or a build-time check. Verify the fix works with the project's existing test suite for compilation safety.
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- javascript, typescript
- 領域
- build-system, tooling
- issue の種類
- 機能追加
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 静か
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 55/100