False positive in no-side-effects-in-computed-properties
#230
Labels
Milestone
no-side-effects-in-computed-properties
#230
Tell us about your environment
I try using
5f4f3ce
(last master) from this reposESLint Version: ^3.19.0
eslint-plugin-eslint-plugin: ^0.8.0
eslint-plugin-vue-libs: ^1.2.0
mocha: ^3.2.0
eslint-plugin-vue Version: version: 3.13.1
Node Version: 8.8.1
Please show your full configuration:
Not relevant
What did you do? Please include the actual source code causing the issue.
I write a unit test case but I can't solve the issue myself:
What did you expect to happen?
The first test must succeed (I don't update
this.images
, just read it), the second must failWhat actually happened? Please include the actual, raw output from ESLint.
I got an
Unexpected side effect
in both case.The section of parser
lib/rules/no-side-effects-in-computed-properties.js
relevant for my case is the following:The grammar parser (
AssignmentExpression > MemberExpression
) see independent nodes and a console log will show the two part separately, it shouldn't.A console.log will show the following:
The text was updated successfully, but these errors were encountered: