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

object-literal-key-quotes changes broke object shorthand #1938

Closed
corbinu opened this issue Dec 27, 2016 · 2 comments
Closed

object-literal-key-quotes changes broke object shorthand #1938

corbinu opened this issue Dec 27, 2016 · 2 comments

Comments

@corbinu
Copy link

corbinu commented Dec 27, 2016

Bug Report

  • TSLint version: 4.2.0
  • TypeScript version: 2.1.4
  • Running TSLint via: npm script/CLI

TypeScript code being linted

let obj = {
     event,
     tags
};

Actual behavior

PR #1874 causes this to be treated as a unquoted object literal

Expected behavior

no error

dphilipson added a commit to dphilipson/pure-assign that referenced this issue Jan 2, 2017
TSLint 4.2.0 introduces a bug involving object spread notation (see
palantir/tslint#1938). Fix the version at
4.1.0 to avoid this.
@adidahiya
Copy link
Contributor

Fixed by #1945

@corbinu
Copy link
Author

corbinu commented Jan 3, 2017

Thanks!

@adidahiya adidahiya modified the milestone: TSLint v4.3 Jan 5, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants