From 45cf983e26458424db516a041550fbc8cb8bc9e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliver=20G=C3=BCnther?= Date: Tue, 15 Feb 2022 20:20:50 +0100 Subject: [PATCH] Add frontend linter to lefthook --- lefthook.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lefthook.yml b/lefthook.yml index 2ab02177022..b316fa6aab6 100644 --- a/lefthook.yml +++ b/lefthook.yml @@ -8,6 +8,11 @@ pre-commit: parallel: true commands: + eslint: + root: "frontend/" + files: git diff --name-only --staged + glob: "*.{js,ts,jsx,tsx}" + run: npx eslint {staged_files} rubocop: files: git diff --name-only --staged glob: "*.rb"