ESLint headaches with Laravel

Greetings,

I am attempting to create a new Laravel 5.3 project which uses ES6. I have installed ESLint version 3.13.1 and was able to make some errors in the default Laravel app.js go away by initializing ESLint and examining that file for its configuration. But I am still having warnings popping up with the Laravel Elixir (Gulp) file - https://github.com/laravel/laravel/blob/master/gulpfile.js.

In the gulp.js file, hovering over `mix` in `elixir(mix =>` shows the error "Expected parentheses around arrow function argument."

How can I effectively use ESLint, JSLint, and JSHint with Laravel and PHPStorm 2017.01? Pulling my hair out, keep trying different things and cannot seem to make the errors and/or warnings go away.

Thanks!

0
1 comment

try enabling 'Function declaration parentheses' and 'Function call parentheses' in Settings | Editor | Code Style | JavaScript, Spaces/Within

0

Please sign in to leave a comment.