We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
no-undefined-types
@import
no-undefined-types reports no errors when using an @import tag.
no-undefined-types reports an error for @import tag.
package.json
{ "name": "testcase", "version": "1.0.0", "dependencies": { "eslint": "9.5.0", "eslint-plugin-jsdoc": "48.2.12" } }
eslint.config.mjs
import jsdoc from "eslint-plugin-jsdoc"; export default [ { plugins: { jsdoc }, rules: { "jsdoc/no-undefined-types": "error" } } ];
index.js
/** * @import { Linter } from "eslint" */
npm install
npx eslint index.js
/home/regseb/testcase/index.js 2:1 error The type 'Linter' is undefined jsdoc/no-undefined-types ✖ 1 problem (1 error, 0 warnings)
eslint-plugin-jsdoc
The text was updated successfully, but these errors were encountered:
fix(no-undefined-types): prevent linting of "type" within @import; f…
6bcde60
…ixes gajus#1242
0bea154
…ixes #1242
🎉 This issue has been resolved in version 48.2.13 🎉
The release is available on:
Your semantic-release bot 📦🚀
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Expected behavior
no-undefined-types
reports no errors when using an@import
tag.Actual behavior
no-undefined-types
reports an error for@import
tag.Files
package.json
eslint.config.mjs
index.js
To reproduce
npm install
npx eslint index.js
Environment
eslint-plugin-jsdoc
version: 48.2.12The text was updated successfully, but these errors were encountered: