Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs: disallow use of the comma operator using no-restricted-syntax #9585

Merged
merged 4 commits into from Nov 10, 2017
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/rules/no-sequences.md
Expand Up @@ -66,7 +66,7 @@ while ((val = foo(), val < 42));
## When Not To Use It

Disable this rule if sequence expressions with the comma operator are acceptable.
Another case where you might want to reports all usages of the comma operator, even if they are wrapped in parenthesis or in a for loop. You can achieve this using rule `no-restricted-syntax`:
Another case is where you might want to reports all usages of the comma operator, even if they are wrapped in parenthesis or in a for loop. You can achieve this using rule `no-restricted-syntax`:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo: parenthesis (should be parentheses; "parenthesis" is the singular noun, while "parentheses" is the plural)


```js
{
Expand Down