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

Fix time-min-milliseconds end positions #6273

Merged
merged 1 commit into from Aug 17, 2022

Conversation

ybiquitous
Copy link
Member

Which issue, if any, is this issue related to?

Part of #5694
(should be the last one)

Is there anything in the PR that needs further explanation?

This PR mainly fixes end positions of the time-min-milliseconds rule and performs some refactorings.

@@ -46,37 +46,39 @@ const rule = (primary, secondaryOptions) => {
return;
}

const minimum = /** @type {number} */ (primary);
const minimum = primary;
const ignoreDelay = optionsMatches(secondaryOptions, 'ignore', 'delay');
Copy link
Member Author

Choose a reason for hiding this comment

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

[note] Avoid repeated evaluation.

Copy link
Member

@jeddy3 jeddy3 left a comment

Choose a reason for hiding this comment

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

LGTM, thank you!

@ybiquitous ybiquitous merged commit 343d8dd into main Aug 17, 2022
@ybiquitous ybiquitous deleted the fix-time-min-milliseconds-end-positions branch August 17, 2022 00:22
@ybiquitous
Copy link
Member Author

Changelog entry added:

  • Fixed: time-min-milliseconds end positions (#6273).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants