eslint-plugin-node icon indicating copy to clipboard operation
eslint-plugin-node copied to clipboard

Array.prototype.flat not accounted for

Open tourdedave opened this issue 5 years ago • 0 comments

When running with eslint-plugin-node and specifying the following in package.json:

  "engines": {
    "node": ">=8.9.0"
  }

I expect the following to be flagged by no-unsupported-features/es-builtins since this feature was introduced in Node 11:

const a = [[0,1], [2,3]]
a.flat()

But it's not.

Is this a missing implementation in the ruleset or is reading a property on a variable like this not supported?

tourdedave avatar Mar 18 '20 09:03 tourdedave