Skip to content

Commit

Permalink
Merge pull request #6 from Kevin-Umali/feature/TL-DYS-24
Browse files Browse the repository at this point in the history
[TL-DYS-24] [TL-DYS-25] Added .gitattributes
  • Loading branch information
poorsyaaa authored Sep 22, 2023
2 parents 038cd7e + 35332e0 commit 5821901
Show file tree
Hide file tree
Showing 2 changed files with 75 additions and 0 deletions.
39 changes: 39 additions & 0 deletions client/.gitattributes
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
36 changes: 36 additions & 0 deletions server/.gitattributes
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

0 comments on commit 5821901

Please sign in to comment.