graphql-engine/console/scripts/preCommit.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

8 lines
187 B
JavaScript
Raw Normal View History

require('dotenv').config();
const execSync = require('child_process').execSync;
if (process.env.HUSKY_PRE_COMMIT) {
execSync('node_modules/.bin/lint-staged', { stdio: 'inherit' });
}