Skip to content

Prettier added to the project#55

Merged
Brayden merged 4 commits intomainfrom
bwilmoth/prettier-commit
Dec 21, 2024
Merged

Prettier added to the project#55
Brayden merged 4 commits intomainfrom
bwilmoth/prettier-commit

Conversation

@Brayden
Copy link
Member

@Brayden Brayden commented Dec 21, 2024

Purpose

Adding .prettierrc.json file to standardize the code style throughout the project. Below are the settings that are being presented in this PR to be used:

{
    "trailingComma": "es5",
    "tabWidth": 4,
    "semi": false,
    "singleQuote": true
}

Also included is a lint-staged step to automatically trigger prettier formatting on the git commit hook.

Tasks

  • Add prettier rules
  • Automatically apply rules on git hook
  • Format existing files

Verify

Before

After

@Brayden Brayden marked this pull request as ready for review December 21, 2024 17:28
@Brayden Brayden added the enhancement New feature or request label Dec 21, 2024
@Brayden Brayden self-assigned this Dec 21, 2024
@Brayden Brayden merged commit 9a6d997 into main Dec 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant