esnext option doesn't appear to be working
kenwheeler opened this issue · 5 comments
kenwheeler commented
Using the following syntax:
gulp.task('jscs', function(){
return gulp.src('src/*.js')
.pipe(jscs({
esnext: true
}))
});
I don't get any output. Running jscs --esnext
on the CLI reports properly, and using the option with the gulp-jscs-custom
module works though.
LFDM commented
Same here, unfortunately.
dsebastien commented
Same here
geelen commented
And here. Adding esnext: true
changes the error from
14 | fetch(window.location.origin + iceURL)
15 | .then(response => response.json())
--------------------------^
to
line 15 col 24 'arrow function syntax (=>)' is only available in ES6 (use esnext option).
So clearly something is happening...
geelen commented
Whoops, it was a JSHint error that was running alongside! JSCS seems to be handling arrow functions fine.
sindresorhus commented
Specify it in your JSCS config file.