Skip to content

Commit f93341b

Browse files
committed
feat: disable jsdoc/reject-any-type
Since it's not uncommon to document values of any type. A good example is APIs which serialize/deserialize. Signed-off-by: Kevin Locke <[email protected]>
1 parent 6ae9847 commit f93341b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

rules/jsdoc.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,12 @@ module.exports = {
2525
]
2626
}],
2727

28+
// Don't forbid use of any (or *) type within JSDoc tag types.
29+
// Although it is better to be specific where possible, it is not uncommon
30+
// to document values which may be of any type, particularly when loading
31+
// or deserializing data.
32+
"jsdoc/reject-any-type": "off",
33+
2834
// Requires a hyphen before the @param description is not used.
2935
// It seems inconsistent with other tags and doesn't add value for me.
3036
"jsdoc/require-hyphen-before-param-description": ["error", "never"],

0 commit comments

Comments
 (0)