#117

JSON5 Support

Openmichidkopened 1mo ago

Feature Description

It would be useful to support JSON5 syntax in konsistent configuration and reusable convention files, so rules can include comments, unquoted keys, single-quoted strings, and trailing commas.

Suggested Implementation

We have an implementation ready on michidk/konsistent:feat/json5-support (compare changes). It uses the JSON5 parser for all configuration and reusable convention files, including existing .json filenames. Valid JSON remains supported, and schema validation is unchanged. It also discovers konsistent.json5 after konsistent.json and supports explicit paths and npm packages.

The branch includes tests, documentation, CLI help updates, and a changeset. The latest change passes the build, type checking, linting, 58 affected unit tests, and 5 CLI tests.

We're happy to open a PR, but attempting to create one gives this error:

Validation failed: must be a collaborator

Would you be open to this contribution, and could you enable me to submit the PR?

Activity

0

No activity yet.