chore(pre-commit): add pre-commit configuration for code quality checks
Introduce a pre-commit configuration file to automate code quality
checks before commits. This setup includes hooks for preventing commits
to the main branch, fixing end-of-file issues, removing trailing
whitespace, and checking YAML, JSON, TOML, and AST files. It also
includes a hook for detecting debug statements and a gitleaks hook for
detecting sensitive information. Prettier is configured to format JSON,
TOML, YAML, and Markdown files. This ensures consistent code quality and
prevents common errors from being committed.