Skip to content
This repository has been archived by the owner on Mar 25, 2021. It is now read-only.

no-magic-numbers - support for negative zero #3903

Merged
merged 1 commit into from
May 30, 2018

Conversation

aervin
Copy link
Contributor

@aervin aervin commented May 11, 2018

PR checklist

Overview of change:

The rule's allowed-numbers were mapped using theString constructor, which strips the - off of -0. Using Object.is because 0 === -0 in JS.

Copy link

@giladgray giladgray left a comment

Choose a reason for hiding this comment

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

nice work!

@suchanlee suchanlee merged commit 0bc48cd into palantir:master May 30, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants