Skip to content
This repository has been archived by the owner on Mar 25, 2021. It is now read-only.

no-redundant-jsdoc: handle class tag #3414

Merged
merged 4 commits into from
Oct 31, 2017
Merged

no-redundant-jsdoc: handle class tag #3414

merged 4 commits into from
Oct 31, 2017

Conversation

ajafff
Copy link
Contributor

@ajafff ajafff commented Oct 29, 2017

PR checklist

Overview of change:

[bugfix] no-redundant-jsdoc fixed crash on unhandled tag
Fixes: #3413

Is there anything you'd like reviewers to focus on?

@andy-ms I also added JSDocTypeLiteral to the always redundant tags. Unfortunately I don't even know what exactly that is. Can you confirm that it is expected to always show an error on this tag?

CHANGELOG.md entry:

@ghost
Copy link

ghost commented Oct 30, 2017

@ajafff JSDocTypeLiteral isn't a tag so it should never appear in the tags list. It will only appear inside of a type expression in jsdoc.

@ajafff
Copy link
Contributor Author

ajafff commented Oct 30, 2017

@andy-ms makes sense. I was confused by LastJSDocTagNode = JSDocTypeLiteral. Is that a bug in types.ts

@ghost
Copy link

ghost commented Oct 30, 2017

Probably -- @sandersn might know better.

@sandersn
Copy link
Contributor

Yeah, JSDocTypeLiteral should be before the tag kinds. It probably doesn’t manifest any buggy behaviour but the organisation is wrong.

@adidahiya adidahiya merged commit c102450 into palantir:master Oct 31, 2017
HyphnKnight pushed a commit to HyphnKnight/tslint that referenced this pull request Apr 9, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

noRedundantJsdocRule emits Error: Unexpected tag kind
3 participants