AGLint icon indicating copy to clipboard operation
AGLint copied to clipboard

Move AGLint comment parser into the AGLint codebase

Open scripthunter7 opened this issue 9 months ago • 1 comments

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 avatar Feb 04 '25 14:02 scripthunter7

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

scripthunter7 avatar Feb 04 '25 14:02 scripthunter7