Skip to content

Commit

Permalink
chore: Add pre-commit hooks for docker and file endings.
Browse files Browse the repository at this point in the history
Add additional checks to check for correct dockerfile syntax and best practices as well as checks for correct line endings in file. Some versions were updated.
  • Loading branch information
MichaelsJP committed Feb 1, 2023
1 parent c165369 commit d771ae0
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ repos:
hooks:
- id: prettier
types_or: [json, yaml, markdown]
- repo: https://github.com/hadolint/hadolint.git
rev: "v2.12.1-beta"
hooks:
- id: hadolint-docker
types: ["dockerfile"]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
Expand All @@ -22,8 +27,13 @@ repos:
description: Forces to replace line ending by the UNIX 'lf' character.
- id: check-added-large-files
args: ["--maxkb=500"]
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.4.2
hooks:
- id: forbid-crlf
- id: remove-crlf
- repo: https://github.com/pre-commit/mirrors-eslint
rev: "v8.29.0"
rev: "v8.33.0"
hooks:
- id: eslint
name: eslint
Expand Down Expand Up @@ -59,7 +69,7 @@ repos:
- "eslint-plugin-vue@7.0.0-beta.2"
- "eslint-plugin-cypress@2.12.1"
- repo: https://github.com/commitizen-tools/commitizen
rev: "v2.37.1"
rev: "v2.40.0"
hooks:
- id: commitizen
stages: [commit-msg]

0 comments on commit d771ae0

Please sign in to comment.