Skip to content

Latest commit

 

History

History
36 lines (24 loc) · 824 Bytes

object-curly-spacing.md

File metadata and controls

36 lines (24 loc) · 824 Bytes

object-curly-spacing

Enforces consistent spacing inside braces.

Rule Details

This rule extends the base eslint/object-curly-spacing rule. It adds support for TypeScript's object types.

How to Use

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

Options

See eslint/object-curly-spacing options.

Taken with ❤️ from ESLint core

Attributes

  • Configs:
    • ✅ Recommended
    • 🔒 Strict
  • 🔧 Fixable
  • 💭 Requires type information