📝 Description
We have a .prettierrc file in the repository to define our code formatting rules, but we don't have an easy terminal command for contributors to actually format their files before opening a Pull Request.
🎯 What needs to be done
Add a standard format script inside the scripts object of our package.json file so contributors can simply run npm run format.
📍 Where to look
package.json (Look inside the "scripts": { ... } block).
✅ Acceptance Criteria
📝 Description
We have a
.prettierrcfile in the repository to define our code formatting rules, but we don't have an easy terminal command for contributors to actually format their files before opening a Pull Request.🎯 What needs to be done
Add a standard
formatscript inside thescriptsobject of ourpackage.jsonfile so contributors can simply runnpm run format.📍 Where to look
package.json(Look inside the"scripts": { ... }block).✅ Acceptance Criteria
"format": "prettier --write \"**/*.{ts,tsx,js,jsx,md,css,json}\""to the scripts.npm run formatlocally, and it successfully reformats the codebase according to.prettierrcwithout throwing errors.