Inspectopedia
 
2024.3

Unnecessary parentheses

Info
Code Style
New
Last modified: 03 December 2024

Reports redundant parentheses.

In expressions:

var x = ((1) + 2) + 3

In arrow function argument lists:

var incrementer = (x) => x + 1

In TypeScript and Flow type declarations:

type Card = (Suit & Rank) | (Suit & Number)