description |
---|
Disallow unnecessary parentheses. |
🛑 This file is source code, not the primary documentation location! 🛑
See https://typescript-eslint.io/rules/no-extra-parens for documentation.
This rule extends the base eslint/no-extra-parens
rule.
It adds support for TypeScript type assertions.
{
// note you must disable the base rule as it can report incorrect errors
"no-extra-parens": "off",
"@typescript-eslint/no-extra-parens": ["error"]
}
See eslint/no-extra-parens
options.
Taken with ❤️ from ESLint core