how to ushow to add hadolint as a pre-commit hook

how to ushow to add hadolint as a pre-commit hook

- repo: https://github.com/petalmd/dockerfile-pre-commit
  rev: ''  # Use the revision rev you want to point at
  hooks:
  - id: dockerlint

Source: github.com