-
Notifications
You must be signed in to change notification settings - Fork 26
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
Eslint airbnb transloadit #95
Conversation
(not yet implemented for isResumable=false)
// console.log(uploadedBytes) | ||
expect(uploadedBytes).toBeDefined() | ||
if (isResumable) { |
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.
these seem unrelated 🤔
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.
Yes. I discovered some issues/improvements while converting to the new eslint config. I can pull those commits out to another branch
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.
No need as long as you are aware 👌
const { Writable } = require('stream') | ||
const _ = require('lodash') | ||
|
||
const toArray = callback => { | ||
const PaginationStream = require('../../../src/PaginationStream') |
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.
i like the sorting of requires
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.
Few nitpicks/questions, it does look good overall!
One thing, there are quite some cases where you disable eslint rules the code.
I wonder, if we apply this to the API, if that will be crippling. Like. so many bailouts to add.
But i guess, we can bail out on a per-project level in the .eslintrc, until we move to a reality where all issues can be fixed / explicitly ignored
I can comment on the
I'm totally fine with completely disabling some or all of these in the central config also |
I think if we introduce this style guide to the existing code, we can definitely selectively disable certain rules inside .eslintrc and keep that disable list as a todo for each project |
Thanks for the detailed explanation. I think we should go with strict for now, loosen up in individual projects in their own .eslintrc, and based on feedback loosen up in a next version of eslint-transloadit. Regarding all the extra safety it provides, i'm ok to have many changes. As for stylistic changes, not so much - but that also doesn't seem to be the case looking at this PR 👌 |
Feel free to merge this one already if you like 🎉 |
or ... do we first want to finalize work on our linting, and then merge all of the open prs .. 🤔 there may be changes based on findings in the other repos. |
I think fixing the other repos is a much bigger task, so I think we can merge this one now. If we need to update the config in the future we can create a new PR here for the new version. |
Use eslint-config-transloadit and fix issues uncovered.
See #90 and transloadit/eslint-config-transloadit#1