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

New: require-meta-docs-url (fixes #55) #56

Merged

Conversation

mysticatea
Copy link
Contributor

(Fixes #55)

This is a reference implementation of #55.

  1. This rule validates meta.docs.url property.
  2. This rule makes meta.docs.url property automatically if people set pattern option. This would reduce the cost of plugin's contributors.


- `pattern` (`string`) ... A pattern to enforce rule's document URL. It replaces `{{name}}` placeholder by each rule name. The rule name is the basename of each rule file. Default is undefined.

If you set the `pattern` option, this rule adds `meta.docs.url` property automatically when you executed `eslint --fix` command.
Copy link
Contributor

Choose a reason for hiding this comment

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

Nitpick: I think this should say "when you execute the eslint --fix command".

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank you, I fixed it!

@not-an-aardvark not-an-aardvark merged commit 114d2c7 into eslint-community:master Jan 14, 2018
@not-an-aardvark
Copy link
Contributor

Thanks!

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

Successfully merging this pull request may close these issues.

2 participants