---
source: crates/oxc_linter/src/tester.rs
---
  ⚠ eslint-plugin-unicorn(prefer-string-trim-start-end): Prefer `trimStart` over `trimLeft`
   ╭─[prefer_string_trim_start_end.tsx:1:5]
 1 │ foo.trimLeft()
   ·     ────────
   ╰────
  help: Replace with `trimStart`

  ⚠ eslint-plugin-unicorn(prefer-string-trim-start-end): Prefer `trimEnd` over `trimRight`
   ╭─[prefer_string_trim_start_end.tsx:1:5]
 1 │ foo.trimRight()
   ·     ─────────
   ╰────
  help: Replace with `trimEnd`

  ⚠ eslint-plugin-unicorn(prefer-string-trim-start-end): Prefer `trimEnd` over `trimRight`
   ╭─[prefer_string_trim_start_end.tsx:1:10]
 1 │ trimLeft.trimRight()
   ·          ─────────
   ╰────
  help: Replace with `trimEnd`

  ⚠ eslint-plugin-unicorn(prefer-string-trim-start-end): Prefer `trimEnd` over `trimRight`
   ╭─[prefer_string_trim_start_end.tsx:1:14]
 1 │ foo.trimLeft.trimRight()
   ·              ─────────
   ╰────
  help: Replace with `trimEnd`

  ⚠ eslint-plugin-unicorn(prefer-string-trim-start-end): Prefer `trimStart` over `trimLeft`
   ╭─[prefer_string_trim_start_end.tsx:1:7]
 1 │ "foo".trimLeft()
   ·       ────────
   ╰────
  help: Replace with `trimStart`

  ⚠ eslint-plugin-unicorn(prefer-string-trim-start-end): Prefer `trimStart` over `trimLeft`
   ╭─[prefer_string_trim_start_end.tsx:1:6]
 1 │ foo?.trimLeft()
   ·      ────────
   ╰────
  help: Replace with `trimStart`
