How to set state inES6 in javascript-lint.js?

Using `jshist.js 2.12.0 there are many lint warnings relating to ES6 which are now outdated. How can the state be set to ES6 when initializing CodeMirror?

It seems esversion: 5 has to be set.

Update:

Found ES6 JS linter which has the answer. e.g.:
lint: {esversion: 10},