Skip to content

Latest commit

 

History

History
43 lines (28 loc) · 1.18 KB

no-trailing-zeros.md

File metadata and controls

43 lines (28 loc) · 1.18 KB
pageClass sidebarDepth title description
rule-details
0
yml/no-trailing-zeros
disallow trailing zeros for floats

yml/no-trailing-zeros

disallow trailing zeros for floats

  • This rule has not been released yet.
  • 🔧 The --fix option on the command line can automatically fix some of the problems reported by this rule.

📖 Rule Details

This rule enforces the removal of unnecessary trailing zeros from floats.

# eslint yml/no-trailing-zeros: 'error'

# ✓ GOOD
"GOOD": 1.2

# ✗ BAD
'BAD': 1.20

🔧 Options

Nothing.

🔍 Implementation