Config Files
Using JSON5 for configuration files in popular tools and frameworks.
TL;DR: Many popular tools support JSON5 or JSON with comments for their config files. This hub page links to specific guides for each tool showing how to add comments and use JSON5 features.
Build Tools
Configuration for build systems, bundlers, and development tools.
Frameworks
Configuration for popular JavaScript and web frameworks.
DevOps & Infrastructure
Configuration for containers, cloud, and serverless deployments.
Most Popular Config Files
These are the most searched JSON5 configuration topics. Start here if you're unsure where to begin.
tsconfig.json
Add comments to TypeScript configuration. TypeScript natively supports JSON with comments.
babel.config.json
Babel parses its JSON config files with JSON5 semantics, so comments and trailing commas work. Document your presets and plugins.
Linting .json5 with ESLint
ESLint config files are JavaScript, not JSON5. What ESLint does offer is the @eslint/json plugin, which lints your .json5 files.
JSON5 Support Matrix
Which tools support JSON5 features natively.
| Tool | Comments | Trailing Commas | Full JSON5 | Config File |
|---|---|---|---|---|
| TypeScript | tsconfig.json | |||
| Babel | babel.config.json | |||
| ESLint | JS only; lints .json5 | |||
| VS Code | settings.json | |||
| webpack | Via loader | |||
| Vite | Via plugin | |||
| npm | Strict JSON |
Need Help With a Specific Tool?
Start with our most popular guide or explore all configuration options.