Skip to content

Latest commit

 

History

History
32 lines (21 loc) · 763 Bytes

comma-spacing.md

File metadata and controls

32 lines (21 loc) · 763 Bytes

Enforces consistent spacing before and after commas (comma-spacing)

Rule Details

This rule extends the base eslint/comma-spacing rule. It adds support for trailing comma in a types parameters list.

How to use

{
  // note you must disable the base rule as it can report incorrect errors
  "comma-spacing": "off",
  "@typescript-eslint/comma-spacing": ["error"]
}

Options

See eslint/comma-spacing options.

Taken with ❤️ from ESLint core

Attributes

  • ✅ Recommended
  • 🔧 Fixable
  • 💭 Requires type information