From f1dd483f8a72141ff573a2444a33bf7c31473b9f Mon Sep 17 00:00:00 2001 From: Pixel Date: Sun, 20 Sep 2026 18:28:01 +0300 Subject: [PATCH] refactor: remove `isWellFormed` existence check in `no-unsafe-values` --- src/rules/no-unsafe-values.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/rules/no-unsafe-values.js b/src/rules/no-unsafe-values.js index 75007d43..74e9b964 100644 --- a/src/rules/no-unsafe-values.js +++ b/src/rules/no-unsafe-values.js @@ -128,10 +128,8 @@ export default /** @satisfies {NoUnsafeValuesRuleDefinition} */ ({ } }, String(node) { - if (node.value.isWellFormed) { - if (node.value.isWellFormed()) { - return; - } + if (node.value.isWellFormed()) { + return; } // match any high surrogate and, if it exists, a paired low surrogate // match any low surrogate not already matched