TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: Do you prefer pre-commit or post-commit linting/formatting?

2 pointsby symboleproabout 7 years ago

2 comments

enitihasabout 7 years ago
Pre-commit formatting. When I use IntelliJ to commit, it automatically formats pre commit. If you format post commit, you need another commit to format, and then your commit history will have many formatting commits.<p>I will suggest use an IDE to auto format pre push, or use a git pre commit hook to format before commit.
评论 #16550403 未加载
ezekgabout 7 years ago
I format&#x2F;lint on save. I like my commit logs clean.