stylus/number-leading-zero
require or disallow a leading zero for fractional numbers less than 1.
- ⚙️ This rule is included in
"stylelint-stylus/standard"
. (options:"always"
) - 🔧 The fix option can automatically fix some of the problems reported by this rule.
📖 Rule Details
This rule require or disallow a leading zero for fractional numbers less than 1.
❓ Why Not Use stylelint
Rule
The number-leading-zero rule incorrectly report errors in Stylus.
This problem is that the core rules do not understand that range operator of the Stylus.
The stylus/number-leading-zero
rule understands that range operator of the Stylus.
🔧 Options
See stylelint - number-leading-zero - Options.