From 4c22aeac22d0bc0d2cc9c3ba01de90db81650cac Mon Sep 17 00:00:00 2001 From: Matt Fisher Date: Tue, 10 Oct 2023 17:45:32 -0600 Subject: [PATCH] Add prettier formatting rule for JSON --- .pre-commit-config.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 4dcb9696..fa0e9a0b 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -39,6 +39,15 @@ repos: - id: rst-directive-colons - id: rst-inline-touching-normal + - repo: https://github.com/pre-commit/mirrors-prettier + rev: "v3.0.2" + hooks: + - id: prettier + types_or: [json] + exclude: ".geojson$" + # types_or: [yaml, markdown, html, css, scss, javascript, json] + args: [--prose-wrap=always] + - repo: https://github.com/astral-sh/ruff-pre-commit rev: "v0.0.291" hooks: