JSLint:意外的赋值表达式

我收到此警告:

Unexpected assignment expression.
return task.completed = true; // Line 63, Pos 39

使用此代码时:

completeAll: function () {
    this.tasks = this.tasks.filter(function (task) {
        return task.completed = true;
    });
}

为什么?而且我还能如何编写该表达式以避免JSLint引发警告?

附言

The codeblock is taken from the Vue TodoMVC Example here: http://todomvc.dev/examples/vue/, therefore I assume that code review must have already been happened.