gobblejs / gobble-eslint

Check JavaScript files with eslint and gobble
3 stars 3 forks source link

Using alternative parsers #1

Open justin-lau opened 9 years ago

justin-lau commented 9 years ago

The problem: the linter API this plugin is using right now does not accept alternative parsers. I'm using eslint-config-airbnb that uses babel-eslint as its parser. With this plugin the parser option set in the config file is not consumed, and therefore complains about some of the syntax I use with Babel.

I tried using the CLIEngine API directly in my gobblefile with built-in formatter, and it worked perfectly with eslint-config-airbnb.

I was going to create a PR but I found that the CLIEngine API was implemented long before this plugin. It keeps it me thinking there may be some good reasons behind this.

julienw commented 8 years ago

I proposed a PR in https://github.com/gobblejs/gobble-eslint/pull/2 about this.