disallow leading or trailing decimal points in numeric literals
- ⚙️ This rule is included in
- 🔧 The
--fixoption on the command line (opens new window) can automatically fix some of the problems reported by this rule.
# 📖 Rule Details
This rule is aimed at eliminating floating decimal points and will warn whenever a numeric value has a decimal point but is missing a number either before or after it.
Cannot use floating decimal points when in JSON and JSONC.
# 🔧 Options
# 👫 Related rules
# 🚀 Version
This rule was introduced in eslint-plugin-jsonc v0.9.0
# 🔍 Implementation
Taken with ❤️ from ESLint core (opens new window)