3

I work at a company where we use ReSharper 2016 extensively to inspect and refactor our C# code, and we would now like to use those same tools to ensure the quality of our javascript.

We're supporting IE, so ES6 features are out, however when the inspection language is set to ES5 in ReSharper's options and warnings are set for unsupported language features (as in the image below) only some ES6 features are being flagged up.

Inspections settings

Inspection severity settings

So, for example, let and const are highlighted with an error, however lambda functions are not. Default parameters are highlighted, but Array.find() is not, and so on. It seems fairly arbitrary what is and what isn't detected.

Highlighting of ES6 features

Is there some additional configuration needed, or am I perhaps misunderstanding something about the ES6 feature set? How can I ensure all ES6 features result in errors?

Alfie Woodland
  • 834
  • 11
  • 30
  • 2
    These are still an issue in 2019 (using v 2018.3.4). `Array.prototype.find` can be explained by it somehow appearing in TypeScript's lib.es5.d.ts definition file. Arrow syntax, though, I really don't see how that gets a pass. – Greg Apr 26 '19 at 22:22

0 Answers0