pageClass | sidebarDepth | title | description | since |
---|---|---|---|---|
rule-details |
0 |
yml/no-trailing-zeros |
disallow trailing zeros for numbers |
v1.5.1 |
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.
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
Nothing.
This rule was introduced in eslint-plugin-yml v1.5.1