---
source: crates/oxc_linter/src/tester.rs
---
  ⚠ eslint-plugin-unicorn(no-zero-fractions): Don't use a zero fraction in the number.
   ╭─[no_zero_fractions.tsx:1:13]
 1 │ const foo = 1.0
   ·             ───
   ╰────
  help: Replace the number literal with `1`

  ⚠ eslint-plugin-unicorn(no-zero-fractions): Don't use a zero fraction in the number.
   ╭─[no_zero_fractions.tsx:1:13]
 1 │ const foo = 1.0 + 1
   ·             ───
   ╰────
  help: Replace the number literal with `1`

  ⚠ eslint-plugin-unicorn(no-zero-fractions): Don't use a zero fraction in the number.
   ╭─[no_zero_fractions.tsx:1:5]
 1 │ foo(1.0 + 1)
   ·     ───
   ╰────
  help: Replace the number literal with `1`

  ⚠ eslint-plugin-unicorn(no-zero-fractions): Don't use a zero fraction in the number.
   ╭─[no_zero_fractions.tsx:1:13]
 1 │ const foo = 1.00
   ·             ────
   ╰────
  help: Replace the number literal with `1`

  ⚠ eslint-plugin-unicorn(no-zero-fractions): Don't use a zero fraction in the number.
   ╭─[no_zero_fractions.tsx:1:13]
 1 │ const foo = 1.00000
   ·             ───────
   ╰────
  help: Replace the number literal with `1`

  ⚠ eslint-plugin-unicorn(no-zero-fractions): Don't use a zero fraction in the number.
   ╭─[no_zero_fractions.tsx:1:14]
 1 │ const foo = -1.0
   ·              ───
   ╰────
  help: Replace the number literal with `1`

  ⚠ eslint-plugin-unicorn(no-zero-fractions): Don't use a zero fraction in the number.
   ╭─[no_zero_fractions.tsx:1:13]
 1 │ const foo = 123123123.0
   ·             ───────────
   ╰────
  help: Replace the number literal with `123123123`

  ⚠ eslint-plugin-unicorn(no-zero-fractions): Don't use a zero fraction in the number.
   ╭─[no_zero_fractions.tsx:1:13]
 1 │ const foo = 123.11100000000
   ·             ───────────────
   ╰────
  help: Replace the number literal with `123.111`

  ⚠ eslint-plugin-unicorn(no-zero-fractions): Don't use a dangling dot in the number.
   ╭─[no_zero_fractions.tsx:1:13]
 1 │ const foo = 1.
   ·             ──
   ╰────
  help: Replace the number literal with `1`

  ⚠ eslint-plugin-unicorn(no-zero-fractions): Don't use a dangling dot in the number.
   ╭─[no_zero_fractions.tsx:1:14]
 1 │ const foo = +1.
   ·              ──
   ╰────
  help: Replace the number literal with `1`

  ⚠ eslint-plugin-unicorn(no-zero-fractions): Don't use a dangling dot in the number.
   ╭─[no_zero_fractions.tsx:1:14]
 1 │ const foo = -1.
   ·              ──
   ╰────
  help: Replace the number literal with `1`

  ⚠ eslint-plugin-unicorn(no-zero-fractions): Don't use a dangling dot in the number.
   ╭─[no_zero_fractions.tsx:1:13]
 1 │ const foo = 1.e10
   ·             ─────
   ╰────
  help: Replace the number literal with `110`

  ⚠ eslint-plugin-unicorn(no-zero-fractions): Don't use a dangling dot in the number.
   ╭─[no_zero_fractions.tsx:1:14]
 1 │ const foo = +1.e-10
   ·              ──────
   ╰────
  help: Replace the number literal with `1-10`

  ⚠ eslint-plugin-unicorn(no-zero-fractions): Don't use a dangling dot in the number.
   ╭─[no_zero_fractions.tsx:1:14]
 1 │ const foo = -1.e+10
   ·              ──────
   ╰────
  help: Replace the number literal with `1+10`

  ⚠ eslint-plugin-unicorn(no-zero-fractions): Don't use a dangling dot in the number.
   ╭─[no_zero_fractions.tsx:1:14]
 1 │ const foo = (1.).toString()
   ·              ──
   ╰────
  help: Replace the number literal with `1`

  ⚠ eslint-plugin-unicorn(no-zero-fractions): Don't use a zero fraction in the number.
   ╭─[no_zero_fractions.tsx:1:1]
 1 │ 1.00.toFixed(2)
   · ────
   ╰────
  help: Replace the number literal with `1`

  ⚠ eslint-plugin-unicorn(no-zero-fractions): Don't use a zero fraction in the number.
   ╭─[no_zero_fractions.tsx:1:1]
 1 │ 1.00 .toFixed(2)
   · ────
   ╰────
  help: Replace the number literal with `1`

  ⚠ eslint-plugin-unicorn(no-zero-fractions): Don't use a zero fraction in the number.
   ╭─[no_zero_fractions.tsx:1:2]
 1 │ (1.00).toFixed(2)
   ·  ────
   ╰────
  help: Replace the number literal with `1`

  ⚠ eslint-plugin-unicorn(no-zero-fractions): Don't use a zero fraction in the number.
   ╭─[no_zero_fractions.tsx:1:1]
 1 │ 1.00?.toFixed(2)
   · ────
   ╰────
  help: Replace the number literal with `1`

  ⚠ eslint-plugin-unicorn(no-zero-fractions): Don't use a zero fraction in the number.
   ╭─[no_zero_fractions.tsx:1:5]
 1 │ a = .0;
   ·     ──
   ╰────
  help: Replace the number literal with `0`

  ⚠ eslint-plugin-unicorn(no-zero-fractions): Don't use a zero fraction in the number.
   ╭─[no_zero_fractions.tsx:1:5]
 1 │ a = .0.toString()
   ·     ──
   ╰────
  help: Replace the number literal with `0`

  ⚠ eslint-plugin-unicorn(no-zero-fractions): Don't use a zero fraction in the number.
   ╭─[no_zero_fractions.tsx:1:22]
 1 │ function foo(){return.0}
   ·                      ──
   ╰────
  help: Replace the number literal with `0`

  ⚠ eslint-plugin-unicorn(no-zero-fractions): Don't use a zero fraction in the number.
   ╭─[no_zero_fractions.tsx:1:22]
 1 │ function foo(){return.0.toString()}
   ·                      ──
   ╰────
  help: Replace the number literal with `0`

  ⚠ eslint-plugin-unicorn(no-zero-fractions): Don't use a zero fraction in the number.
   ╭─[no_zero_fractions.tsx:1:22]
 1 │ function foo(){return.0+.1}
   ·                      ──
   ╰────
  help: Replace the number literal with `0`
