Skip to content

Chore: Add a Prettier formatting script to package.json #68

@DamienSable

Description

@DamienSable

📝 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

  • Add "format": "prettier --write \"**/*.{ts,tsx,js,jsx,md,css,json}\"" to the scripts.
  • A contributor can run npm run format locally, and it successfully reformats the codebase according to .prettierrc without throwing errors.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions