Before pushing your changes, please follow these steps to ensure code quality and consistency:
-
Ensure all dependencies are installed:
pnpm install -
Run the linting and formatting checks:
pnpm run lint -
If issues are found, attempt to auto-fix them:
pnpm run lint:fix -
If any issues remain after auto-fixing, address them manually in your code and re-run
pnpm run lint -
Once all checks pass, commit your changes and push to your branch.
- The CI pipeline will run these checks automatically on push and pull requests.
- Minor issues may be auto-fixed by the CI, but it's best to resolve issues locally before pushing.
- ESLint is used for JavaScript and TypeScript linting.
- Prettier is used for code formatting.
- Configuration files (.eslintrc and .prettierrc) define the specific rules.