darraghoriordan / eslint-plugin-nestjs-typed

Some eslint rules for working with NestJs projects
http://www.darraghoriordan.com
171 stars 34 forks source link

feat: autofix suggestions for validateNonPrimitiveNeedsDecorators #38

Closed austinwoon closed 1 year ago

austinwoon commented 1 year ago

Context

This PR serves to add autofix suggestions for @Type() decorators by suggestion the @Type decorator along with inferred type to add in the.

The autofix suggestion should only show up if type are neither union or intersection types

Got the idea from #36, and had done something similar for a custom eslint plugin in my company. Did an early proof-of-concept along with some test cases.

Will clean up the code if this is a feature you think is worth having!

darraghoriordan commented 1 year ago

:tada: This PR is included in version 3.17.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: