Repository navigation
chore: remove explanatory comments across the repo - #7653
Merged
Merged
Conversation
Delete about 30,700 comments from 2,840 TypeScript files in apps, packages and ee. Kept: directives (@ts-*, eslint, biome, prettier, webpack, coverage), build annotations (#__PURE__, #region), license headers, issue and RFC links, and doc comments on exported package APIs. Tests, declarations and generated files are untouched. No new parse errors; every package typechecks.
Deploying openwork with
|
| Latest commit: |
c4629db
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://82e6b595.openwork.pages.dev |
| Branch Preview URL: | https://chore-no-comments.openwork.pages.dev |
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
1 Skipped Deployment
|
# Conflicts: # apps/app/src/react-app/shell/session-route.tsx # ee/apps/den-web/app/(den)/dashboard/_components/inference-providers-screen.tsx # packages/headless-threads/src/client.ts
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What is this about?
Removes explanatory comments from TypeScript across
apps,packagesandee, so the code matches the no-comments rule.What problem does it solve?
Comments drift from the code they describe and agents copy them as a pattern. With the new rule only checking added lines, the existing ones would stay forever.
What was the situation before?
About 30,700 comments across 2,840 files, many restating the next line or narrating history.
How is this implemented?
no-new-commentrule rejects, using the TypeScript scanner, and cleaned up the blank lines and empty JSX{}they left.@ts-*, eslint, biome, prettier, webpack, coverage),#__PURE__/#region, license headers, issue and RFC links, and/**docs on exported package APIs..d.tsand generated files are untouched.What else changed?
none
Release note
none
Evidence
No E2E; no behavior change. Every changed file parses with no new errors, all 47 package typechecks and
pnpm checkpass, and package tests matchdev(the only failures also fail ondev).