Skip to content

Commit

Permalink
Prevent GitHub from displaying comments within JSON files as errors (…
Browse files Browse the repository at this point in the history
…#7043)

This PR adds a `.gitattributes` rule to prevent GitHub from displaying
comments within JSON files as errors.

We have a number of JSON files (e.g., settings) that make use of
comments, and having a bunch of red in a diff is annoying.

Release Notes:

- N/A
  • Loading branch information
maxdeviant authored Jan 30, 2024
1 parent 31e9526 commit 9f9bef4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Prevent GitHub from displaying comments within JSON files as errors.
*.json linguist-language=JSON-with-Comments

0 comments on commit 9f9bef4

Please sign in to comment.