From e3f439eb51eebd8e4b6211621c81ea3ff5fc7e97 Mon Sep 17 00:00:00 2001 From: Maja Massarini Date: Mon, 12 Feb 2024 14:09:50 +0100 Subject: [PATCH] Skip pretting tsconfig.json file. pre-commit.ci is pretting tsconfig.json file in a different way than calling pre-commit with prettier version 4.0.0-alpha-8 locally. For this reason CI is failing. Skip pretting this file, at least for the moment, until pre-commit.ci as a service does not work like pre-commit called locally. --- .pre-commit-config.yaml | 1 + frontend/tsconfig.json | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 76ea56dc..a4a50e64 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -12,6 +12,7 @@ repos: rev: v4.0.0-alpha.8 hooks: - id: prettier + exclude: frontend/tsconfig.json - repo: https://github.com/pre-commit/pre-commit-hooks rev: v4.5.0 hooks: diff --git a/frontend/tsconfig.json b/frontend/tsconfig.json index d9429069..3f0ed268 100644 --- a/frontend/tsconfig.json +++ b/frontend/tsconfig.json @@ -12,8 +12,8 @@ "resolveJsonModule": true, "isolatedModules": true, "noEmit": true, - "jsx": "preserve", + "jsx": "preserve" }, "include": ["src"], - "exclude": ["node_modules"], + "exclude": ["node_modules"] }