Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rule "property decorator type mismatch" has false positives #34

Open
xiniria opened this issue Aug 16, 2023 · 0 comments
Open

Rule "property decorator type mismatch" has false positives #34

xiniria opened this issue Aug 16, 2023 · 0 comments
Labels
bug Something isn't working p3

Comments

@xiniria
Copy link
Contributor

xiniria commented Aug 16, 2023

Example on a class-validator DTO class:

export class QuestionnaireAnswerDTO {
  @IsArray()
  @ValidateNested({ each: true })
  
  // eslint-disable-next-line @hokla/custom-rules/property-decorator-type-mismatch
  @Type(() => DimensionAnswerDTO)
  data: DimensionAnswerDTO[];
}
@xiniria xiniria added bug Something isn't working p3 labels Aug 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working p3
Projects
None yet
Development

No branches or pull requests

2 participants