feat(root): add pre-commit configuration with eslint and prettier

This commit is contained in:
Gergő Jedlicska
2022-04-01 09:56:47 +02:00
parent 1355ddab6f
commit 92f44e7e17
+11
View File
@@ -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