Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support json5 syntax #73

Merged
merged 5 commits into from
Jan 7, 2023
Merged

Conversation

DonIsaac
Copy link
Contributor

@DonIsaac DonIsaac commented Dec 26, 2022

What This PR Does

Adds support for JSON5 syntax in config files. This addresses #69.

  • feat(loadFileConfigs) replace require() with fs.readFileSync() -> JSON5.parse()
  • test: add a comment to default.json to ensure JSON5 parsing works as expected
  • test(loadFileConfigs): replace require in similar manner as above while loading expected values

Note: we may want to bump the minor version after merging this PR

@tusharmath tusharmath merged commit dcb3705 into tusharmath:master Jan 7, 2023
tusharmath pushed a commit that referenced this pull request Jan 8, 2023
* test: add typedef tests

* chore: code cleanup

* feat: json5 support

* test: update test cases
@DonIsaac DonIsaac deleted the don/feat/json5 branch January 8, 2023 18:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants