Skip to content

Conversation

@hzoo
Copy link
Contributor

@hzoo hzoo commented Jul 6, 2015

@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 #1736 from @ide which would fix it too

@facebook-github-bot facebook-github-bot added GH Review: review-needed CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. labels Jul 6, 2015
@cesarandreu
Copy link

👍

1 similar comment
@cyprusglobe
Copy link

👍

@tadeuzagallo
Copy link
Contributor

@facebook-github-bot import

@hzoo
Copy link
Contributor Author

hzoo commented Aug 12, 2015

Maybe I should update this again (probably better as a new PR)? (although with eslint becoming 1.0 there probably needs to be some more changes)

+    "babel-eslint": "4.0.5",
+    "eslint": "1.1.0",
+    "eslint-plugin-react": "3.2.2"

@tadeuzagallo
Copy link
Contributor

That'd be great :)

@frantic
Copy link
Contributor

frantic commented Aug 17, 2015

Please rebase :)

@hzoo
Copy link
Contributor Author

hzoo commented Aug 17, 2015

Rebased.

Should I still update the 3 packages again?

    "babel-eslint": "4.0.10",
    "eslint": "1.1.0",
    "eslint-plugin-react": "3.2.3"

Would require more changes since eslint is 1.0 which I can do as well (in this PR or a new one)

@ide
Copy link
Contributor

ide commented Aug 17, 2015

Here's an eslintrc 1.0 I use, which should be quite close to the one that RN ships with. It's not exactly the same but thought it could be helpful: https://gist.github.com/ide/4c9b3de2ae9e952c8b3d

@hzoo
Copy link
Contributor Author

hzoo commented Aug 17, 2015

K will update to latest versions then - we'll see if I can incorporate some of @ide's config (seems like eslint nicely warns what new rules to use instead of deprecated ones)

@hzoo
Copy link
Contributor Author

hzoo commented Aug 17, 2015

Rule 'no-empty-class' was removed and replaced by: no-empty-character-class
Rule 'global-strict' was removed and replaced by: strict
Rule 'no-extra-strict' was removed and replaced by: strict
Rule 'no-space-before-semi' was removed and replaced by: semi-spacing
Rule 'no-wrap-func' was removed and replaced by: no-extra-parens

Didn't bother fixing any errors yet (getting 209 problems (92 errors, 117 warnings))

If you see 22:14 error "ReactElement" is not defined no-undef and wonder what's going on - it's because I added linting for flow types in babel-eslint. In order to fix that we would need to add types to the globals in eslint or import type x from './x' to define it

- update eslint, babel-eslint, eslint-plugin-react
- fix lint npm script
@hzoo
Copy link
Contributor Author

hzoo commented Sep 5, 2015

Fixed a merge conflict

ghost pushed a commit that referenced this pull request Oct 1, 2015
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 #1736 from @ide which would fix it tooCloses #1874

Reviewed By: @vjeux

Differential Revision: D2495878

Pulled By: @frantic
@hzoo hzoo closed this Oct 2, 2015
MattFoley pushed a commit to skillz/react-native that referenced this pull request Nov 9, 2015
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 facebook#1736 from @ide which would fix it tooCloses facebook#1874

Reviewed By: @vjeux

Differential Revision: D2495878

Pulled By: @frantic
Crash-- pushed a commit to Crash--/react-native that referenced this pull request Dec 24, 2015
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 facebook#1736 from @ide which would fix it tooCloses facebook#1874

Reviewed By: @vjeux

Differential Revision: D2495878

Pulled By: @frantic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants