Object.assign gives Method Expression is not of Function Type

I'm using Webstorm 2021.1.2 and when I write

let newObject = Object.assign({}, someObject)

I get an ESLint warning stating

Method Expression is not of Function Type.

I'm not sure if there is something I need to configure so I don't receive this warning.

1 comment
Comment actions Permalink

Can't reproduce with similar code

What IDE version do you use? Does the issue persist after caches invalidation (File > Invalidate caches, Invalidate and Restart)?

If yes, please share a sample project it can be repeated with

0

Please sign in to leave a comment.