From 8b0982362ae045eb1ea2925fbcbbb87d2cbd37e8 Mon Sep 17 00:00:00 2001 From: Penar Musaraj Date: Tue, 25 Sep 2018 11:26:01 -0400 Subject: [PATCH] Use local eslint package via yarn in overcommit --- .overcommit.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.overcommit.yml b/.overcommit.yml index 2de35d6df92..9bc9a591799 100644 --- a/.overcommit.yml +++ b/.overcommit.yml @@ -19,5 +19,7 @@ PreCommit: command: ['bundle', 'exec', 'rubocop'] EsLint: enabled: true - command: ['eslint', '--ext', '.es6', '-f', 'compact'] + required_executable: './node_modules/.bin/eslint' + install_command: 'yarn install' + command: ['yarn', 'eslint', '--ext', '.es6', '-f', 'compact'] include: '**/*.es6'