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

Add URL to rule documentation to the metadata #59

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Arcanemagus
Copy link

ESLint v4.15.0 added an official location for rules to store a URL to their documentation in the rule metadata in eslint/eslint#9788. This adds the URL to all the existing rules so anything consuming them can
know where their documentation is without having to resort to external packages to guess.

@Arcanemagus
Copy link
Author

Looks like the build failure is unrelated to this PR.

@graingert
Copy link
Collaborator

I've recently merged #62 which fixed the travis tests. Please could you rebase this PR to re-run the travis tests.

@Arcanemagus
Copy link
Author

@graingert Rebased, and the specs pass now 😉.

@graingert
Copy link
Collaborator

@Arcanemagus make it match eslint-plugin-lodash wix-incubator/eslint-plugin-lodash@8e3f4dc

@Arcanemagus
Copy link
Author

Sorry, just saw your comment. I'll update that to match. (Funny that they copied a PR I did to another eslint-plugin-* project and didn't link to it...)

@graingert
Copy link
Collaborator

Great, thanks!

ESLint v4.15.0 added an official location for rules to store a URL to
their documentation in the rule metadata in eslint/eslint#9788. This
adds the URL to all the existing rules so anything consuming them can
know where their documentation is without having to resort to external
packages to guess.
@Arcanemagus
Copy link
Author

Updated, the function will return a URL that uses the tagged documentation for the exact version the user has installed.

If there are any other changes let me know 😉.

@graingert
Copy link
Collaborator

Great, thanks! I probably won't be able to get back to this until Monday

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants