-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
Linting #367
Linting #367
Conversation
Don't know why, but previously the linter for . didn't terminate, although node_modules is ignored as per linter config
Thank you for getting started on this @mrsimpson, I appreciate it a lot! |
hm, small merge caused conflict, at some point we need to sync and merge this |
This is what I meant when I wrote ;)
Small changes to the providers cause conflicts (even semantically compatible ones ). I merged the main branch again, so here's another chance to get linting fixed ;) |
Running checks Sadly as merge is possible without running checks we may still get unlinted things in |
CI/CD failed with typecheck |
I added #378 to prevent this |
I introduced a type where things were not ... clear. I'll have to take a break for some hours now though – other commitments :( |
@wonderwhy-er sort-of fixed the type checker: The reason why the type check on the previous commit failed was that it was ironically cleaner than the main branch. In some files, Stackblitz hast put a Now, in order to keep this PR as low-invasive as possible, I reverted those affected files in which I had started to introduce better types to the All quality checks pass on my end now. Kindly verify and merge before new conflicts appear. |
Merged |
Thanks @wonderwhy-er and @mrsimpson! |
What's in here
This PR adds linting to the fork. Since the current codebase contains a lot of linting issues, this takes the smalles possible step to ensure code-consistency.
Motivation
Linting surfaces code smells. Linting with the same rules ensures that PR diffs are kept small and readable.
How it's been done
As per the commits, I did the following
Verdict
While checking the linting, there were quite some code-smells like inconsistent returns of function/methods. I tried to fix them so that they are syntactically fine. I couldn't always judge whether this is desirable wrt the intended architecture.
I manually tested the application (prompted, edited files and so on), lgtm. But it would be great if somebody threw another pair of eyes on it 👀