JavaScript

JavaScript

Made by DeepSource

Found unnecessary escape characters JS-0097

Anti-pattern
Minor

Escaping non-special characters in strings, template literals, and regular expressions doesn't have any effect.

Bad Practice

"\'";
'\"';
"\#";
"\e";
`\"`;
`\"${foo}\"`;
`\#{foo}`;
/\!/;
/\@/;

Recommended

"\"";
'\'';
"\x12";
"\u00a9";
"\371";
"xs\u2111";
`\``;
`\${${foo}}`;
`$\{${foo}}`;
/\/g;
/\t/g;
/\w\$\*\^\./;