-
Notifications
You must be signed in to change notification settings - Fork 9
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
style: more linting and refactoring #464
Conversation
This is safer in case we ever change the functions to take multiple parameters.
People apparently don't like it.
It was actually already enabled in the previous commits, but I was trying to solve all issues one-by-one.
/deploy-preview to ensure I didn't break anything |
Codecov Report
@@ Coverage Diff @@
## main #464 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 46 46
Lines 1016 1008 -8
Branches 170 168 -2
=========================================
- Hits 1016 1008 -8
Continue to review full report at Codecov.
|
style: more linting and refactoring (#464)
This PR changes 1 built userscript(s):
|
Manually did some E2E tests, mainly focusing on the parts with non-trivial changes, and everything seems to work properly, so the unit tests did their job well 🙂 |
All these `public`s are a bit more verbose, but hopefully this will force me to put some more thought into the access modifiers.
We switched to the GUI sink quite a while ago, but never dropped the old banner implementation apparently.
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.
The new rules look sensible to me and I did a quick test to ensure that they are also working in my setup (by manually reverting some of the changes).
Thanks for the review @kellnerd. I'm going to hold off on merging these until |
Actually, scratch that. If we delay the merging of this PR, we'd have to relint every other future PR as well. |
style: more linting and refactoring (#464)
🚀 Released 1 new userscript version(s):
|
Okay this turned out to be much larger than I anticipated. Whoops.
Pretty much just installed some new plugins and fixed the issues I agreed with and disabled those that I disagree with or are otherwise useless.
My initial intention was to made some stylistic parts more consistent (like the empty line issues discussed in some other recent PR, forgot which), so I checked
prettier
. Not a big fan of its output and restrictive ruleset though, so I've decided against it for now. Still on the lookout for another formatter. Edit: Turns out ESLint could do this all along.