Closed
Description
For no-undefined-types
, I'd like a way to feed one's project files, whether:
- Detected by static or dynamic
import
/require
, with the entry file(s) determined by:- a new
eslint-plugin-jsdoc
option - use of
main
orexports
inpackage.json
- use of jsdoc config
- a new
- By a file being present in one's jsdoc config
- If eslint-plugin-jsdoc were supplied an array of files for finding typedefs
I need more context because some of my types are in:
- A purely-comment-based typedefs.js file which includes external and generic types
- Other files and modules
I'd like it to report for:
/**
* @param {MyType}
*/
...where MyType
is not defined anywhere within JSDoc typedefs/interfaces across all files. The corollary is thus not to report errors for:
// One file, such as `typedefs.js`
/**
* @typedef {object} MyType
*/
/**
* @interface AnotherType
*/
// Another file:
/**
* @param {MyType}
*/
/**
* @param {AnotherType}
*/
Thanks very much for the very useful plugin!
Update: While traversing files of a project, also consider supporting @inheritdoc
per #765
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.