UNPKG

@nozomiishii/lefthook-config

Version:
7 lines (6 loc) 225 B
pre-commit: commands: lint-file-extension-test: files: git diff --name-only --staged glob: '*.spec.{js,ts}' run: echo "Error! ".spec.{js,ts}" extension found, please use ".test.ts" instead." && exit 1