a2ui-project / a2ui-project/a2ui
Prevent unsafe js reflection like Object.entries(), to better support property renaming
- Lenguaje dominante
- TypeScript
- Estrellas
- 16.4k
- Forks
- 1.3k
- Merge medio
- 2 d 13 h
- PR fusionados (30 d)
- 134
Descripción
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)
Guía de contribución
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- javascript, typescript
- Área
- build-system, tooling
- Tipo de issue
- Nueva funcionalidad
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Estado de actividad
- Tranquilo
- Claridad
- Bastante claro
- Aptitud para principiantes
- 55/100