Skip to content

Commit 7ee3f3a

Browse files
Chadota-meshi
Chad
andauthored
Use trim instead of both trimStart an trimEnd
Co-authored-by: Yosuke Ota <otameshiyo23@gmail.com>
1 parent 086ec30 commit 7ee3f3a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rules/no-raw-text.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ function checkSvelteLiteralOrText(
111111
const loc = literal.loc!
112112
context.report({
113113
loc,
114-
message: `raw text '${literal.value.trimStart().trimEnd()}' is used`
114+
message: `raw text '${literal.value.trim()}' is used`
115115
})
116116
}
117117

0 commit comments

Comments
 (0)