Closed futpib closed 5 years ago
Code like this is reported:
({ foo: { bar: 1, buz: 2, }, }[i][j])
Quick way to reproduce:
echo '{}[i][j]' | yarn eslint --plugin no-use-extend-native --rule '{"no-use-extend-native/no-use-extend-native":"error"}' --stdin
1:3 error Avoid using extended native objects no-use-extend-native/no-use-extend-native
If I remove one level of property access (change to {}[i]), nothing is reported.
{}[i]
Thank you!
Think I got a fix in place to prevent this false positive. I'll publish 0.4.1 after tests pass on CI.
Published 0.4.1.
Code like this is reported:
Quick way to reproduce:
If I remove one level of property access (change to
{}[i]
), nothing is reported.