Skip to content
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

Add ESLint and fix a number of linting violations #501

Merged
merged 4 commits into from
Aug 26, 2016

Conversation

spikebrehm
Copy link

Add ESLint using the eslint-config-airbnb preset, and override a few of the rules to better fit with React Native (prefer-object-spread, react/jsx-filename-extension) or to suppress a number of the warnings until we can get everything cleaned up (no-use-before-define, no-underscore-dangle).

Add npm run lint command, which runs ESLint. Currently, there are still 488 linting errors, which I'd like to fix in follow-up PRs to prevent a bunch of merge conflicts from popping up.

Note: This doesn't actually enforce linting to pass in CI before merging. That will happen once we address all the issues.

Please take a look @lelandrichardson @jrichardlai.

cc: @ljharb

@@ -0,0 +1 @@
node_modules
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should already be gitignored, and as such, eslint should already ignore it - why is this needed?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In my testing, without ignoring this, eslint . takes significantly longer.

@spikebrehm spikebrehm merged commit 241c5ac into react-native-maps:master Aug 26, 2016
@spikebrehm spikebrehm deleted the add-eslint branch August 26, 2016 21:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants