sindresorhus/eslint-plugin-unicorn

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

Open

#2,652 opened on 2025年5月11日

GitHub で見る
 (1 comment) (2 reactions) (0 assignees)JavaScript (5,022 stars) (468 forks)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.

コントリビューターガイド

Rule proposal: opposite of `prefer-string-raw` · sindresorhus/eslint-plugin-unicorn#2652 | Good First Issue