Skip to content

Commit

Permalink
Disallow self assignment of properties (no-self-assign)
Browse files Browse the repository at this point in the history
This rule was actually enabled in a prior upgrade of ESLint. Let's set the option explicitly nonetheless.

Fixes: #1186
  • Loading branch information
feross committed Jul 27, 2019
1 parent c003b84 commit 757abf0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion eslintrc.json
@@ -1,6 +1,7 @@
{
"extends": ["standard", "standard-jsx"],
"rules": {
"quotes": ["error", "single", { "avoidEscape": true }]
"quotes": ["error", "single", { "avoidEscape": true }],
"no-self-assign": ["error", { "props": true }]
}
}

0 comments on commit 757abf0

Please sign in to comment.