๐Ÿ“ฆ paularmstrong / normalizr

๐Ÿ“„ husky.config.js ยท 11 lines
1
2
3
4
5
6
7
8
9
10
11const runYarnLock = 'yarn install --frozen-lockfile';

module.exports = {
  hooks: {
    'post-checkout': `if [[ $HUSKY_GIT_PARAMS =~ 1$ ]]; then ${runYarnLock}; fi`,
    'post-merge': runYarnLock,
    'post-rebase': 'yarn install',
    'pre-commit': 'yarn typecheck && yarn lint-staged',
  },
};