UNPKG
byt-commit-hooks
Version:
latest (0.0.2)
0.0.2
0.0.1
git commit hooks
byt-commit-hooks
/
bin
/
commit-hooks.js
12 lines
(9 loc)
•
288 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/env node
const
{ lintFileNames, lintRoutePaths,getConfig } =
require
(
'../lib/index'
);
async
function
runChecks
(
) {
//先检查根目录下是否有配置文件
const
config =
await
getConfig
();
lintFileNames
(config);
lintRoutePaths
(config); }
runChecks
();