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

fix(textlint): fix an error on compats fixer formatter #980

Merged
merged 1 commit into from Jan 4, 2023

Conversation

Sean0628
Copy link
Contributor

@Sean0628 Sean0628 commented Jan 4, 2023

This PR tries to fix a bug that occurs when the compats option is specified for the fixer formatter.

Closes #979

TEST

>>> npm install /Users/sho0628/projects/textlint/packages/@textlint/fixer-formatter /Users/sho0628/projects/textlint/packages/textlint --save-dev

>>> npx textlint file.md --fix --format compats
Fixed✔ /Users/sho0628/projects/textlint_test/file.md: line 2, col 7, Error - Should remove period mark(".") at end of list item. (period-in-list-item)


Fixed 1 problem

Modify to export the function as default, and add test cases for it.

Closes textlint#979
Copy link
Member

@azu azu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@azu azu merged commit 8c7d3c6 into textlint:master Jan 4, 2023
@Sean0628 Sean0628 deleted the fix/error_on_compats_option branch January 4, 2023 13:47
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 this pull request may close these issues.

--fix with --format compats raises an unexpected error
2 participants