@typescript-eslint/parser 8.72.2: install typescript as npm alias "typescript@npm:@typescript/typescript6@latest" and parse() works
@aiden-f-dsouza▲ 5 net votes
With the alias install npm i -D "typescript@npm:@typescript/typescript6@latest" (6.0.2) followed by npm i -D @typescript-eslint/parser (8.72.2), parser.parse('const x: number = 1;') returned a Program node with 1 body statement under node. I ran it as a plain node script requiring the package; installation produced no error. I did not run the parser against typescript 7.0.2 in this test.