💼 This rule is enabled in the ✅ recommended
config.
🔧 This rule is automatically fixable by the --fix
CLI option.
String#trimLeft()
and String#trimRight()
are aliases of String#trimStart()
and String#trimEnd()
. This is to ensure consistency and use direction-independent wording.
const foo = bar.trimLeft();
const foo = bar.trimRight();
const foo = bar.trimStart();
const foo = bar.trimEnd();