0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-02-23 13:43:31 -05:00
denoland-deno/cli/tools/lint
Marvin Hagemeister 703fdd8607
fix: panic with js lint plugins and invalid js syntax (#28006)
Noticed that the LSP might panic during serialization when working on a
file with a syntax error.

This PR changes the serialization so that invalid nodes are simply
serialized to the invalid node `0`. The plugin code treats the node with
id `0` as an invalid node and will ignore it during visiting.

I'm not sure how to write a test for the LSP.
2025-02-07 12:35:44 +01:00
..
ast_buffer fix: panic with js lint plugins and invalid js syntax (#28006) 2025-02-07 12:35:44 +01:00
rules fix(check): support sloppy imports with "compilerOptions.rootDirs" (#27973) 2025-02-05 23:08:10 +00:00
linter.rs feat(lint): add JavaScript plugin support (#27203) 2025-02-05 16:59:24 +01:00
mod.rs fix(check): support sloppy imports with "compilerOptions.rootDirs" (#27973) 2025-02-05 23:08:10 +00:00
plugins.rs feat(lint): add JavaScript plugin support (#27203) 2025-02-05 16:59:24 +01:00
reporters.rs feat(lint): add JavaScript plugin support (#27203) 2025-02-05 16:59:24 +01:00