Skip to content

Improve detection of static description strings and ignore non-static descriptions in require-meta-docs-description rule #113

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

Conversation

bmish
Copy link
Member

@bmish bmish commented May 8, 2021

Two changes:

  • Drastically improves detection of the description string value when it can be determined statically, including handling when the description is stored in a constant or created through string concatenation
  • If we cannot determine the string value of the description statically, then bail out and report no violations, so that users can dynamically generate the description if they'd like to

Fixes #97.

…-static descriptions in `require-meta-docs-description` rule

Two changes:
* Drastically improves detection of the `description` string value when it can be determined statically, including handling when the description is stored in a constant or created through string concatenation
* If we cannot determine the string value of the `description` statically, then bail out and report no violations, so that users can dynamically generate the description if they'd like to
Copy link
Contributor

@aladdin-add aladdin-add left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@aladdin-add aladdin-add merged commit 1840a53 into eslint-community:master May 9, 2021
@aladdin-add
Copy link
Contributor

released in v3.0.3!

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.

require-meta-docs-description does not support concatenated strings
2 participants