Skip to content
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

refactor(logger): Fix lint warnings #7109

Merged
merged 5 commits into from
Aug 27, 2020

Conversation

zharinov
Copy link
Collaborator

No description provided.

@zharinov zharinov marked this pull request as draft August 26, 2020 10:37
@zharinov zharinov marked this pull request as ready for review August 26, 2020 15:52
@rarkins rarkins requested a review from viceice August 26, 2020 17:44
@@ -2,8 +2,20 @@ import is from '@sindresorhus/is';

Error.stackTraceLimit = 20;

// eslint-disable-next-lint @typescript-eslint/explicit-module-boundary-types
export default function errSerializer(err: any): any {
interface Err {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤔 maybe we should reuse existing types here?

// TODO
// eslint-disable-next-lint @typescript-eslint/explicit-module-boundary-types
export function withSanitizer(streamConfig): bunyan.Stream {
type BunyanStream = (NodeJS.WritableStream | Stream) & {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks little strange, but I'm ok if it improves types

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, those types are tricky and it's hard to do something with it

@rarkins rarkins changed the title fix(logger): Fix lint warnings refactor(logger): Fix lint warnings Aug 27, 2020
@rarkins rarkins merged commit f411dde into renovatebot:master Aug 27, 2020
@rarkins rarkins deleted the fix/logger-lint branch August 27, 2020 07:12
@renovate-release
Copy link
Collaborator

🎉 This PR is included in version 23.5.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 16, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants