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

loadFixerFormatter is not use in example. #1195

Merged
merged 2 commits into from Jul 7, 2023
Merged

Conversation

k35o
Copy link
Contributor

@k35o k35o commented Jul 7, 2023

When I tried this sample code, I did not need loadFixerFormatter .So I deleted it.

Also, according to the type definition, fixText must require a file path as the second argument, which is correct?

@azu azu added the Type: Documentation Documentation only changes label Jul 7, 2023
@azu
Copy link
Member

azu commented Jul 7, 2023

fixText(text, filePath) is correct.
This change is introduced in v13.0.0. I forgot to update.

const result = await linter.fixText("TODO: fix me", "DUMMY.md");

@k35o
Copy link
Contributor Author

k35o commented Jul 7, 2023

@azu
Thank you.I fixed it.

@azu
Copy link
Member

azu commented Jul 7, 2023

The CI is a bit odd, but the fix is fine.

Thanks!

@azu azu merged commit 0ee7fc7 into textlint:master Jul 7, 2023
6 of 10 checks passed
@github-actions github-actions bot mentioned this pull request Nov 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Documentation Documentation only changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants