-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from Kevin-Umali/feature/TL-DYS-24
[TL-DYS-24] [TL-DYS-25] Added .gitattributes
- Loading branch information
Showing
2 changed files
with
75 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# Handle line endings automatically for files detected as text | ||
# and leave all files detected as binary untouched. | ||
* text=auto | ||
|
||
# Binary files - these should not be modified in any way. | ||
*.png binary | ||
*.jpg binary | ||
*.jpeg binary | ||
*.gif binary | ||
*.webp binary | ||
*.svg binary | ||
*.ico binary | ||
*.woff binary | ||
*.woff2 binary | ||
*.eot binary | ||
*.ttf binary | ||
*.otf binary | ||
|
||
# Force TypeScript and JavaScript to use LF | ||
*.ts eol=lf | ||
*.tsx eol=lf | ||
*.js eol=lf | ||
*.jsx eol=lf | ||
|
||
# CSS and SCSS files should use LF too. | ||
*.css eol=lf | ||
*.scss eol=lf | ||
|
||
# Ensure `.env` files are treated as text, but with Unix line endings for consistency. | ||
.env* eol=lf | ||
|
||
# Don't allow Git to change line endings in shell scripts. | ||
*.sh eol=lf | ||
|
||
# Ensure JSON files use LF for consistency. | ||
*.json eol=lf | ||
|
||
# Markdown files can use platform's default or can be forced to a specific line ending. | ||
*.md text |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# Handle line endings automatically for files detected as text | ||
# and leave all files detected as binary untouched. | ||
* text=auto | ||
|
||
# Binary files - these should not be modified in any way. | ||
*.png binary | ||
*.jpg binary | ||
*.jpeg binary | ||
*.gif binary | ||
*.ico binary | ||
*.pdf binary | ||
|
||
# Force TypeScript and JavaScript to use LF | ||
*.ts eol=lf | ||
*.js eol=lf | ||
|
||
# Ensure JSON files (like package.json) use LF for consistency. | ||
*.json eol=lf | ||
|
||
# .env files can have sensitive information and are usually used for configuration. | ||
# Ensure they use LF for consistency. | ||
.env* eol=lf | ||
|
||
# If you have database migration or seed scripts, you might want to ensure LF endings. | ||
*.sql eol=lf | ||
|
||
# Shell scripts (if you have any utility scripts for the server) | ||
*.sh eol=lf | ||
|
||
# If you use YAML for configuration or Docker | ||
*.yml eol=lf | ||
*.yaml eol=lf | ||
|
||
# Markdown and other documentation files can use platform's default or can be forced to a specific line ending. | ||
*.md text | ||
*.txt text |