pageClass | sidebarDepth | title | description | since |
---|---|---|---|---|
rule-details |
0 |
yml/no-trailing-zeros |
disallow trailing zeros for floats |
v1.6.0 |
disallow trailing zeros for floats
- 🔧 The
--fix
option on the command line can automatically fix some of the problems reported by this rule.
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
Nothing.
This rule was introduced in eslint-plugin-yml v1.6.0