Ale: `let' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz)

Created on 12 Mar 2019  路  4Comments  路  Source: dense-analysis/ale

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.

Most helpful comment

That'll be coming from JSHint. Either disable jshint, or add a .jshintrc file with the esversion set in the configuration file.

All 4 comments

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 .jshintrc file with the esversion set 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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

garand picture garand  路  4Comments

sublee picture sublee  路  3Comments

EdmundsEcho picture EdmundsEcho  路  3Comments

amerov picture amerov  路  4Comments

trevordmiller picture trevordmiller  路  4Comments