sveltedoc-parser icon indicating copy to clipboard operation
sveltedoc-parser copied to clipboard

parse without eslint

Open benmccann opened this issue 1 year ago • 3 comments

I was wondering if there might be another way to parse such as using zimmerframe because eslint is a very heavy dependency

https://npmgraph.js.org/?q=sveltedoc-parser

benmccann avatar Sep 12 '24 16:09 benmccann

It looks like it's being used for comments, but I'm not sure it's necessary. This method seems to be able to handle comments without using eslint:

https://github.com/xeho91/svelte-ast-print/blob/5fa160ad48db333d95e695b5d36e3a4e7fdd28c0/tests/nodes/script.test.ts#L84

benmccann avatar Sep 12 '24 19:09 benmccann

ESLint 8, which this package uses, has recently been deprecated. @alexprey, do you by any chance have plans to update to ESLint 9 or replace the parser?

Sidnioulz avatar Oct 07 '24 14:10 Sidnioulz

Given the fact that @alexprey (sadly) wasn't active on github for at least over a year, this might be a dead end and the lib should be considered unmaintained…

I hope he is doing fine and it's just a matter of priorities, but it might be worth discussing to fork the lib to get it up to date with dependencies and requirements by the projects that rely on it…

benbender avatar Oct 24 '24 09:10 benbender