5 ms·
Ask HN: Do you prefer pre-commit or post-commit linting/formatting?
- enitihas 9y agoPre-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. I will suggest use an IDE to auto format pre push, or use a git pre commit hook to format before commit.
- walialu 9y ago+1
- ezekg 9y agoI format/lint on save. I like my commit logs clean.