Skip to content

Disallow nested ternary expressions in ESLint [WPB-22420]#21733

Merged
thisisamir98 merged 3 commits into
devfrom
do-not-allow-nested-ternary
Jul 6, 2026
Merged

Disallow nested ternary expressions in ESLint [WPB-22420]#21733
thisisamir98 merged 3 commits into
devfrom
do-not-allow-nested-ternary

Conversation

@thisisamir98

@thisisamir98 thisisamir98 commented Jul 3, 2026

Copy link
Copy Markdown
Collaborator
TaskWPB-22420 [Web] General maintenance ticket for PR merges

Add the no-nested-ternary rule and refactor existing violations to equivalent if/else logic without behavior changes. Also apply small prettier auto-fixes in webapp files that already failed lint on dev so affected lint passes when the webapp project is included.

Add the no-nested-ternary rule and refactor existing violations to
equivalent if/else logic without behavior changes. Also apply small
prettier auto-fixes in webapp files that already failed lint on dev so
affected lint passes when the webapp project is included.
@thisisamir98 thisisamir98 changed the title Disallow nested ternary expressions in ESLint. Disallow nested ternary expressions in ESLint [WPB-22420] Jul 3, 2026
Restore nine webapp files to their dev formatting. The prior
eslint --fix pass used local Prettier 3.8.4, which disagrees with
CI's 3.9.4 on union-type layout and caused false prettier/prettier
failures such as in MLSConversations.ts.
zskhan
zskhan previously approved these changes Jul 3, 2026
@sonarqubecloud

sonarqubecloud Bot commented Jul 6, 2026

Copy link
Copy Markdown

@thisisamir98 thisisamir98 added this pull request to the merge queue Jul 6, 2026
Merged via the queue into dev with commit 4901175 Jul 6, 2026
18 checks passed
@thisisamir98 thisisamir98 deleted the do-not-allow-nested-ternary branch July 6, 2026 10:12
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.

3 participants