Skip to content

Add CI: lint, typecheck, build, and format checks#7

Merged
Ramzi-Abidi merged 5 commits into
mainfrom
chore/lint-typecheck-format-ci
Jul 4, 2026
Merged

Add CI: lint, typecheck, build, and format checks#7
Ramzi-Abidi merged 5 commits into
mainfrom
chore/lint-typecheck-format-ci

Conversation

@Ramzi-Abidi

@Ramzi-Abidi Ramzi-Abidi commented Jul 3, 2026

Copy link
Copy Markdown
Owner

Summary

Adds a GitHub Actions CI pipeline and the quality tooling behind it so every push and PR is checked automatically. Also applies an initial formatting pass across the repo so the new checks pass from the start.

Tooling added

  • Prettier at the root with .prettierrc and .prettierignore
  • ESLint flat configs for the client (eslint.config.js) and server (eslint.config.mjs)
  • typecheck scripts split from build in both client and server

Scripts (root package.json)

  • pnpm lint — ESLint in client + server
  • pnpm typechecktsc --noEmit in both
  • pnpm build — production build for both
  • pnpm format / pnpm format:check — Prettier write / check

CI (.github/workflows/ci.yml)

  • Triggers on push to main and on all pull requests
  • Steps: install (root + client + server) → format:checklinttypecheckbuild

Cleanup to make CI green

  • Prettier formatting applied across the codebase
  • Fixed lint/type issues in vector-index.service.ts and chunker.service.ts (unused params, any types, null handling)
  • Removed an accidental server/pnpm-workspace.yaml
  • Added .pnpm-store/ to .gitignore

Notes

  • The repo uses three lockfiles (root, client, server), so CI installs each separately.
  • Server deps were reinstalled with the new eslint packages; lockfiles updated accordingly.

- Updated .gitignore to exclude .pnpm-store.
- Added .prettierignore and .prettierrc for consistent code formatting.
- Enhanced package.json with new scripts for build, linting, and formatting.
- Introduced CI workflow for automated checks on push and pull requests.
- Added ESLint configuration for both client and server to enforce code quality.
- Refactored various components for improved readability and consistency in the client application.
- Updated README for better clarity on project structure and usage.
@Ramzi-Abidi
Ramzi-Abidi force-pushed the chore/lint-typecheck-format-ci branch from 9de1bd6 to 5380dc5 Compare July 3, 2026 09:45
- Renamed quality job to format and added steps for formatting checks.
- Introduced lint-and-typecheck and build jobs for better separation of concerns.
- Added all-checks-pass job to ensure all previous jobs succeed before final confirmation.
- Refactored various components in the client for improved readability and consistency in JSX formatting.
@Ramzi-Abidi Ramzi-Abidi changed the title chore: enhance project configuration and code quality Add CI: lint, typecheck, build, and format checks Jul 3, 2026
- Upgraded pnpm version from 9 to 11 in CI jobs for better performance.
- Added installation step for root dependencies in CI workflow.
- Refactored AskService to streamline conversation history loading and improve readability.
- Enhanced loadConversationHistory method to ensure consistent return type.
- Changed Node.js version from 20 to 22 in CI jobs for improved compatibility and performance.
@Ramzi-Abidi
Ramzi-Abidi merged commit e45e617 into main Jul 4, 2026
4 checks passed
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