We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
string-content
Rule: https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/string-content.md
Issues reported in xojs/xo#439 (comment)
I initially suggested this rule in #327 but I'm not able to use it for my original case because it applies to strings that shouldn't be changed.
I think this rule should instead be applied only in some cases, via whitelist.
An example would be:
const description = 'More...'
{description: 'More...'}
FeatureMeta['description']
indent
ignoreNodes
This would probably replace the current tag-based blacklist.
The text was updated successfully, but these errors were encountered:
unicorn/string-content
I think node selector is a good idea, but people might not familiar with that syntax.
Sorry, something went wrong.
People do use that https://github.com/search?l=JSON&q=indent+ignoredNodes&type=Code
people might not familiar with that syntax. Indeed.
I use it too, but I just copy-pasted it from some GitHub issue.
No branches or pull requests
Rule: https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/string-content.md
Issues reported in xojs/xo#439 (comment)
I initially suggested this rule in #327 but I'm not able to use it for my original case because it applies to strings that shouldn't be changed.
I think this rule should instead be applied only in some cases, via whitelist.
An example would be:
const description = 'More...'
{description: 'More...'}
FeatureMeta['description']
indent
rule’signoreNodes
(not sure if this is applicable)This would probably replace the current tag-based blacklist.
The text was updated successfully, but these errors were encountered: