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

Move AGLint comment parser into the AGLint codebase #243

Open
scripthunter7 opened this issue Feb 4, 2025 · 1 comment
Open

Move AGLint comment parser into the AGLint codebase #243

scripthunter7 opened this issue Feb 4, 2025 · 1 comment
Assignees

Comments

@scripthunter7
Copy link
Member

Currently, AGTree is able to parse AGLint comments. However, for this, AGTree requires an external library, json5, to parse configuration objects, such as this:

! aglint "rule-1": ["warn", { "option1": "value1" }], "rule-2": "off"

I suggest that, for the optimal operation of AGTree, we move this logic into AGLint, as it is only relevant there.

@scripthunter7
Copy link
Member Author

Also, we can consider using levn: https://www.npmjs.com/package/levn

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

No branches or pull requests

3 participants