Skip to content

Support comments in config files #1125

Closed as not planned
Closed as not planned

Description

@tylerbutler

Problem

changesets uses JSON for its config file format. Unfortunately JSON doesn't support comments which makes it hard to document the configuration. This is especially important in a larger team where few developers change the config very often. We can document things in the readme, but our experience is that inline comments are a better solution.

Proposed solution

One option would be to use a JSON with comments parser. Another might be to use something like cosmiconfig to support a bunch of formats including JavaScript itself.

Activity

  1. cdaringe commented on Sep 8, 2023

    @cdaringe

    i want the format in JS, as my linked packages need to be looked up automatically, as a different entity controls this contraint. would be great to produce my linked packages, ...which then allows comments intrinsically :)

  2. bluwy commented on Oct 6, 2024

    @bluwy
    Member

    Related: #1089

  3. beeequeue commented on Jun 9, 2026

    @beeequeue
    Member

    supporting json5 or jsonc requires new dependencies we don't want in the project

    closing in favor of #1089 (JS/TS config support, which allows comments)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions