Skip to content

Commit

Permalink
enforce more documentation types
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelglass committed Mar 26, 2024
1 parent 94a938e commit 2672a0b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/eslint-config-nlx/documentation.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@ module.exports = {
extends: ["plugin:jsdoc/recommended-typescript-error"],
plugins: ["eslint-plugin-tsdoc"],
rules: {
"jsdoc/require-jsdoc": [
"error",
{
publicOnly: true,
// these ensure that documentation of various type script constructs is required. Will tweak as we go.
contexts: ["TSTypeAliasDeclaration","TSInterfaceDeclaration","TSMethodSignature","TSPropertySignature"]
}
],
"jsdoc/check-tag-names": ["error", { definedTags: ["category", "hidden"] }],
"jsdoc/require-param": ["error", { checkDestructured: false }],
"jsdoc/check-param-names": ["error", { checkDestructured: false }],
Expand Down

0 comments on commit 2672a0b

Please sign in to comment.