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
deps: Update to eslint-config-transloadit@v2 #291
Conversation
I found that it currently doesn't work properly this also makes it more DRY
gives errors in vscode
inherited from eslint-config-transloadit
it's so common
Thanks for the PR, but the linting process now generates some errors and tons of warning. The errors must be looked into and the warnings make the entire linter a bit useless since you are just flooded with them. Before we merge this PR, we need to look into the error and warning to see which code needs to be adapted and which rules we have to disable or adjust. |
Yup I just realized there’s something wrong which I didnt get when i ran it locally, gonna look into that. As for warnings, many of them (531) were already there prior to this PR, but now there are 887, most of which come from the no-underscore-dangle. I think i’ll just completely disable that rule as it seems to be used a lot here. |
because these files are generated only after build has been run, causing github actions lint to fail
Alright I think I "fixed" the errors. Because eslint cannot find imported dist files for the tests before build has been run, it will fail during github actions run. I disabled the rules in the test files. As for the warnings, shall we just try to run an |
because it's being used a lot
Ok, in that case it would make sense to first run he build test and then the lint step. Would that help us with re-enabling the rules again?
Wow, I wasn't aware that we have so many warnings. Thanks for taking care of no-underscore-dangle.
Yes, we can try that in a separate PR. We have to discuss how far we should go with |
This reverts commit 187952d.
good idea. I did that.
We can exclude demos from eslint maybe. May not be that important that they are linted? |
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.
Let's merge it now and figure out a solution to all of the warning in a separate PR :) Thanks for your work!
See discussion in tus#291 - had to disable no-use-before-define many places where onSuccess uses the upload object, maybe in the future onsuccess could provide upload as an argument to onSuccess - also a lot of functions moved (as eslint doesn't allow function hoisting) - disabled eslint for demos/cordova and demos/browser
See transloadit/eslint-config-transloadit#13
biggest changes due to I pulled out Source classes into separate files.
I also simplified eslintrc (much of it is inherited from eslint-config-transloadit)