From d17de421ca0ab9ea27601287625fbd4289cb9be6 Mon Sep 17 00:00:00 2001 From: Rob Gries Date: Mon, 11 Nov 2024 15:00:46 -0500 Subject: [PATCH] Run prettier for js,jsx files only --- .pre-commit-config.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e1287eb8..fb85ec4d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -16,11 +16,10 @@ repos: name: Run formatter (prettier) language: system entry: npx prettier --write --ignore-unknown - pass_filenames: true + files: ".*\\.(js|jsx)$" - id: lint name: Run linter (eslint) language: system entry: npx eslint --fix files: ".*\\.(js|jsx)$" - pass_filenames: true