ddc-commit-hooks
Version:
Configurable commit hook setup
34 lines (32 loc) • 580 B
text/typescript
export interface config {
preCommit: {
gitlabCi: boolean;
circleCi: boolean;
esLintCheck: boolean;
maxFileSize: number;
cypress: string;
robot: string;
dotOnlyCheck: boolean;
};
commitMsg: {
glob: string;
maxLineLength: number;
titleLength: number;
};
}
export const defaults: config = {
preCommit: {
gitlabCi: false,
circleCi: false,
esLintCheck: false,
maxFileSize: 2,
cypress: "",
robot: "",
dotOnlyCheck: false
},
commitMsg: {
glob: ".*",
maxLineLength: 79,
titleLength: 25
}
};