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

lint(eslint): Special case *.js config and script files in eslint #83286

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ryan953
Copy link
Member

@ryan953 ryan953 commented Jan 10, 2025

No description provided.

@ryan953 ryan953 requested review from a team as code owners January 10, 2025 23:52
@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Jan 10, 2025
Comment on lines -1781 to -1785
if (position < top) {
position = position;
} else if (position > top + height) {
if (position > top + height) {
position = index * 24 - height + 24;
} else {
Copy link
Member

Choose a reason for hiding this comment

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

is this expected?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah it's a weird diff.

It was complaining about the statement 'position = position' in the first IF block. So I removed that but then it was an empty block. So I refactored the conditions from if/elseif/else to be if/elseif. The first IF condition got inverted into the new elseif at the bottom.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Scope: Frontend Automatically applied to PRs that change frontend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants