-
Notifications
You must be signed in to change notification settings - Fork 100
Added convertFileComments API #821
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
Conversation
|
||
The individual per-file conversion logic within `convertComments` is available as a standalone function: | ||
|
||
### `convertFileComments` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JamesHenry this is published under v2.0.0-beta4 now, if you want to try it out. Is this the kind of API you're looking for?
I'd recommend using both ruleCommentsCache
(for a small perf boost) and ruleEquivalents
(for rule accuracy per arguments).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ooh I missed this tip and just used your snippet in the description, I'll look at adding them in
Thanks so much for the super fast turnaround! On the face of it this is exactly what I need. It's getting late here but I'll definitely incorporate this into the PR this week, thanks again! |
Confirmed also happens with beta3, but not when restoring to beta2 which is where I was before |
Oh you know what, I probably neglected to remove Published a beta5. If that still has the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems to be working great for my use-case! Thanks again
PR Checklist
status: accepting prs
Overview
Adds a synchronous single-file-use function to convert a file's contents as a string into its ESLint equivalent.