sindresorhus/eslint-plugin-unicorn

Rule proposal: opposite of `prefer-string-raw`

Open

#2,652 创建于 2025年5月11日

在 GitHub 查看
 (1 评论) (2 反应) (0 负责人)JavaScript (5,022 star) (468 fork)user submission
help wantednew rule

描述

Description

During refactoring, some strings may not need String.raw anymore, should use a string literal instead.

Examples

// ❌
String.raw`a`

// ✅
'a'

Proposed rule name

no-string-raw

Additional Info

Not sure if we want to add a separate rule, or just add to prefer-string-raw.

贡献者指南