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 or exports in package.json
- use of jsdoc config
- 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:
...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.
For
no-undefined-types, I'd like a way to feed one's project files, whether:import/require, with the entry file(s) determined by:eslint-plugin-jsdocoptionmainorexportsinpackage.jsonI need more context because some of my types are in:
I'd like it to report for:
...where
MyTypeis not defined anywhere within JSDoc typedefs/interfaces across all files. The corollary is thus not to report errors for:Thanks very much for the very useful plugin!
Update: While traversing files of a project, also consider supporting
@inheritdocper #765Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.