darraghoriordan / eslint-plugin-nestjs-typed

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

fix: detect `isObject` decorator usage #42

Closed austinwoon closed 1 year ago

austinwoon commented 1 year ago

Similar to @IsEnum, @IsObject should also be ignored from requiring explicit transforms.

Closes #41

Solution

Created a separate function to detect @IsObject decorators similar to IsEnum. Alternatively, we could combine this into one function so that only one conditional check needs to execute.

Perhaps name it something like areIgnoredDecorators

darraghoriordan commented 1 year ago

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

The release is available on:

Your semantic-release bot :package::rocket: