Add prettier configuration and a format check step in ci - #574
Open
Johnsource-hub wants to merge 5 commits into
Open
Add prettier configuration and a format check step in ci#574Johnsource-hub wants to merge 5 commits into
Johnsource-hub wants to merge 5 commits into
Conversation
added 5 commits
July 19, 2026 14:39
…nt related database functionality
…ogging and auth introspection
…ted readiness endpoint for resilient monitoring
…r and ESLint configurations
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.
#closes
#545
Summary of Changes
Created Prettier Configuration files:
.prettierrc.json: Matching existing codebase styles (single quotes, semicolons enabled, 2-space tab width, es5 trailing commas, print width of 100, and lf line endings).
.prettierignore: Excluding standard built outputs and databases (node_modules/, dist/, *.db, etc.).
Added Dev Dependencies:
Installed prettier and eslint-config-prettier to ensure formatting works seamlessly and ESLint rules do not conflict.
Installed eslint@8, @typescript-eslint/parser@7, and @typescript-eslint/eslint-plugin@7 to solve the missing local dependencies that previously prevented ESLint from running locally.
Resolved ESLint Parser Scope:
Created tsconfig.eslint.json extending tsconfig.json to include tests/ in the compilation scope for ESLint, ensuring typescript-eslint doesn't fail on testing files.
Configured .eslintrc.cjs to use tsconfig.eslint.json and extend prettier to prevent stylistic conflicts.
Added NPM Scripts & CI Workflow Step:
Added format:check (prettier --check .) and format (prettier --write .) scripts to package.json.
Added a Check formatting step (npm run format:check) in .github/workflows/ci.yml to fail the build on pull requests or commits with unformatted files.
Reformatted Entire Codebase:
Formatted the repository repo-wide using npm run format so that the formatting baseline is clean.
Ran npm run format:check and verified that formatting checks pass cleanly with exit code 0.