description |
---|
Enforce consistent spacing before and after commas. |
🛑 This file is source code, not the primary documentation location! 🛑
See https://typescript-eslint.io/rules/comma-spacing for documentation.
This rule extends the base eslint/comma-spacing
rule.
It adds support for trailing comma in a types parameters list.
{
// note you must disable the base rule as it can report incorrect errors
"comma-spacing": "off",
"@typescript-eslint/comma-spacing": ["error"]
}
See eslint/comma-spacing
options.
Taken with ❤️ from ESLint core