diff --git a/lefthook.yml b/lefthook.yml new file mode 100644 index 0000000000..6fb79cfe34 --- /dev/null +++ b/lefthook.yml @@ -0,0 +1,14 @@ +pre-commit: + parallel: true + commands: + lint: + glob: "*.{js,jsx,ts,tsx}" + run: oxlint {staged_files} + format: + glob: "*.{js,jsx,ts,tsx,json,css,md,yaml,yml}" + run: oxfmt --check {staged_files} + +commit-msg: + commands: + commitlint: + run: commitlint --edit "{1}"