Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Allow @jest-environment docblock for jest tests #592

Merged
merged 1 commit into from Jul 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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