jsonc/no-floating-decimal | eslint-plugin-jsonc (original) (raw)

disallow leading or trailing decimal points in numeric literals

📖 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

Nothing.

🚀 Version

This rule was introduced in eslint-plugin-jsonc v0.9.0

🔍 Implementation

Taken with ❤️ from ESLint core