I'm running into difficulty into adding ES6 into the linter configuration so I don't get the error use 'esversion:6' and I couldn't find this in the docs. Not sure if this error is being thrown from ALE.
Is there any way to add es6 linting into ALE? Maybe this could be add to the docs.
That'll be coming from JSHint. Either disable jshint, or add a .jshintrc file with the esversion set in the configuration file.
FTR I had the same error. Created .jshint in the root directory of the project, added use 'esversion: 6' to the first line of .jshint, saved, closed, and opened the project back up. The error is gone.
The JSHint docs explain what that process in more detail:
That'll be coming from JSHint. Either disable jshint, or add a
.jshintrcfile with theesversionset in the configuration file.
Is this done in ale/ale_linters/javascript/ or in root?
You have to create a configuration file in your project directory to set up JSHint, or disable it with the ale_linters setting.
Most helpful comment
That'll be coming from JSHint. Either disable jshint, or add a
.jshintrcfile with theesversionset in the configuration file.