Refactor/rename files and merge utils - #415
Merged
Merged
Conversation
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Extend the kebab-case convention to the files and directories the original PascalCase-component pass didn't cover: hooks (useXxx.tsx), service hooks (getXxx.hook.ts, xxxService.hook.ts), a few components and utils, and the wigiArz/wigiPad/comboWidget/moodLog/topUsers/ allFriends/marketWallpaper directories. 97 files renamed; all import paths (relative and @/ alias, including CSS) updated to match. Runtime identifiers, enum values, and object keys (e.g. WidgetKeys.wigiPad) are untouched — only filenames changed.
…urces tsconfig.json only got noEmit via extending .wxt/tsconfig.json, which is gitignored and generated by `wxt prepare` (run through postinstall). Anyone who ran tsc directly — before install finished, or via an editor's own compile action instead of `bun run compile` — hit a missing-extends error and fell back to bare tsc defaults: no noEmit, no outDir, emitting a .js file beside every .ts/.tsx it touched. Setting noEmit in tsconfig.json's own compilerOptions closes that gap regardless of whether the extended config resolves. Verified by removing .wxt/ and running bare tsc: previously produced ~450 stray .js files across src/, background/, and entrypoints/; with this fix, zero.
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.
Fixed a typo'd filename: explorer.pge.tsx → explorer.page.tsx.
Merged src/utils into src/common/utils (two files: translate-error.ts, validators.ts), removing the redundant @/utils alias.
Renamed the remaining PascalCase component files to kebab-case (AuthRequiredModal.tsx, UpdateReleaseNotesModal.tsx, ReferralCodeSection.tsx).
Extended kebab-case to every remaining camelCase file and directory: hooks (useDebouncedValue.tsx → use-debounced-value.tsx), service hooks (getBookmarks.hook.ts → get-bookmarks.hook.ts), and directories (wigiArz → wigi-arz, wigiPad → wigi-pad, moodLog → mood-log, topUsers → top-users, comboWidget → combo-widget, marketWallpaper → market-wallpaper, allFriends → all-friends). 97 files renamed, all import paths (relative, @/ alias, and CSS) updated to match.
Runtime identifiers — enum values, object keys, event names (e.g. WidgetKeys.wigiPad) — are untouched; this is filenames only.