Skip to content

jsonc (and yaml/toml) configuration file support #79

@csjewell

Description

@csjewell

Clear and concise description of the problem

I like being able to put comments in my json files. I understand that (updated versions of) c12 support those file formats, so it SHOULD be as easy as changing the line I linked in the "Suggested solution" area. If I get time soon, and you'd like, I'll create a PR (cannot do it until Saturday at least, sorry!)

Suggested solution

This should be the line to change, if I'm understanding your code correctly:

const candidates = ['js', 'mjs', 'ts', 'mts', 'json'].map(ext => `${name}.config.${ext}`)

Alternative

No response

Additional context

No response

Validations

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions