Skip to content

Latest commit

 

History

History
47 lines (30 loc) · 1.12 KB

no-trailing-zeros.md

File metadata and controls

47 lines (30 loc) · 1.12 KB
pageClass sidebarDepth title description since
rule-details
0
yml/no-trailing-zeros
disallow trailing zeros for floats
v1.6.0

yml/no-trailing-zeros

disallow trailing zeros for floats

  • 🔧 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.

🚀 Version

This rule was introduced in eslint-plugin-yml v1.6.0

🔍 Implementation