es-x/no-trailing-dynamic-import-commas
disallow trailing commas in
import()
- ✅ The following configurations enable this rule: no-import-attributes and no-new-in-esnext
- 🔧 The
--fix
option on the command line can automatically fix some of the problems reported by this rule.
This rule reports trailing commas in import()
as errors.
Trailing commas in import()
are now allowed in ES2025 Import Attributes proposal.
💡 Examples
⛔ Examples of incorrect code for this rule:
🚀 Version
This rule was introduced in v8.1.0.