Config Files
Using JSON6 for configuration files in popular tools and frameworks.
TL;DR: Many popular tools support JSON6 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 JSON6 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 JSON6 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 JSON6 semantics, so comments and trailing commas work. Document your presets and plugins.
Linting .json6 with ESLint
ESLint config files are JavaScript, not JSON6. What ESLint does offer is the @eslint/json plugin, which lints your .json6 files.
JSON6 Support Matrix
Which tools support JSON6 features natively.
| Tool | Comments | Trailing Commas | Full JSON6 | Config File |
|---|---|---|---|---|
| TypeScript | tsconfig.json | |||
| Babel | babel.config.json | |||
| ESLint | JS only; lints .json6 | |||
| 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.