Skip to content

linter: unicorn/prefer-event-target allow EventEmitter from packages #17371

@tlebreton

Description

@tlebreton

Hi,

For the rule unicorn/prefer-event-target in the original plugin they made a modification to allow EventEmitter from certain packages and in particular from @angular/core .

sindresorhus/eslint-plugin-unicorn#1853

Is it possible to check the origin of the EventEmitter used to see if it's from global import or from some packages and allow EventEmitter from packages ?

Metadata

Metadata

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions