Repository navigation
Fix UI lint errors failing static checks - #74402
Merged
pierrejeambrun merged 1 commit intoOct 7, 2026
Merged
pierrejeambrun merged 1 commit into
pierrejeambrun merged 1 commit into
Conversation
Pushkal-Gupta
requested review from
bbovenzi,
choo121600,
guan404ming,
pierrejeambrun,
ryanahamilton,
shubhamraj-git and
vatsrahul1001
as code owners
October 7, 2026 09:08
1 task done
pierrejeambrun
approved these changes
Oct 7, 2026
pierrejeambrun
left a comment
Member
There was a problem hiding this comment.
Thanks.
I'm fine with it for now, but I admit I find it hard to read too.
1 task done
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.
ts-compile-lint-uicurrently fails on main, so every open PR inherits a redStatic checkswhatever it touches. Two ternaries tripunicorn/prefer-logical-operator-over-ternary:Both arrived on 2026-10-06, in #74289 and #69619.
useRecentTaskStateCounts.tsxStraightforward, and exactly the operator the rule derives: the consequent is not a boolean constant, the alternate is
false, so it wants&&with no negation.useAdvancedSearch.ts— worth a look before approvingThis reads worse than what it replaces, and I would rather flag that than quietly ship it. Behaviour is unchanged across all three inputs:
includes(key)includes("-key")truetruefalsefalseundefinedundefinedThe readable fix does not survive the linter. Keeping the early-return
ifand rewriting only the ternary leavesunicorn/prefer-ternarycomplaining about theifabove it, so the two rules push in opposite directions and the combined logical expression is what satisfies both.If a maintainer would rather keep the original and silence the rule at these two sites, or reconsider the rule for this package, that seems a reasonable call and I am happy to redo it that way. The aim here is just to get main green.
Verification
pnpm eslint .across the UI: 0 errors (159 warnings, none new)tsc --noEmit -p tsconfig.json: cleaneslint-plugin-unicorn@76.0.0; a stale local 73.0.0 does not flag either site,which is probably why these reached main
Was generative AI tooling used to co-author this PR?