diff --git a/lefthook.yml b/lefthook.yml new file mode 100644 index 0000000000..335348649a --- /dev/null +++ b/lefthook.yml @@ -0,0 +1,9 @@ +pre-commit: + parallel: true + commands: + lint: + glob: '*.{js,ts,jsx,tsx}' + run: npx eslint {staged_files} + types: + glob: '*.{js,ts, jsx, tsx}' + run: npx tsc