Skip to content

Latest commit

 

History

History
36 lines (24 loc) · 776 Bytes

no-extra-parens.md

File metadata and controls

36 lines (24 loc) · 776 Bytes

no-extra-parens

Disallow unnecessary parentheses.

Rule Details

This rule extends the base eslint/no-extra-parens rule. It adds support for TypeScript type assertions.

How to Use

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

Options

See eslint/no-extra-parens options.

Taken with ❤️ from ESLint core

Attributes

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