regexp/prefer-escape-replacement-dollar-char
enforces escape of replacement
$
character ($$
).
📖 Rule Details
This rule aims to enforce correct dollar sign escapes ($$
) when using $
in replacement pattern of string replacements.
🔧 Options
Nothing.
👫 Related rules
📚 Further reading
🚀 Version
This rule was introduced in eslint-plugin-regexp v0.6.0