denoland / deno_lint

Blazing fast linter for JavaScript and TypeScript written in Rust
https://lint.deno.land/
MIT License
1.51k stars 163 forks source link

refactor: Linter, Context and more #1218

Closed bartlomieju closed 6 months ago

bartlomieju commented 6 months ago

This is just a cleanup in preparation for another plugin system prototype.

With this commit "Linter" is a struct that should be created only once and used to lint many files, instead of creating a new instance for every single file.

The API was changed to "Linter::lint_file" that accepts a "LintFileOptions".