Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linter should be initialized lazily #2041

Closed
saberduck opened this issue Jul 24, 2020 · 0 comments · Fixed by #2045
Closed

Linter should be initialized lazily #2041

saberduck opened this issue Jul 24, 2020 · 0 comments · Fixed by #2045
Assignees
Milestone

Comments

@saberduck
Copy link
Contributor

Currently we call linter.defineRule and linter.getRules() functions everytime we analyze JS or TS file. These functions are costly, we should initialize linter once, and then reuse linterConfig for every subsequent invocation of analyze function.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant