Rule: number-literal-format

Checks that decimal literals should begin with ‘0.’ instead of just ‘.’, and should not end with a trailing ‘0’.

Rationale

Helps keep a consistent style with numeric literals. Non-standard literals are more difficult to scan through and can be a symptom of typos.

Notes:
Has Fixer

Config

Not configurable.

Config examples
"number-literal-format": true
Schema
null