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

no-object-literal-type-assertion: Enable and allow cast to 'any' #2671

Merged

Conversation

andy-hanson
Copy link
Contributor

PR checklist

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

Overview of change:

Allow const x = {} as any since it's equivalent to const x: any = {} anyway.
Also enable the rule in tslint itself, which is easy once the above is done.

CHANGELOG.md entry:

[enhancement] no-object-literal-type-assertion: Allow cast to any

@nchen63 nchen63 merged commit 8eb26f7 into palantir:master May 6, 2017
@andy-hanson andy-hanson deleted the object-literal-any-type-assertion branch May 6, 2017 04:39
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

3 participants