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

NONE eslint services directory #2436

Merged
merged 8 commits into from
Sep 19, 2023
Merged

NONE eslint services directory #2436

merged 8 commits into from
Sep 19, 2023

Conversation

atraversatlassian
Copy link
Collaborator

What's in this PR?
Enable eslint in services directory

Why
More lint

Added feature flags
None

Affected issues
NONE

How has this been tested?
Unit tests

Whats Next?
more lint

@atraversatlassian atraversatlassian requested a review from a team as a code owner September 19, 2023 00:09
Message: string;
Type?: string;
Subject?: string;
Message?: string;
Copy link
Contributor

Choose a reason for hiding this comment

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

Curious about this change, should we really make our typing looser?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Where these are currently used it is doing a direct assignment from an any coming from parsing json or yaml. We could keep these tighter in their definition but would need more validation when assigning objects to these interfaces

Copy link
Contributor

Choose a reason for hiding this comment

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

I think we should do that IMHO, otherwise we will need to check if it is defined or not everywhere

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I have updated LifecycleData back to having them as set properties and added undefined checks after assignment.

I left LifecycleMessageData with optionals on its fields for now as it is only used in one place of the code right after being converted from json

@atraversatlassian atraversatlassian merged commit 68174cb into main Sep 19, 2023
4 checks passed
@atraversatlassian atraversatlassian deleted the NONE-eslint-services branch September 19, 2023 06:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants