ESLint makes its own decisions about what it considers to be valid or invalid warnings or errors. You should relate to everything that eslint / jslint / jshint says as a recommendation in addition to everything else. According to someone, their suggestions are optimal and perfectly true.
However, you have some options to suppress this particular warning:
- Use
eslint flags in comments in code - Run
eslint with customization to specify this flag - Use the
--use-strict flag when starting node
The specific reason why you get this warning is because the default interpreter node in its current form is not fully prepared for ES6. For example, in node 4, you cannot use let outside strict mode, even if let is the ES6 keyword.
source share