Skip to content

fix: add .prettierrc and fix code formatting#7

Merged
huyenltnguyen merged 2 commits intofreeCodeCamp:mainfrom
huyenltnguyen:fix/format
Feb 2, 2026
Merged

fix: add .prettierrc and fix code formatting#7
huyenltnguyen merged 2 commits intofreeCodeCamp:mainfrom
huyenltnguyen:fix/format

Conversation

@huyenltnguyen
Copy link
Member

@huyenltnguyen huyenltnguyen commented Jan 29, 2026

Checklist:

CI was failing with Prettier formatting errors (#6) because:

  • Locally, Prettier was inheriting configuration from the parent repo (https://github.com/freeCodeCamp/freeCodeCamp/blob/main/.prettierrc)
    • I checked this by running pnpm prettier --find-config-path apps/api/configs/super-block-list.ts
  • In CI, the challenge-editor runs standalone (not as a submodule), so Prettier used default settings
  • This mismatch caused formatting differences between local and CI environments

@huyenltnguyen huyenltnguyen changed the title fix: code formatting fix: add .prettierrc and fix code formatting Jan 29, 2026
@huyenltnguyen huyenltnguyen marked this pull request as ready for review January 29, 2026 13:44
@huyenltnguyen huyenltnguyen merged commit eec6860 into freeCodeCamp:main Feb 2, 2026
2 checks passed
@huyenltnguyen huyenltnguyen deleted the fix/format branch February 2, 2026 21:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant