sindresorhus/eslint-plugin-unicorn

`escape-case` breaks code

Closed

#2,341 opened on May 8, 2024

 (1 comment) (0 reactions) (0 assignees)JavaScript (468 forks)user submission
bughelp wanted

Repository metrics

Stars
 (5,022 stars)
PR merge metrics
 (Avg merge 1d 16h) (399 merged PRs in 30d)

Description

Tagged template literals are not safe to change cases.

(function (a) {console.log(a.raw[0])})`\u{00b1}`
// -> \u{00b1}

(function (a) {console.log(a.raw[0])})`\u{00B1}`
// -> \u{00B1}

Contributor guide