Overview
I think there is a conflict in the @shopify/binary-assignment-parens and @typescript-eslint/no-extra-parens rules.
I have some code like:
const running = (this.state === 'running');
Which is getting the following error:
error Unnecessary parentheses around expression @typescript-eslint/no-extra-parens
from
|
'@typescript-eslint/no-extra-parens': 'error', |
But if I change it to:
const running = this.state === 'running';
I get
error You must include parentheses around a binary assignment expression @shopify/binary-assignment-parens
from
|
'@shopify/binary-assignment-parens': ['error', 'always'], |
Consuming repo
What repo were you working in when this issue occurred?
A private repository
Labels
Area
Scope
Checklist
Overview
I think there is a conflict in the
@shopify/binary-assignment-parensand@typescript-eslint/no-extra-parensrules.I have some code like:
Which is getting the following error:
from
web-configs/packages/eslint-plugin/lib/config/typescript.js
Line 205 in 5ab0fcf
But if I change it to:
I get
from
web-configs/packages/eslint-plugin/lib/config/core.js
Line 270 in 5ab0fcf
Consuming repo
A private repository
Labels
Type: Buglabel to this issue.Area
Area: <area>labels to this issueScope
Is this issue related to a specific package?
Package: <package_name>label.Checklist