# languages: Support more JSON configuration files \(\#50800\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 84d70ced053288c6a204867620fa4c55e4824d10

Requested commit: 84d70ced053288c6a204867620fa4c55e4824d10

Commit: 84d70ced053288c6a204867620fa4c55e4824d10

Tree: 90045129f19a9c4ab79d441133914d4e8a8935a6

Author: Rodrigo

Committer: GitHub

## Message

```
languages: Support more JSON configuration files (#50800)

Several widely used configuration files are JSON but have no `.json`
extension,
such as `.babelrc` or `.eslintrc`.

Editors like VS Code detect these as JSON automatically, but Zed
currently
treats them as plain text.

This change adds common JSON config suffixes so they get proper JSON
syntax
highlighting.

Added:
- [`.babelrc`](https://babeljs.io/docs/config-files)
-
[`.eslintrc`](https://archive.eslint.org/docs/user-guide/configuring/configuration-files)
- [`.stylelintrc`](https://stylelint.io/user-guide/configure/)
- [`.swcrc`](https://github.com/swc-project/swc/pull/4236)

Before you mark this PR as ready for review, make sure that you have:
- [x] Added a solid test coverage and/or screenshots from doing manual
testing
- [ ] Done a self-review taking into account security and performance
aspects
- [ ] Aligned any UI changes with the [UI
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)

Release Notes:

- Support more JSON configuration files
```

## Parents

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

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