From 4f73b39fc11f9ba682b3cb5beaebbb4df2e48319 Mon Sep 17 00:00:00 2001 From: Victor Engmark Date: Fri, 10 Mar 2023 08:31:12 +1300 Subject: [PATCH] feat: Enable automatically formatting code using pre-commit --- .pre-commit-config.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 .pre-commit-config.yaml diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..fa03b8f --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,9 @@ +# Configuration file for pre-commit (https://pre-commit.com/). +# Please run `pre-commit run --all-files` when adding or changing entries. + +repos: + - repo: https://github.com/pre-commit/mirrors-prettier + rev: 6f3cb139ef36133b6f903b97facc57b07cef57c9 # frozen: v3.0.0-alpha.6 + hooks: + - id: prettier + stages: [commit]