-
Notifications
You must be signed in to change notification settings - Fork 552
Clean up lint and prettier errors #991
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
Clean up lint and prettier errors #991
Conversation
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.
thank you this is a very helpful contribution and is much appreciated!
src/config.ts
Outdated
@@ -405,19 +401,19 @@ export class KubeConfig implements SecurityAuthentication{ | |||
); | |||
} | |||
|
|||
public makeApiClient<T extends ApiType>(apiClientType: ApiConstructor<T>): T { |
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 see why the linter removed this, but we may need to reimplement this interface later on to get the object and cache features working again, maybe drop a todo in here for the future?
the newer OpenAPIGen typescript outputs don't expose much to form an interface out of, but it'd be nice to clean up the contract
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.
Alternatively I can tell the linter to ignore it. If I don't hear back I will just drop a TODO.
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.
sure if it can ignore the declaration of ApiType that would work, idk if you'd have to ignore every consuming line too
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 add a lint ignore here, but also a TODO
to fix this up so it obeys lint later.
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.
Fixed. Added an ignore comment and a TODO comment.
@brendanburns lgtm |
/lgtm |
049d6bb
to
e24ff99
Compare
Should we merge this with those checks failing? Or I might branch off of here and fix those errors and PR into this one. @brendandburns |
bcbe574
to
6227a36
Compare
So given that tests were failing, I went ahead and fixed the critical security risks and in the process updated mocha and included the mocha file from |
324b272
to
d781a01
Compare
d781a01
to
99ddffd
Compare
Nice, thank you! /lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: brendandburns, clintonmedbery The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Fixes Issue #969
I closed my other PR around unused imports and updated the issue to tackle the bigger problem of the git hooks not working anymore and the files were not getting linted.
So in short I:
.prettierrc
file.Hopefully this can keep this branch clean going further. I was tempted to make this a
pre-commit
hook, but I didn't want to get to presumptuous 😄