Skip to content

Commit ad93ed5

Browse files
committedApr 23, 2022
Enforce parenthesization of && and || with a linter rule (#2949)
After a review comment by @captbaritone in #2953.
1 parent 825e9c2 commit ad93ed5

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed
 

‎modules/.eslintrc

+9-1
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,13 @@
88
],
99
"extends": [
1010
"plugin:import/errors"
11-
]
11+
],
12+
"rules": {
13+
"no-mixed-operators": [
14+
"error",
15+
{
16+
"groups": [["&&", "||"]]
17+
}
18+
]
19+
}
1220
}

0 commit comments

Comments
 (0)
Please sign in to comment.