Disable the unicorn/prefer-string-replace-all
rule
#233
leroykorterink
started this conversation in
General
Replies: 2 comments 2 replies
-
We should not disable this rule because Please see the documentation of the rule. |
Beta Was this translation helpful? Give feedback.
0 replies
-
How does it do that according to you? // you prefer this?
string.replaceAll(/foo/g, 'bar');
// this is more verbose?
string.replaceAll('foo', 'bar'); To me it feels like the regular expression variants are more verbose than using But maybe we're missing the point, so I would love some examples :) |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
There is a proposal to disable the
unicorn/prefer-string-replace-all
rule.Beta Was this translation helpful? Give feedback.
All reactions