Skip to content

chore: setup prettier for consistent code formatting#138

Open
nKOxxx wants to merge 2 commits intobase44:mainfrom
nKOxxx:main
Open

chore: setup prettier for consistent code formatting#138
nKOxxx wants to merge 2 commits intobase44:mainfrom
nKOxxx:main

Conversation

@nKOxxx
Copy link

@nKOxxx nKOxxx commented Mar 4, 2026

Setup Prettier for consistent code formatting. Adds prettier.config.js, .prettierignore, npm format scripts, and prettier to devDependencies. Closes #11

nKOxxx added 2 commits March 4, 2026 18:22
- Add prettier.config.js with sensible defaults
- Add .prettierignore to exclude build artifacts
- Add npm scripts: format and format:check
- Add prettier@^3.2.0 to devDependencies

Closes base44#11
- Convert auth.test.js to auth.test.ts
- Add proper TypeScript types for Base44Client, nock.Scope
- Add type annotations for mock objects
- Use @ts-expect-error for intentional window deletion in tests
- Maintain all existing test coverage and functionality

Part of base44#13 - migrating tests to TypeScript
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.

Setup prettier

1 participant