Skip to content

test: add tests for JSON5 parsing in JSONLanguage #114

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

Merged

Conversation

lumirlumir
Copy link
Member

Prerequisites checklist

What is the purpose of this pull request?

Hello,

In this PR, I've added tests for JSON5 parsing in JSONLanguage.

I noticed that test cases for JSON5 parsing were missing, so I added them.

Additionally, I fixed some typos and removed unnecessary empty spaces for style formatting.

What changes did you make? (Give an overview)

Related Issues

Is there anything you'd like reviewers to focus on?

@github-project-automation github-project-automation bot moved this to Needs Triage in Triage Jun 20, 2025
@lumirlumir lumirlumir requested a review from a team June 20, 2025 07:25
@@ -1,5 +1,5 @@
/**
* @filedescription Functions to fix up rules to provide missing methods on the `context` object.
* @fileoverview The JSONLanguage class.
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* @fileoverview The JSONLanguage class.
* @fileoverview The JSONLanguage class.

I think the previous description was somewhat incorrect. FYI, CSS Language uses a similar description as well.

https://github.com/eslint/css/blob/main/src/languages/css-language.js#L2

@lumirlumir
Copy link
Member Author

@mdjermanovic Thanks for your suggestion. I've added a new commit 272ebb4

@lumirlumir lumirlumir requested a review from mdjermanovic June 20, 2025 09:53
Copy link
Member

@mdjermanovic mdjermanovic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@mdjermanovic mdjermanovic merged commit 3f754f7 into main Jun 20, 2025
22 checks passed
@mdjermanovic mdjermanovic deleted the test-enhance-tests-for-json5-parsing-in-json-language branch June 20, 2025 12:02
@github-project-automation github-project-automation bot moved this from Needs Triage to Complete in Triage Jun 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Complete
Development

Successfully merging this pull request may close these issues.

2 participants