You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
typescript-eslint supports Linting with Type Information. On its rule website you can click on "requires type information" to see all of its type-aware lints. It would be great if deno_lint could also support these rules (and type-aware linting in general).
However I think this is currently blocked since there isn't yet any TypeScript type checker implemented in Rust. There is stc but it's still under development. (The type-aware rules from typescript-eslint are powered by the getTypeChecker API that is part of the TypeScript compiler and implemented in TypeScript, this is not really an option for deno_lint since I assume we don't want deno_lint to depend on TypeScript.) See also TSC bottleneck and swc-project/swc#571.
So while we probably cannot do anything here to support type-aware linting yet, this issue serves as a reminder that we eventually do want to support it. (Which is important since while the typescript compiler does have a couple of strict compiler settings built-in more lintery-settings are generally provided by typescript-eslint via the getTypeChecker compiler API.)
List of type-aware typescript-eslint rules as of March 2023
typescript-eslint supports Linting with Type Information. On its rule website you can click on "requires type information" to see all of its type-aware lints. It would be great if deno_lint could also support these rules (and type-aware linting in general).
However I think this is currently blocked since there isn't yet any TypeScript type checker implemented in Rust. There is stc but it's still under development. (The type-aware rules from typescript-eslint are powered by the
getTypeChecker
API that is part of the TypeScript compiler and implemented in TypeScript, this is not really an option fordeno_lint
since I assume we don't wantdeno_lint
to depend on TypeScript.) See also TSC bottleneck and swc-project/swc#571.So while we probably cannot do anything here to support type-aware linting yet, this issue serves as a reminder that we eventually do want to support it. (Which is important since while the typescript compiler does have a couple of strict compiler settings built-in more lintery-settings are generally provided by typescript-eslint via the
getTypeChecker
compiler API.)List of type-aware typescript-eslint rules as of March 2023
The text was updated successfully, but these errors were encountered: