UNPKG

byt-commit-hooks

Version:

git commit hooks

12 lines (9 loc) 288 B
#!/usr/bin/env node const { lintFileNames, lintRoutePaths,getConfig } = require('../lib/index'); async function runChecks() { //先检查根目录下是否有配置文件 const config = await getConfig(); lintFileNames(config); lintRoutePaths(config); } runChecks();