Skip to content
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.

object-literal-key-quotes false positive when linting empty string #343

Closed
anvish opened this issue Feb 14, 2017 · 2 comments
Closed

object-literal-key-quotes false positive when linting empty string #343

anvish opened this issue Feb 14, 2017 · 2 comments
Assignees
Milestone

Comments

@anvish
Copy link

anvish commented Feb 14, 2017

The rule suggests removing quotes around empty string

const a = {
    '': 'b', // [tslint] Unnecessarily quoted property '' found. (object-literal-key-quotes)
}
@HamletDRC HamletDRC added this to the 3.0.1 milestone Feb 17, 2017
@HamletDRC HamletDRC self-assigned this Feb 17, 2017
@HamletDRC
Copy link
Member

Hi @anvish
The object-literal-key-quotes rule is a base TSLint rule.

Can you please create this defect on that project? It is not my source code :(
https://github.com/palantir/tslint/issues/new

@anvish
Copy link
Author

anvish commented Feb 18, 2017

Seems to be fixed there in latest version.

@anvish anvish closed this as completed Feb 18, 2017
@HamletDRC HamletDRC changed the title object-literal-key-quotes false positive object-literal-key-quotes false positive when linting empty string Mar 16, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants