sindresorhus / grunt-eslint

Validate files with ESLint
MIT License
200 stars 72 forks source link

SyntaxError: Use of const in strict mode. #129

Closed Chlodochar closed 8 years ago

Chlodochar commented 8 years ago

On NodeJS 0.10.36 I get the following warning when running anything with Grunt (where grunt-eslint is 'require'ed):

/home/travis/build/AHAAAAAAA/PokemonGo-Map/node_modules/grunt-eslint/tasks/eslint.js:2
const chalk = require('chalk');
^^^^^
Loading "eslint.js" tasks...ERROR
>> SyntaxError: Use of const in strict mode.

I realize NodeJS 0.10.36 is old-ish, but Travis is using it by default.

sindresorhus commented 8 years ago

Duplicate of https://github.com/sindresorhus/grunt-eslint/issues/125.