Skip to content

Commit

Permalink
feat: extra properties of objects can be documented
Browse files Browse the repository at this point in the history
  • Loading branch information
gurpreetatwal committed Jul 14, 2022
1 parent 59f6530 commit a6de3a1
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 21 deletions.
9 changes: 9 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -542,6 +542,7 @@ module.exports = {
checkDestructured: true,
checkRestProperty: true,
allowExtraTrailingParamDocs: false,
useDefaultObjectProperties: true,
},
],
'jsdoc/check-property-names': 'error',
Expand Down Expand Up @@ -590,6 +591,14 @@ module.exports = {
forceReturnsWithAsync: false,
},
],
'jsdoc/require-yields': [
'error',
{ withGeneratorTag: true, next: true, forceRequireNext: false },
],
'jsdoc/require-yields-check': [
'error',
{ checkGeneratorsOnly: true, next: true },
],
'jsdoc/require-throws': 'off',
'jsdoc/valid-types': ['error', { allowEmptyNamepaths: true }],

Expand Down
40 changes: 20 additions & 20 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"eslint-plugin-ava": "13.2.0",
"eslint-plugin-eslint-comments": "3.2.0",
"eslint-plugin-import": "2.26.0",
"eslint-plugin-jsdoc": "30.7.8",
"eslint-plugin-jsdoc": "^31.2.3",
"eslint-plugin-lodash": "7.4.0",
"eslint-plugin-mocha": "10.0.5",
"eslint-plugin-no-use-extend-native": "0.5.0",
Expand Down

0 comments on commit a6de3a1

Please sign in to comment.