From 9f9bef4175f04a292cb71ac2737d8e5bceeae9dc Mon Sep 17 00:00:00 2001 From: Marshall Bowers Date: Mon, 29 Jan 2024 23:11:25 -0500 Subject: [PATCH] Prevent GitHub from displaying comments within JSON files as errors (#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 --- .gitattributes | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000000..9973cfb4db --- /dev/null +++ b/.gitattributes @@ -0,0 +1,2 @@ +# Prevent GitHub from displaying comments within JSON files as errors. +*.json linguist-language=JSON-with-Comments