From ce45c3d09804c7c556d2f133f2c3d7d89ea5dc88 Mon Sep 17 00:00:00 2001 From: Gabe Cook Date: Tue, 5 Dec 2023 11:33:13 -0600 Subject: [PATCH] feat: Add `docker_hot_format` hook --- .pre-commit-hooks.yaml | 7 +++++++ README.md | 3 +++ 2 files changed, 10 insertions(+) diff --git a/.pre-commit-hooks.yaml b/.pre-commit-hooks.yaml index d9519d5..84207e9 100644 --- a/.pre-commit-hooks.yaml +++ b/.pre-commit-hooks.yaml @@ -5,6 +5,13 @@ args: [lint:fix] files: '^(resources/(js|ts)|package(-lock)?\.json)' pass_filenames: false +- id: docker_hot_format + name: Stylelint + entry: docker-compose run --rm -T hot npm run + args: [format] + language: system + files: '^(resources/.*\.(vue|css)|package(-lock)?\.json)' + pass_filenames: false - id: docker_hot_stylelint name: Stylelint entry: docker-compose run --rm -T hot npm run diff --git a/README.md b/README.md index bfdc513..8401bae 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,7 @@ repos: rev: v0.0.5 hooks: - id: docker_hot_eslint + - id: docker_hot_format - id: docker_hot_stylelint - id: docker_hot_pint - id: docker_hot_larastan @@ -25,6 +26,8 @@ repos: ### docker_hot_stylelint +### docker_hot_format + ### docker_hot_pint ### docker_hot_larastan