Skip to content
New issue

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 report error from @import #1242

Closed
regseb opened this issue Jun 22, 2024 · 1 comment · Fixed by #1243 or femdevs/femdev-website#18 · May be fixed by WontonSam/markdownlint#13 or WontonSam/markdownlint#22
Closed

no-undefined-types report error from @import #1242

regseb opened this issue Jun 22, 2024 · 1 comment · Fixed by #1243 or femdevs/femdev-website#18 · May be fixed by WontonSam/markdownlint#13 or WontonSam/markdownlint#22

Comments

@regseb
Copy link
Contributor

regseb commented Jun 22, 2024

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

{
  "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"
 */

To reproduce

  1. npm install

  2. 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)
    

Environment

  • Node version: 20.14.0
  • ESLint version: 9.5.0
  • eslint-plugin-jsdoc version: 48.2.12
Copy link

🎉 This issue has been resolved in version 48.2.13 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment