UNPKG

@shaberman-forks/husky

Version:

Prevents bad commit or push (git hooks, pre-commit/precommit, pre-push/prepush, post-merge/postmerge and all that stuff...)

13 lines (12 loc) 408 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const cosmiconfig_1 = require("cosmiconfig"); function getConf(dir) { const explorer = cosmiconfig_1.cosmiconfigSync('husky'); const { config = {} } = explorer.search(dir) || {}; const defaults = { skipCI: true, }; return Object.assign(Object.assign({}, defaults), config); } exports.getConf = getConf;