chore: Address TiCS coding standards warnings for base JS#5104
Merged
chore: Address TiCS coding standards warnings for base JS#5104
Conversation
1abe1f6 to
7c3478c
Compare
codeEmpress1
approved these changes
Apr 22, 2025
Contributor
|
LGTM! |
bartaz
reviewed
Apr 22, 2025
| } | ||
|
|
||
| target = eventTarget.closest("a") as HTMLAnchorElement; | ||
| target = eventTarget.closest("a")!; |
Member
There was a problem hiding this comment.
I'm not exactly sure if I understand the ! usage here.
We are telling TS, that this is not null (if I understand it correctly), but next line we actually have a conditional statement to check if it's not null (because then we look for a button instead).
Contributor
Author
There was a problem hiding this comment.
@bartaz Actually that makes sense - I meant to revert that change as I did on others on closer review. TiCS wants us to mark every selector as not null it seems, even though we can't always be sure about that. I'll fix that in the next PR.
bartaz
approved these changes
Apr 22, 2025
Member
bartaz
left a comment
There was a problem hiding this comment.
LGTM, with a question (in inline comment).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Done
Addressed TiCS coding standards warnings for base JS
triggerEventfunction to meet the parameter limit requirement, which makes it clearer what each argument is for when using the functionorigintourlLocationasoriginis an existing global objectHow to QA
All JS tests and linter checks should pass
Testing