Skip to content

Fix: Improve detection of static url strings in require-meta-docs-url rule #162

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

Merged

Conversation

bmish
Copy link
Member

@bmish bmish commented Jul 10, 2021

  • Add static value detection for url variables
  • Ignore when we can't statically determine the value of a given url, so people can use their own getUrl() function if they want
  • Improve reporting location and tests for this
  • Use messageId
  • Add tests

@bmish bmish force-pushed the require-meta-docs-url-static-fix branch from aad2c10 to f07ba05 Compare July 10, 2021 17:14
…url` rule

* Add static value detection for `url` variables
* Ignore when we can't statically determine the value of a given `url`
* Improve reporting location and tests for this
* Use `messageId`
* Add tests
@bmish bmish force-pushed the require-meta-docs-url-static-fix branch from f07ba05 to 0e2b725 Compare July 10, 2021 17:15
@bmish
Copy link
Member Author

bmish commented Jul 11, 2021

Thanks for reviewing the PRs @aladdin-add! I have another one to open after this one.

@aladdin-add aladdin-add merged commit 0459f12 into eslint-community:master Jul 11, 2021
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