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

feat: fixText command should respect ruleId #10

Merged
merged 2 commits into from
Jul 30, 2020

Conversation

georgeOsdDev
Copy link
Contributor

fixText command should respect ruleId

Before
before

After
after

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.

Thanks for PR.

I've commented.

@@ -72,7 +72,7 @@ const attachTextChecker = (targetElement: HTMLTextAreaElement) => {
});
});
};
const fixText = async (message: string): Promise<TextlintFixResult> => {
const fixText = async (message: string, ruleId: string): Promise<TextlintFixResult> => {
Copy link
Member

@azu azu Jul 30, 2020

Choose a reason for hiding this comment

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

Probably, we need to change this argument to object based.

  • message
  • ruleId
  • ext(not yet)

It will be do when need it.

@azu azu merged commit 69e68f1 into textlint:master Jul 30, 2020
@azu
Copy link
Member

azu commented Jul 30, 2020

Thanks! Nice catch!

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.

2 participants