From 0f0cab6f4d258f74237ed8e959a5539c4c8c2cb4 Mon Sep 17 00:00:00 2001 From: John Alling Date: Fri, 26 Apr 2024 08:35:06 -0400 Subject: [PATCH] add prettier to pre-commit --- .pre-commit-config.yaml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index fb41c3f1f..5ab4a847c 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -26,6 +26,13 @@ repos: - repo: https://github.com/pre-commit/mirrors-eslint rev: v8.56.0 hooks: - - id: eslint - files: \.[jt]sx?$ # *.js, *.jsx, *.ts and *.tsx + - id: eslint + files: \.(js|jsx|ts|tsx|svelte)$ # apply eslint to the provided filetypes types: [file] + + # Prettier Code formatter + - repo: https://github.com/pre-commit/mirrors-prettier + rev: "v3.1.0" + hooks: + - id: prettier + files: \.(js|jsx|ts|tsx|svelte)$ # apply eslint to the provided filetypes