flowfi icon indicating copy to clipboard operation
flowfi copied to clipboard

[CI] Add linting for backend TypeScript

Open blurbeast opened this issue 2 weeks ago • 4 comments

Overview & Background

The backend has no lint script and no ESLint/Biome/Oxlint config anywhere under backend/, and the Backend CI job runs install → build → codegen drift → vitest with no lint step. Root lint-staged covers only frontend/** and contracts/**/*.rs. The entire backend codebase (~90 TS source files) is never linted — not in CI, not in pre-commit, not locally — so dead imports, unsafe patterns, and style/logic lints are invisible in review for the service that custodies payment-stream state.


Technical Specification & Architecture

  1. Add an ESLint flat config + lint script to backend/.
  2. Run it as a step in the Backend CI job (.github/workflows/ci.yml:106-159).
  3. Extend root lint-staged to backend/**/*.ts.

Target Files

  • backend/package.json
  • backend/eslint.config.js (new)
  • .github/workflows/ci.yml
  • package.json

Acceptance Criteria

  • [ ] npm run lint in backend/ runs and reports findings.
  • [ ] CI fails on lint errors.
  • [ ] Pre-commit hooks lint staged backend files.

blurbeast avatar Nov 18 '26 19:11 blurbeast

@Peolite1 has applied to work on this issue as part of the Stellar Wave Program's 11th wave.

i would love to work on this issue

ℹ️ Repo Maintainers: To accept this application, review their application or assign @Peolite1 to this issue.

Peolite1 avatar Nov 20 '26 22:11 Peolite1

@bolabeatz has applied to work on this issue as part of the Stellar Wave Program's 11th wave.

easy issue for me

ℹ️ Repo Maintainers: To accept this application, review their application or assign @bolabeatz to this issue.

bolabeatz avatar Nov 21 '26 07:11 bolabeatz

Congratulations, @bolabeatz! 🎉 Your application was accepted by the repo's maintainers, and the issue is due on November 25, 2026.

🧑‍💻 @bolabeatz: Please resolve the issue such that the repo's maintainers have enough time to review your contribution before the due date. You'll earn Points for completing the issue on-time, which will make you eligible for a share of the Stellar Wave Program's reward pool.

[!WARNING] When opening a PR, please link it to this issue to ensure it gets tracked accurately. Points are awarded when this issue is marked as completed by the maintainer.

🤠 Repo maintainers: Please keep an eye on the contributor's progress and review their work before the due date. You can manage this issue, including adjusting its complexity and points, here.

🌊 Happy Wave 🌊

drips-wave[bot] avatar Nov 21 '26 07:11 drips-wave[bot]

This issue has been completed by @bolabeatz as part of the Stellar Wave Program's 11th Wave 🥳

😎 @bolabeatz: You earned 200 Points for completing this issue! Once the Wave's rewards are finalized, you'll be eligible for a percentage of the Wave's reward pool based on the percentage of total points you've earned. Learn more here. You can also Leave a review to share your experience working on this issue.

🧑‍💻 Repo maintainers: How'd the contributor do? Leave a review to share your experience working with them.

drips-wave[bot] avatar Nov 22 '26 20:11 drips-wave[bot]