require or disallow quotes around keys
- ⚙️ This rule is included in
- 🔧 The
--fixoption on the command line (opens new window) can automatically fix some of the problems reported by this rule.
# 📖 Rule Details
This rule reports quoted keys that can use bare keys.
# 🔧 Options
toml/quoted-keys: - error - prefer: as-needed # or "always" numbers: true
"as-needed"... Disallows quotes around key names that are not strictly required. It is default.
"always"... Requires quotes around all key names.
true, requires quotes around numbers used as key names (only applies when using
# 📚 Further reading
# 👫 Related rules
# 🚀 Version
This rule was introduced in eslint-plugin-toml v0.1.0