Skip to content

toml/no-non-decimal-integer

disallow hexadecimal, octal and binary integer

  • 🔧 The --fix option on the command line can automatically fix some of the problems reported by this rule.

📖 Rule Details

This rule reports disallow hexadecimal, octal and binary integer.

Hexadecimal numbers are very easy to read when expressing colors etc., but using non-decimal numbers in your system can be difficult to read.

Now loading...

🔧 Options

yaml
toml/no-non-decimal-integer:
  - error
  - allowHexadecimal: false
    allowOctal: false
    allowBinary: false

📚 Further reading

🚀 Version

This rule was introduced in eslint-plugin-toml v0.1.0

🔍 Implementation