From a2ac4ce139d621cfe08bb1f615c4cddef59f081b Mon Sep 17 00:00:00 2001 From: Aminda Suomalainen Date: Mon, 23 Oct 2023 10:34:30 +0300 Subject: [PATCH] .pre-commit-config.yaml: update from shell-things template --- .pre-commit-config.yaml | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 8776c43..3d1cde4 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -19,19 +19,25 @@ repos: - repo: https://github.com/pre-commit/pre-commit-hooks rev: v4.5.0 hooks: - - id: check-added-large-files - - id: check-case-conflict - - id: check-yaml - - id: destroyed-symlinks - - id: detect-private-key - - id: end-of-file-fixer - - id: fix-byte-order-marker - id: trailing-whitespace args: ["--markdown-linebreak-ext", "md,markdown"] exclude_types: [svg, tsv] + - id: end-of-file-fixer + - id: check-yaml + - id: check-added-large-files + - id: check-case-conflict + - id: check-executables-have-shebangs + - id: check-json + - id: check-merge-conflict + - id: check-shebang-scripts-are-executable + - id: destroyed-symlinks + - id: detect-private-key + - id: fix-byte-order-marker - id: check-merge-conflict - id: mixed-line-ending args: [--fix=auto] + - id: pretty-format-json + args: [--autofix, --no-ensure-ascii] - repo: https://github.com/pre-commit-ci/pre-commit-ci-config rev: v1.6.1 @@ -60,6 +66,7 @@ repos: rev: "v3.0.3" hooks: - id: prettier + exclude_types: [json] additional_dependencies: [ # https://www.npmjs.com/package/prettier "prettier@3.0.3",