chore: update add-new-person-to-site.md template formatting
The add-new-person-to-site.md template has been updated to improve
readability by aligning the fields. The end-of-file-fixer and
trailing-whitespace pre-commit hooks have been enabled to ensure
consistent file endings and remove trailing whitespace.
The `autofix_prs` option in the `ci` section of the
`.pre-commit-config.yaml` file is set to `true` to allow pre-commit.ci
to automatically add commits for pull requests. This change enables the
automatic fixing of issues identified by pre-commit hooks in pull
requests.
The prettier hook in the .pre-commit-config.yaml file has been updated
to version 3.0.0. This update may include bug fixes, new features, or
other improvements provided by the new version of the prettier hook.
The pre-commit hooks have been updated to the latest versions. The following changes were made:
- The `check-yaml` hook now checks for proper YAML formatting.
- The `check-json` hook now checks for proper JSON formatting.
- A new hook `no-commit-to-branch` has been added to prevent local commits to the `main` branch.
- The `autofix_prs` configuration under `ci` has been set to `false`.
These changes improve the code quality and enforce stricter formatting
standards. The addition of the `no-commit-to-branch` hook helps prevent
accidental commits to the `main` branch.
docs(README.md): add badge for pre-commit & fix style of other badges
docs(README.md): fix incorrect CONTRIBUTING linkinkg branch name
The .pre-commit-config.yaml file is added to the project, which includes
hooks for checking YAML and JSON files. This will help ensure the quality
and consistency of these file formats. Additionally, the README.md file is
updated to fix the link to the CONTRIBUTING guide, directing users to the
CONTRIBUTING.md file in the main branch. This ensures that contributors
have access to the most up-to-date instructions for helping the project
grow.
The .pre-commit-config.yaml file was deleted as it contained an unused pre-commit hook configuration. This removal helps to keep the repository clean and avoids confusion or unnecessary overhead when running pre-commit checks.
A new pre-commit configuration file, `.pre-commit-config.yaml`, has been added. This file specifies the repository and version of the pre-commit hooks to be used. It also includes a hook called `no-commit-to-branch` with the argument `--branch main`, which prevents commits to the `main` branch.