You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We want to support suggestion on editor like VSCode. --fix is useful but it provide only a single suggestion.
Also, User can not excludes some fix that is not want to fix.
Some rules want to provide multiple suggestions.
This proposal will near to current fix property.
LLM (Large Language Model) checking is becoming more and more practical.
On the other hand, machine learning-based is not an automatic modification like Lint, but is more appropriate for users to select modifications. This is because it is a matter of probability.
This requires user-oriented interactivity.
Proposal
Add suggest property to RuleError
suggest should have an array of object that has id and fix and message property
The suggest property will be into TextlintMessage
textlint cli may does not provide fixing function the suggest at first
This fixing need to use id of suggestion.(ESLint does not have the id)
It will need new funciton in kernel to fix text with message
Purpose
We want to support suggestion on editor like VSCode.
--fix
is useful but it provide only a single suggestion.Also, User can not excludes some fix that is not want to fix.
Some rules want to provide multiple suggestions.
This proposal will near to current
fix
property.LLM (Large Language Model) checking is becoming more and more practical.
On the other hand, machine learning-based is not an automatic modification like Lint, but is more appropriate for users to select modifications. This is because it is a matter of probability.
This requires user-oriented interactivity.
Proposal
suggest
property to RuleErrorsuggest
should have an array of object that hasid
andfix
andmessage
propertysuggest
property will be intoTextlintMessage
textlint
cli may does not provide fixing function the suggest at firstid
of suggestion.(ESLint does not have theid
)TODO:
new RuleSuggest(message, { suggest: [ ... ] })
ornew RuleError(message, { serverity: "info" })
RuleError
will be an errortextlint
CLI?Similar Works:
The text was updated successfully, but these errors were encountered: