a2ui-project / a2ui-project/a2ui

Prevent unsafe js reflection like Object.entries(), to better support property renaming

オープン
#1,327 コメント 5 件 リアクション 0 件 担当者 1 名 @josemontespg が担当を希望しています GitHub で見る
javascript P2 type: feature/enhancement
主要言語
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

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

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