From 7cc560d4fd440fa575387b41faac3eb89f53bee8 Mon Sep 17 00:00:00 2001 From: Boban Ljuljdjurovic Date: Thu, 26 Dec 2024 16:58:51 -0500 Subject: [PATCH] Revert "remove pretty-format-json format in favor of using prettier" This reverts commit ba72cda37d948ac6d82721206c08222f872c3d69. --- .pre-commit-config.yaml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6966a7329c..e87889c2da 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -7,6 +7,11 @@ repos: args: [--fix] # Run the formatter. - id: ruff-format + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: v5.0.0 + hooks: + - id: pretty-format-json + args: [--autofix, --no-sort-keys] - repo: https://github.com/pre-commit/mirrors-eslint rev: "v9.16.0" hooks: @@ -29,6 +34,7 @@ repos: rev: v4.0.0-alpha.8 hooks: - id: prettier + types_or: [css, javascript, tsx, ts, yaml] - repo: local hooks: # run `terraform fmt` if tf files are modified and terraform is installed @@ -48,6 +54,6 @@ ci: autoupdate_branch: "" autoupdate_commit_msg: "[pre-commit.ci] pre-commit autoupdate" autoupdate_schedule: weekly - skip: [pretty-terraform-fmt] + skip: [pretty-format-json, terraform-fmt] submodules: false exclude: examples/*