From 92f44e7e1755ed5cd1caf4e2a10be54cabc53be8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gerg=C5=91=20Jedlicska?= Date: Fri, 1 Apr 2022 09:56:47 +0200 Subject: [PATCH] feat(root): add pre-commit configuration with eslint and prettier --- .pre-commit-config.yaml | 11 +++++++++++ 1 file changed, 11 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 000000000..e64fad2bc --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,11 @@ +repos: + - repo: https://github.com/pre-commit/mirrors-eslint + rev: 'v8.11.0' # Use the sha / tag you want to point at + hooks: + - id: eslint + # files: \.[jt]sx?$ # *.js, *.jsx, *.ts and *.tsx + # types: [file] + - repo: https://github.com/pre-commit/mirrors-prettier + rev: 'v2.5.1' # Use the sha / tag you want to point at + hooks: + - id: prettier