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

Use link to tagged version for rule docs #1005

Merged
merged 1 commit into from
Jan 22, 2018

Conversation

sudo-suhas
Copy link
Contributor

This uses the version present in package.json for generating the URL to rule documentation if no commit-ish value is passed. I think this is good because the documentation will match the version the user has installed. This way, even if a rule is changed or removed in the future, the user can find the documentation with ease.

src/docsUrl.js Outdated
@@ -1,5 +1,7 @@
import pkg from '../package'
Copy link
Member

Choose a reason for hiding this comment

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

it'd be nice to use .json here (unless the linter objects)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

@coveralls
Copy link

coveralls commented Jan 22, 2018

Coverage Status

Coverage remained the same at 96.225% when pulling b2a5024 on sudo-suhas:docs-link-tagged into 655c33d on benmosher:master.

@coveralls
Copy link

coveralls commented Jan 22, 2018

Coverage Status

Coverage remained the same at 96.225% when pulling fa24082 on sudo-suhas:docs-link-tagged into 655c33d on benmosher:master.

@@ -1,13 +1,14 @@
import { expect } from 'chai'

import pkg from '../../../package'
Copy link
Member

Choose a reason for hiding this comment

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

also here :-)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yea.. realised it after the first push 😅. Done.

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

Successfully merging this pull request may close these issues.

3 participants