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-plugin-ramda #335

Merged
merged 12 commits into from
Feb 4, 2018

Conversation

Undistraction
Copy link
Collaborator

Code Climate have now added support for eslint-plugin-ramda.

See codeclimate/codeclimate-eslint#369 (comment)

Closes #306

@Undistraction Undistraction changed the title Undistraction/eslint plugin ramda Add eslint-plugin-amda Feb 3, 2018
@Undistraction Undistraction changed the title Add eslint-plugin-amda Add eslint-plugin-ramda Feb 3, 2018
@Undistraction
Copy link
Collaborator Author

Still not working. I've flagged it on the linked issue.

@Undistraction
Copy link
Collaborator Author

@char0n All passing now. Should be good to merge.

@char0n
Copy link
Owner

char0n commented Feb 4, 2018

Cool

Copy link
Owner

@char0n char0n left a comment

Choose a reason for hiding this comment

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

Looks good. Check my associativity comments if you find them relevant.



const MAX_SAFE_INTEGER = or(Number.MAX_SAFE_INTEGER, (2 ** 53) - 1);
const MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || (2 ** 53) - 1;
Copy link
Owner

Choose a reason for hiding this comment

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

Would use parenthesis to explicitly state the associations of operands

const MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || ((2 ** 53) - 1)



const MIN_SAFE_INTEGER = or(Number.MIN_SAFE_INTEGER, -(2 ** 53) - 1);
const MIN_SAFE_INTEGER = Number.MIN_SAFE_INTEGER || -(2 ** 53) - 1;
Copy link
Owner

Choose a reason for hiding this comment

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

Would use parenthesis to explicitly state the associations of operands

const MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || (-(2 ** 53) - 1)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Tbh I'm so used to prettier purging my files of extra parens that I it doesn't bother me. Sooner or later we'll start using it for this project and they'll be gone anyway.

Not saying I disagree with you (I'v actually been complaining about its handling of parens for ages - see my comment towards the end), but using prettier is such a huge win in terms of time that it's worth the small bumps.

So doesn't bother me but happy to change if you would like.

@char0n
Copy link
Owner

char0n commented Feb 4, 2018

I've created #336 for prettier integration. Wanted to try him for quite some time, this is good oportunity. Don't worry about the parents, I'll add them.

@char0n char0n merged commit 8ae9b5f into char0n:master Feb 4, 2018
@Undistraction
Copy link
Collaborator Author

@char0n WIth prettier you have to just accept that there are very few config options. That is actually the best thing about it, but if you are used to finessing how you like things to look it will be a hard at first. I honestly think it is the single biggest time-saver you can use in writing JS. So much less distraction from silly little decisions about formatting. It's very fast too.

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