The ability to reply to discussions is limited to PRO members. Want to join in the discussion? Click here to subscribe now.

Setup Nuclide to use Flow and Eslint (Mac)

Setup Nuclide to use Flow and Eslint (Mac)

7:18
Nuclide is the IDE Facebook employees use to write React code. But setting it up to use Flow type checking and Eslint to lint files on the fly is tricky. This video shows you how.
Watch this lesson now
Avatar
egghead.io

Nuclide is the IDE Facebook employees use to write React code. But setting it up to use Flow type checking and Eslint to lint files on the fly is tricky. This video shows you how.

Avatar
coolgeek

Is there a way to automatically fix most of the eslint errors on save?

In reply to egghead.io
Avatar
Jeff Lau

I've gone through this tutorial and it all works except for linting. Not getting any errors (that i can see). I've added the .eslintrc and the npm packages as well as the linter-eslint atom package. It's just not linting my js files and I'm not sure why.

Avatar
Jeff Lau

Fixed it by adding babel-eslint npm package. I also used eslint@3. Not sure which one was causing problems - maybe both?

In reply to Jeff Lau
Avatar
Grant

Jeff is correct you need to install babel-eslint. You have it listed as a dependency in your example package.json. However, it isn't in the list of NPM modules the tutorial has people install. I was also able to get it working with eslint@2 and 3.

In reply to Jeff Lau
HEY, QUICK QUESTION!
Joel's Head
Why are we asking?