Skip to content

Latest commit

 

History

History
35 lines (23 loc) · 805 Bytes

keyword-spacing.md

File metadata and controls

35 lines (23 loc) · 805 Bytes

keyword-spacing

Enforce consistent spacing before and after keywords.

Rule Details

This rule extends the base eslint/keyword-spacing rule. This version adds support for generic type parameters on function calls.

How to Use

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

Options

See eslint/keyword-spacing options.

Taken with ❤️ from ESLint core

Attributes

  • ✅ Recommended
  • ✔ Strict
  • 🔧 Fixable
  • 💭 Requires type information