Skip to content

Commit

Permalink
Revert "test(valid-types): ensure requires checking works without…
Browse files Browse the repository at this point in the history
… `module:`; fixes #840"

This reverts commit 32c1597.
  • Loading branch information
brettz9 committed Feb 17, 2022
1 parent 32c1597 commit 9e78b57
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 14 deletions.
4 changes: 0 additions & 4 deletions src/getDefaultTagStructureForMode.js
Original file line number Diff line number Diff line change
Expand Up @@ -712,10 +712,6 @@ const getDefaultTagStructureForMode = (mode) => {
[
'requires', new Map([
// <someModuleName>
[
'nameContents', 'namepath-referencing',
],

[
'nameRequired', true,
],
Expand Down
1 change: 0 additions & 1 deletion src/rules/validTypes.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@ export default iterateJsdoc(({
if (tagName) {
// eslint-disable-next-line default-case
switch (tagName) {
case 'requires':
case 'module': {
if (!namepath.startsWith('module:')) {
handled = tryParsePathIgnoreError(`module:${namepath}`);
Expand Down
9 changes: 0 additions & 9 deletions test/rules/assertions/validTypes.js
Original file line number Diff line number Diff line change
Expand Up @@ -1610,14 +1610,5 @@ export default {
ecmaVersion: 2_017,
},
},
{
code: `
/**
* @module module:scenarios/scenarios
* @requires scenarios/effects
*/
`,
ignoreReadme: true,
},
],
};

0 comments on commit 9e78b57

Please sign in to comment.