From 9eab3b8d1729887b193dc32e91cbd3ea577a3e9e Mon Sep 17 00:00:00 2001 From: jo Date: Wed, 9 Feb 2022 08:22:01 +0100 Subject: [PATCH] chore: update pre-commit to handle js/ts/css files --- .pre-commit-config.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6d82f73fc..15a22a671 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -32,7 +32,8 @@ repos: rev: v2.5.1 hooks: - id: prettier - files: \.(md|yml|yaml|json)$ + files: \.(md|mdx|yml|yaml|js|jsx|ts|tsx|json|css)$ + exclude: ^legacy/public - repo: https://github.com/asottile/pyupgrade rev: v2.31.0 @@ -58,4 +59,4 @@ repos: args: - --ignore-words=.codespellignore - --builtin=clear,rare,informal - exclude: ^(legacy.*)$ + exclude: (^legacy.*|yarn\.lock)$