From fe3a2de6b511f6373bab5f00d81e699ff6e81a56 Mon Sep 17 00:00:00 2001 From: Sharmila Date: Mon, 8 Jan 2018 14:36:08 -0800 Subject: [PATCH] [fixes: #1678] Improves wording of no-mixed-operators recommendation. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index e00d988f..20ac1634 100644 --- a/README.md +++ b/README.md @@ -1945,7 +1945,7 @@ Other Style Guides ``` - - [15.8](#comparison--no-mixed-operators) Enclose operators in parentheses when they are mixed in a statement. When mixing arithmetic operators, do not mix `**` and `%` with themselves or with `+`, `-`, `*`, & `/`. eslint: [`no-mixed-operators`](https://eslint.org/docs/rules/no-mixed-operators.html) + - [15.8](#comparison--no-mixed-operators) When mixing operators, enclose them in parentheses. The only exception is the standard arithmetic operators (`+`, `-`, `*`, & `/`) since their precedence is broadly understood. eslint: [`no-mixed-operators`](https://eslint.org/docs/rules/no-mixed-operators.html) > Why? This improves readability and clarifies the developer’s intention.