Skip to content

Commit 086ec30

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

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
@@ -132,7 +132,7 @@ function checkLiteral(
132132
const loc = literal.loc!
133133
context.report({
134134
loc,
135-
message: `raw text '${String(value).trimStart().trimEnd()}' is used`
135+
message: `raw text '${String(value).trim()}' is used`
136136
})
137137
}
138138
/**

0 commit comments

Comments
 (0)