Back to Storybook

Task Completion Checklist

.serena/memories/task_completion_checklist.md

10.3.6928 B
Original Source

Task Completion Checklist

After completing a coding task, run through these steps:

1. TypeScript Compilation

Ensure the modified package(s) compile without errors:

bash
yarn nx compile <package-name> --no-cloud

2. Linting

Run lint on the changed files or the whole codebase:

bash
cd code && yarn lint:js

3. Formatting

Ensure code is properly formatted:

bash
cd code && yarn lint:prettier '<changed-files>'

4. Unit Tests

Run relevant tests:

bash
cd code && yarn test <test-pattern>

5. Pre-commit Checks

The project uses husky + lint-staged for pre-commit hooks:

  • JS/TS files: ESLint with --fix
  • EJS files: ejslint
  • CSS/HTML/JSON/MD/YML: Prettier
  • package.json: lint:package

Notes

  • The main branch is next (not main or master)
  • Always use --no-cloud with NX commands
  • Before starting the dev server, ensure core is compiled: yarn nx compile core --no-cloud