-
-
Notifications
You must be signed in to change notification settings - Fork 152
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
Suggest API #1122
Labels
Status: Proposal
Request for comments
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: