We are using configuration as below to support different IDE:
# Eclipse related (and M2e)
.classpath
.project
.settings/
.metadata/
test-output/
# Maven related (and some plugins)
target/
*~
dist
*.ser
*.ec
# Intellij
*.ipr
*.iml
*.iws
.idea
.temp
# Other
.svn/
bin/
bak/
*.log
*.orig
*.versionsBackup