-
-
Notifications
You must be signed in to change notification settings - Fork 3
message url #15
Comments
Yes agreed! I'm open to suggestions: do you have ideas? |
When you say supporting solutions?: Array<{
title?: string,
position: Range,
priority?: number,
currentText?: string,
replaceWith: string,
} | {
title?: string,
position: Range,
priority?: number,
apply: (() => any),
}>,
// ^ Possible solutions to the error (user can invoke them at will) |
Yup, sorry, both like this: remarkjs/remark-lint#82, and like this: retextjs/retext-simplify@8ec7ce8 |
First case was meant to be 'solutions', second was meant as suggestions for a better API and more features/properties! |
I like the idea of solutions. A single 'fix'/'apply' function makes sense for Something that confused colleagues with The other thing I've been thinking about is the difference between And urls. How much ✨ magic ✨ would you want in the url handling? Eslint use eslint-rule-documentation and determines the url based on the rule name and a map of plugins and repository urls. Could do something similar. It may just be easier for each rule to set it's own value for url in the vfile message, and mention the url property in the vfile documentation. Also... have you considered using flow? |
Yes, I get that! Though
Could you expand on how you see that working?
I’d say no magic at all, just a
No, reason: I don’t like compiling, I like JavaScript! |
I opened vfile/vfile#21 to work on this! |
From steelbrain/linter-ui-default#205, there is a url on the
linter
messageeslint uses a url to link to the rule documentation https://github.com/jfmengels/eslint-rule-documentation
unified-engine-atom
could do something similarThe text was updated successfully, but these errors were encountered: