update lint packages, fix lint errors

Summary: @​cesarandreu pointed out running eslint on react-native resulted in `t.isReferencedIdentifier is not a function` issues on the babel #linting channel on slack.

- update eslint, babel-eslint, eslint-plugin-react
- fix eslint errors: `Error - t.isReferencedIdentifier is not a function`
- fix lint npm script

I see there's also https://github.com/facebook/react-native/pull/1736 from @ide which would fix it tooCloses https://github.com/facebook/react-native/pull/1874

Reviewed By: @vjeux

Differential Revision: D2495878

Pulled By: @frantic
This commit is contained in:
Henry Zhu 2015-09-30 18:38:56 -07:00 committed by facebook-github-bot-5
parent 200b81172e
commit e45b7ffb1e
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@
],
"scripts": {
"test": "NODE_ENV=test jest",
"lint": "node linter.js Examples/ Libraries/",
"lint": "eslint Examples/ Libraries/",
"start": "./packager/packager.sh || true"
},
"bin": {