Skip to content

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.

Now loading...

🔧 Options ​

Nothing.

📚 Further reading ​

🚀 Version ​

This rule was introduced in eslint-plugin-regexp v0.6.0

🔍 Implementation ​