Skip to content

Throw errors for non-class decorators #185

@ikatyang

Description

@ikatyang

What code were you trying to parse?

@dec()
const a = 1

What did you expect to happen?

Throw an error.

What actually happened?

No decorators attached nor errors were thrown.

Versions

package version
@typescript-eslint/typescript-estree 1.1.0
TypeScript 3.2.2
node X.Y.Z
npm X.Y.Z

Original post: prettier/prettier#5823

Metadata

Metadata

Assignees

Labels

package: typescript-estreeIssues related to @typescript-eslint/typescript-estreetriageWaiting for team members to take a look

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    pFad - Phonifier reborn

    Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

    Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


    Alternative Proxies:

    Alternative Proxy

    pFad Proxy

    pFad v3 Proxy

    pFad v4 Proxy