Skip to content

Throw errors for non-class decorators #185

Closed
@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