What to build
To ensure high code quality and consistent formatting across all contributors, we need to implement a strict code quality pipeline.
This task involves adding ESLint and Prettier for local formatting, setting up Husky to prevent bad commits, and creating a GitHub Action that automatically runs these checks whenever a Pull Request is opened.
Files to create/modify
package.json (Modify)
.eslintrc.json (Create)
.prettierrc (Create)
.github/workflows/ci.yml (Create)
Specs
- Linter: Standard ESLint rules for Node.js (ES Modules).
- Formatter: Prettier (single quotes, trailing commas).
- Automation: GitHub Actions should run
npm install and npm run lint on PRs to the main branch.
Acceptance criteria
Dependencies
- ISSUE-001 (Must be able to install and run the project first).
What to build
To ensure high code quality and consistent formatting across all contributors, we need to implement a strict code quality pipeline.
This task involves adding ESLint and Prettier for local formatting, setting up Husky to prevent bad commits, and creating a GitHub Action that automatically runs these checks whenever a Pull Request is opened.
Files to create/modify
package.json(Modify).eslintrc.json(Create).prettierrc(Create).github/workflows/ci.yml(Create)Specs
npm installandnpm run linton PRs to themainbranch.Acceptance criteria
eslint,prettier, andhuskyas devDependencies..eslintrc.jsonconfigured for ES Modules..prettierrcfile."lint"and"format"scripts topackage.json.pre-commithook that runs the linter before allowing a commit..github/workflows/ci.ymlthat triggers onpull_requestand runs the linter.Dependencies