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

eslint: disallow nested ternaries #1695

Merged
merged 2 commits into from
Jan 22, 2023

Conversation

NovemLinguae
Copy link
Member

Suggested in #1693

Have our linter disallow stuff like this, for readability reasons:

outerNavClass = navigation === 'mw-panel' ? 'portal' : type === 'menu' ? 'dropdown vector-menu-dropdown-noicon' : 'tabs';

@github-actions github-actions bot added Module: block Module: morebits The morebits.js library labels Jan 6, 2023
@NovemLinguae NovemLinguae merged commit ca7dc8b into wikimedia-gadgets:master Jan 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Module: block Module: morebits The morebits.js library
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant