prefer-string-raw Prefer String.raw when backslashes are escaped only to preserve themselves Repeatedly escaping literal backslashes obscures paths, regular-expression source, and similar text. Instead, you SHOULD use a String.raw template when it preserves the same value without doubled backslashes. Strings containing value-producing escapes remain unchanged. - Category: style - Level: warning - Fix: automatic - Scope: module Reported function path(): string { return "C:\\windows\\system32"; } Accepted function path(): string { return String.raw`C:\windows\system32`; } Prior art - eslint-plugin-unicorn ยท prefer-string-raw language/linter/src/rules/style/preferstringraw.rs:8