Skip to content

Commit

Permalink
fix(prettier-plugin-jsdoc): add support for the remarks tag
Browse files Browse the repository at this point in the history
  • Loading branch information
homer0 committed Mar 16, 2021
1 parent 50f3d12 commit fb2835f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/fns/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ const getTagsWithDescriptionAsName = () => [
'examples',
'file',
'license',
'remarks',
'summary',
'throws',
'todo',
Expand Down
11 changes: 11 additions & 0 deletions test/e2e/fixtures/random-01.fixture.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ const log = (name = 'batman', logger) => {};
* @parent module:controllers
*/

/**
* @remarks Some of the Prisma scalars do not have a natural standard representation in GraphQL. For these case Nexus Prisma generates code that references type names matching those scalar names in Prisma. Then, you are expected to define those custom scalar types in your GraphQL API.
*/

//# output

/**
Expand Down Expand Up @@ -101,3 +105,10 @@ const log = (name = 'batman', logger) => {};
* StaticsControllerWrapperOptions
* @parent module:controllers
*/

/**
* @remarks Some of the Prisma scalars do not have a natural standard representation in
* GraphQL. For these case Nexus Prisma generates code that references type names
* matching those scalar names in Prisma. Then, you are expected to define those
* custom scalar types in your GraphQL API.
*/

0 comments on commit fb2835f

Please sign in to comment.