sindresorhus/eslint-plugin-unicorn

`escape-case` breaks code

Chiusa

#2341 aperta il 8 mag 2024

 (1 commento) (0 reazioni) (0 assegnatari)JavaScript (468 fork)user submission
bughelp wanted

Metriche repository

Star
 (5022 stelle)
Metriche merge PR
 (Merge medio 1g 16h) (399 PR mergiate in 30 g)

Descrizione

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}

Guida contributor