kaleidawave / ezno

A JavaScript compiler and TypeScript checker written in Rust with a focus on static analysis and runtime performance
https://kaleidawave.github.io/posts/introducing-ezno/
MIT License
2.3k stars 42 forks source link

More configuration and per file options/configuration #104

Open kaleidawave opened 6 months ago

kaleidawave commented 6 months ago

Currently there exists TypeCheckOptions, which offers some very basic configuration that isn't really implemented.

Thinking further about configuring the checker for certain things. I think it needs to be more granular than a bunch of bools that apply to ever piece of code in the project.

Maybe one package allows console + 2 etc. Maybe another needs to parse comments for JSDoc. Things such as calling new (function x() {}) might be disallowed for user functions (which could provide speedups for the compiler etc).

Somethings to think about: