Skip to content

Commit

Permalink
chore: add translation content json files to .pretterignore (#1083)
Browse files Browse the repository at this point in the history
Whenever I make a change to the translation `json` files in
`/public/locales/en/*.json` it changes the format for the whole file,
which is annoying and a little risky. Merge conflicts are more common
and we should be able to track the specific changes within these files
when doing code review.

My solution is just to have Prettier ignore these translation files.
Alternatively, to solve this problem we could update all automation
scripts to match our prettier settings... but this is simpler.

Let me know if your thoughts on this change, any objections?
  • Loading branch information
peps authored Nov 19, 2024
1 parent 501ca5f commit 5b614b5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ coverage
# Ignore all HTML files:
**/*.html

# Ignore all JSON files in locales:
**/locales/**/*.json

# Logs
logs
*.log
Expand Down

0 comments on commit 5b614b5

Please sign in to comment.