Skip to content

Instantly share code, notes, and snippets.

@niyaton
Last active December 27, 2019 09:36
Show Gist options
  • Save niyaton/e56e2f96b9d2e45a2b1b898db52a2cc5 to your computer and use it in GitHub Desktop.
Save niyaton/e56e2f96b9d2e45a2b1b898db52a2cc5 to your computer and use it in GitHub Desktop.
個人用汎用 editorconfig & .gitattributes
# http://editorconfig.org
root = true
[*]
indent_style = space
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
end_of_line = lf
[*.{ts,js}]
indent_size = 2
[*.py]
indent_size = 4
[*.rst]
indent_size = 4
[*.bat]
indent_style = tab
end_of_line = crlf
[*.md]
trim_trailing_whitespace = false
[.gitattributes]
indent_style = tab
[LICENSE]
insert_final_newline = false
[Makefile]
indent_style = tab
* text=auto
*.bat text eol=crlf
*.ini text
*.json text eol=lf
*.lock text eol=lf
*.md text eol=lf
*.py text eol=lf diff=python
*.rst text
*.ts text eol=lf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment