-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: typescript plugin poc implementation #902
base: main
Are you sure you want to change the base?
Conversation
Code PushUp🤨 Code PushUp report has both improvements and regressions – compared target commit 97d1de7 with source commit c219602. 🕵️ See full comparison in Code PushUp portal 🔍 🏷️ Categories(*) New category. 👎 2 groups regressed, 👍 1 audit improved, 👎 6 audits regressed, 11 audits changed without impacting score🗃️ Groups
15 other groups are unchanged. 🛡️ Audits
569 other audits are unchanged. |
Amazing work, can't wait to give it a try in some big project, I had a brief look but I'll review later (🤔 is this a 🎄🎁?) |
{ | ||
slug: 'language-and-environment', | ||
weight: 1, | ||
type: 'group', | ||
plugin: 'typescript', | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
here we should mention the helper
TypeScript Plugin PoC Implementation
Incremental migration for TypeScript projects
This plugin enables step-by-step adoption of newer TypeScript features while avoiding large-scale refactors.
📝 Related Issue
👉 #901 – TypeScript Plugin Architecture Discussion
🔌 Plugin Overview
Purpose
The plugin enables incremental adoption of TypeScript configurations and helps track regressions while avoiding CI failures.
Key Features:
✅ Extracts Diagnostics: Uses TypeScript’s compiler APIs to analyze diagnostics.
✅ Audit Mapping: Maps diagnostics to audit rules for actionable feedback.
✅ Migration Support: Handles migration via separate configs (
tsconfig.json
,tsconfig.next.json
).✅ Detailed Reports: Provides grouped, actionable error/warning summaries.
Report Summary
Overview of Audit Groups, Audit Counts, and Diagnostic Issue Types.
This PR includes:
Todos:
Proposed PR delivery:
@code-pushup/utils
CONTRIBUTING.md
Alternatives
ts-2345
.This leads to a huge amount of audits > ~2000 if not reduces to a subset of useful codes, hard to understand audit slug
🧪 How to Test the Plugin
npm install
to trigger the new postinstall script in your reponx code-pushup --onlyPlugins=typescript
to execute the plugin and generate the report.code-pushup/report.md
📊 Visual Examples
🖥️ Dashboard Overview
Central view showing audit results and issue summaries.
📂 Additional Visuals
📸 Expand to View More Visuals
🖥️ Audit Insights 1
Drill-down view for grouped audits and diagnostics.
🖥️ Audit Insights 2
Deeper inspection of diagnostics linked to audits.
🛠️ Code Diagnostics 1
Pinpoint file locations and error lines.
🛠️ Code Diagnostics 2
Detailed breakdown of warnings and errors.
Example Md Report:
Code PushUp Report
🏷 Categories
Typescript
🟡 Score: 88
🛡️ Audits
ModuleResolution (Typescript)
🟥 19 (score: 0)
Issues
src/utils/math.ts
src/models/user.ts
src/api/client.ts
📖 Docs
closes #901