javascript - JSHint in my vim marks 'yield' as a warning. -


i'm writing mocha tests , using vim jshint. unfortunately jshints gives me lot of warnings due 'yield' keyword.

'yield' available in es6 (use 'esversion: 6') or mozilla js extensions (use moz).

this warning w118 , have tried disable warning in .jshintrc file

{     "mocha": true,     "-w118": true } 

but far unsuccesfull in hiding warning. ideas why? have read documentation , don't want use inline configuration.

thanks melchor629 finding answer. setting

"esversion": 6

in .jshintrc file fixed problem.


Comments

Popular posts from this blog

magento2 - Magento 2 admin grid add filter to collection -

Android volley - avoid multiple requests of the same kind to the server? -

Combining PHP Registration and Login into one class with multiple functions in one PHP file -