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

object-literal-key-quotes: No need to quote a float if its .toString() is the same. #2144

Merged
merged 1 commit into from Jan 31, 2017

Conversation

andy-hanson
Copy link
Contributor

@andy-hanson andy-hanson commented Jan 27, 2017

PR checklist

  • Addresses an existing issue: #0000
  • New feature, bugfix, or enhancement
    • Includes tests
  • Documentation update

What changes did you make?

A property { "1.23": null } does not need quotes since { 1.23: null } is the same object. But the values { ".123": null } and { .123: null } differ. Try it out: node -p '({ 1.23: null })'.

@nchen63 nchen63 merged commit 6395aea into palantir:master Jan 31, 2017
@nchen63
Copy link
Contributor

nchen63 commented Jan 31, 2017

@andy-hanson thanks!

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.

None yet

2 participants