cube-js/cube

Add precommit hooks

Open

#324 建立於 2019年12月31日

在 GitHub 查看
 (3 留言) (0 反應) (0 負責人)Rust (1,965 fork)batch import
help wanted

倉庫指標

Star
 (19,563 star)
PR 合併指標
 (平均合併 5天 16小時) (30 天內合併 138 個 PR)

描述

Is your feature request related to a problem? Please describe. It would be a better developer experience if lint checks were run as a Git precommit hook, as opposed to the somewhat longer feedback loop of a CI failure.

Describe the solution you'd like Many such tools/toolchains exist on NPM, lint-staged and husky being the most popular.

lint-staged allows for linting only staged files, and husky sets up Git precommit hooks in your project.

Additionally, tools such as commitlint can be used to enforce Git commit message styles (in this case, conventional commits) while commitizen can be used to provide a CLI wizard for commit messages.

Additional context lint-staged: https://github.com/okonet/lint-staged husky: https://github.com/typicode/husky commitlint: https://github.com/conventional-changelog/commitlint commitizen: https://github.com/commitizen/cz-cli

貢獻者指南