Skip to content

Latest commit

 

History

History
48 lines (31 loc) · 1.18 KB

no-trailing-zeros.md

File metadata and controls

48 lines (31 loc) · 1.18 KB
pageClass sidebarDepth title description since
rule-details
0
yml/no-trailing-zeros
disallow trailing zeros for numbers
v1.5.1

yml/no-trailing-zeros

disallow trailing zeros for numbers

  • ⚙️ This rule is included in "plugin:yml/standard".
  • 🔧 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 numbers.

# 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.5.1

🔍 Implementation