# jsonc/comma-style
enforce consistent comma style
- 🔧 The
--fix
option on the command line (opens new window) can automatically fix some of the problems reported by this rule.
# 📖 Rule Details
This rule enforce consistent comma style in array literals and object literals.
# 🔧 Options
{
"jsonc/comma-style": ["error",
"last"
]
}
Same as comma-style (opens new window) rule option. See here (opens new window) for details.
# 👫 Related rules
# 🚀 Version
This rule was introduced in eslint-plugin-jsonc v0.1.0
# 🔍 Implementation
Taken with ❤️ from ESLint core (opens new window)