-
Notifications
You must be signed in to change notification settings - Fork 24.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Lint] Update linter to use babel-lint and lint JSX/React directly #259
Conversation
@amasad Can we do this yet? |
I think we need to update our eslint version first. Right? |
cfd2e3f
to
09ab33c
Compare
f7310d7
to
e7b1894
Compare
Probably the best way to approach this is to install eslint, babel-lint, and eslint-react-plugin directly so that React Native can have its own linter settings independent of any other project. My latest commit does this but there's an issue with the packager where it's finding conflicting |
I had this on my list of things todo. I'll take a look soon! |
1d5716b
to
41be26d
Compare
d5dcc41
to
538bff7
Compare
Didn't forget about this. Switching to babel very soon and then we can easily use this. |
I'll keep rebasing periodically so it's easy to merge and uses the latest eslint plugins. |
@@ -50,6 +50,7 @@ | |||
"debug": "~2.1.0", | |||
"graceful-fs": "^3.0.6", | |||
"image-size": "0.3.5", | |||
"jest-cli": "^0.4.3", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was this intentional?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's unrelated iirc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
jest should only be in devDependencies
- Upgraded eslint - Installed babel-eslint so that we can parse JSX and ES6 - Installed eslint-react-plugin so we can lint JSX directly w/o a transform - `no-comma-dangle` was replaced with `comma-dangle` - `space-unary-word-ops` was replaced with `space-unary-ops`.
Removed the unnecessary jest-cli entry from dependencies. |
Thanks! |
Sweet, looking forward to it. |
Yay! Thanks for landing it =) |
💃 |
* Remove a stale ref to a deprecated file * remove more unneeded recovered files- remove libs by ref * add back lib refs as we get build failures with them out * fix up blank space issues
* Update keyboard.md * Update keyboard.md
no-comma-dangle
was replaced withcomma-dangle
space-unary-word-ops
was replaced withspace-unary-ops
.