# toml/precision-of-fractional-seconds

disallow precision of fractional seconds greater than the specified value.

  • ⚙️ This rule is included in "plugin:toml/recommended" and "plugin:toml/standard".

# 📖 Rule Details

This rule disallow precision of fractional seconds greater than the specified value.
Prevent unintended rounding errors by specifying the maximum precision of the TOML implementation you use.

https://toml.io/en/v1.0.0#local-time (opens new window)

Millisecond precision is required. Further precision of fractional seconds is implementation-specific.

Now loading...

# 🔧 Options

toml/precision-of-fractional-seconds:
  - error
  - max: 3
  • max ... Specifies the maximum precision.

# 📚 Further reading

# 🚀 Version

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

# 🔍 Implementation