Skip to content

Commit

Permalink
Merge pull request #592 from nextcloud/fix/allow-jest-tags
Browse files Browse the repository at this point in the history
fix: Allow `@jest-environment` docblock for jest tests
  • Loading branch information
susnux committed Jul 12, 2023
2 parents d23421b + b4da20e commit fbb3b00
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
8 changes: 8 additions & 0 deletions parts/base.js
Expand Up @@ -63,6 +63,14 @@ module.exports = {
// ternary on multiline
'multiline-ternary': ['error', 'always-multiline'],
// force proper JSDocs
'jsdoc/check-tag-names': [
'warn', {
definedTags: [
// for jest
'jest-environment',
],
},
],
'jsdoc/require-returns': 0,
'jsdoc/require-returns-description': 0,
'jsdoc/tag-lines': ['off'],
Expand Down
4 changes: 3 additions & 1 deletion parts/typescript.js
Expand Up @@ -16,10 +16,12 @@ module.exports = {
'import/extensions': 'off',
'jsdoc/check-tag-names': [
'warn', {
// for projects using typedoc
definedTags: [
// for projects using typedoc
'notExported',
'packageDocumentation',
// for jest
'jest-environment',
],
},
],
Expand Down

0 comments on commit fbb3b00

Please sign in to comment.