We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
require-yields
ExportNamedDeclaration
declaration
1 parent 244116e commit 93a9415Copy full SHA for 93a9415
src/iterateJsdoc.js
@@ -1353,7 +1353,7 @@ const getUtils = (
1353
* @type {import('estree').ExportNamedDeclaration|
1354
* import('estree').ExportDefaultDeclaration}
1355
*/ (node).declaration
1356
- ).generator,
+ )?.generator,
1357
);
1358
};
1359
test/rules/assertions/requireYields.js
@@ -1884,5 +1884,18 @@ export default {
1884
}
1885
`,
1886
},
1887
+ {
1888
+ code: `
1889
+ /**
1890
+ *
1891
+ */
1892
+ export { foo } from "bar"
1893
+ `,
1894
+ options: [
1895
1896
+ contexts: ['ExportNamedDeclaration']
1897
+ }
1898
+ ]
1899
1900
],
1901
0 commit comments