-
-
Notifications
You must be signed in to change notification settings - Fork 381
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
Add string-content
rule
#496
Conversation
0ed7ffa
to
083bda0
Compare
d6c5331
to
98abe3e
Compare
98abe3e
to
f3f6807
Compare
You're not waiting for feedback from me on anything here, right? |
I'm not, but I have problem with this, harder than I thought. I'll explain later when I need your help. |
# Conflicts: # index.js # readme.md
a3af945
to
0d36d5f
Compare
0d36d5f
to
db71fc0
Compare
5b373b7
to
cb7003f
Compare
@sindresorhus Set default to I suggest set default to |
Yes, it should be off by default. I will enable it in XO with some useful patterns, but I think that's too opinionated for this general plugin. |
@sindresorhus This PR is ready for review. Something I need explain first, I set this rule only report one error a time on one string node, for the following reasons.
If we check all patterns on the original string, we will get two problem with 2 fixes, so we get fix
If we check
Another thing, may need discuss, I run check on |
You can give the
|
I've tried this before, not useful for this case. |
Alright. Let's at least document that it only reports one thing per node. |
@fisker I think there's only https://github.com/sindresorhus/eslint-plugin-unicorn/pull/496/files#r386895029 left and this is ready to be merged? |
@sindresorhus I've add a simple description 9c0953d . Not sure what else you want add here. Maybe you can help, I'm really bad at docs . |
fixes #327
IssueHunt Summary
Referenced issues
This pull request has been submitted to:
string-content
IssueHunt has been backed by the following sponsors. Become a sponsor