Skip to content

Commit

Permalink
Update no-cond-assign.js
Browse files Browse the repository at this point in the history
  • Loading branch information
aladdin-add committed Aug 4, 2017
1 parent 82121c2 commit ee9b93a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/rules/no-cond-assign.js
Expand Up @@ -113,7 +113,9 @@ module.exports = {

if (ancestor) {
context.report({
node: ancestor, message: "Unexpected assignment within {{type}}.", data: {
node: ancestor,
message: "Unexpected assignment within {{type}}.",
data: {
type: NODE_DESCRIPTIONS[ancestor.type] || ancestor.type
}
});
Expand Down

0 comments on commit ee9b93a

Please sign in to comment.