chore: add .pre-commit-config.yaml and fix trailing whitespace
#5589
lint.yml
on: pull_request
markdownlint
4s
shellcheck
8s