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.
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.
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?