- 
                Notifications
    You must be signed in to change notification settings 
- Fork 35.8k
Closed
Labels
feature-requestRequest for new features or functionalityRequest for new features or functionalityjsonJSON support issuesJSON support issuesverification-neededVerification of issue is requestedVerification of issue is requestedverifiedVerification succeededVerification succeeded
Milestone
Description
Babel recommends using babel.config.json since a while back. Their JSON is parsed as JSON5, which supports comments. As such babel.config.json should have the language identifier jsonc. In addition the file .babelrc.json should also be get the same language id.
See https://babeljs.io/docs/en/config-files#supported-file-extensions
The change should be done here:
vscode/extensions/json/package.json
Lines 45 to 63 in 1cce707
| { | |
| "id": "jsonc", | |
| "aliases": [ | |
| "JSON with Comments" | |
| ], | |
| "extensions": [ | |
| ".jsonc", | |
| ".eslintrc", | |
| ".eslintrc.json", | |
| ".jsfmtrc", | |
| ".jshintrc", | |
| ".swcrc", | |
| ".hintrc", | |
| ".babelrc" | |
| ], | |
| "filenames": [ | |
| ".ember-cli" | |
| ], | |
| "configuration": "./language-configuration.json" | 
Note that .babelrc is still valid and should continue being identified as jsonc.
Metadata
Metadata
Assignees
Labels
feature-requestRequest for new features or functionalityRequest for new features or functionalityjsonJSON support issuesJSON support issuesverification-neededVerification of issue is requestedVerification of issue is requestedverifiedVerification succeededVerification succeeded