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

upgrade eslint version and fix all current warnings/errors #2194

Merged
merged 1 commit into from
May 26, 2015

Conversation

michaelficarra
Copy link
Collaborator

No description provided.

@jashkenas
Copy link
Owner

Whew. Nice one!

jashkenas added a commit that referenced this pull request May 26, 2015
upgrade eslint version and fix all current warnings/errors
@jashkenas jashkenas merged commit 6658a24 into master May 26, 2015
@michaelficarra
Copy link
Collaborator Author

This took nearly 4 hours. It was so tedious!

@michaelficarra michaelficarra deleted the eslint-upgrade branch May 26, 2015 15:27
@jdalton
Copy link
Contributor

jdalton commented May 26, 2015

For the most part I find stuff like this is largely unnecessary. Does it stop bad releases? Not really. Does it add noise & stumbling blocks to PRs? Yeah.

@jashkenas
Copy link
Owner

I agree, but now that it's done — don't you think it's a net positive to have?

@jdalton
Copy link
Contributor

jdalton commented May 26, 2015

Naw, the PR hurdles alone make it a negative for me. I see this as a crutch to brace maintainer activity.

@braddunbar
Copy link
Collaborator

Maybe it doesn't directly stop bad releases but I disagree that's it's unnecessary. Consistency of style and use of tools to prevent trivial bugs is one of the first things I use to gauge the health of a project and, consequently, my willingness and desire to contribute to it.

That said, I don't care if we run it on pulls or block them because it fails, if that's what you mean. Accepting good pulls with different style and not cleaning up afterwards are two different things.

@jridgewell
Copy link
Collaborator

Agh, it's always my code that has sneaky 4 spaces. 😦

Why do we align colons, but not equals?

-    nativeBind         = FuncProto.bind,
-    nativeCreate       = Object.create;
+    nativeIsArray = Array.isArray,
+    nativeKeys = Object.keys,

-        value: value,
-        index: index,
+        value   : value,
+        index   : index,
         criteria: iteratee(value, index, list)

@michaelficarra
Copy link
Collaborator Author

@jridgewell There were many more : alignments already in the codebase than = alignments. I just tried to make the rules enforce current convention.

@jashkenas
Copy link
Owner

We shouldn't be aligning those colons. Colons should be visually attached to the label on the left.

@michaelficarra
Copy link
Collaborator Author

@jashkenas done: #2196

jridgewell added a commit that referenced this pull request May 26, 2015
change key-spacing linting rule to not require colon alignment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants