# Prevent GitHub from displaying comments within JSON files as errors \(\#7043\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/9f9bef4175f04a292cb71ac2737d8e5bceeae9dc)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 9f9bef4175f04a292cb71ac2737d8e5bceeae9dc

Requested commit: 9f9bef4175f04a292cb71ac2737d8e5bceeae9dc

Commit: 9f9bef4175f04a292cb71ac2737d8e5bceeae9dc

Tree: 52d7dcfd528fc7186013b1c57ffbf7ccd47955c0

Author: Marshall Bowers

Committer: GitHub

## Message

```
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
```

## Parents

- [31e95265440ef5bdca142b3c809bb46e97906e6d](https://git.cafe/gitcafe/zed/commit/31e95265440ef5bdca142b3c809bb46e97906e6d?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/9f9bef4175f04a292cb71ac2737d8e5bceeae9dc?format=markdown)
