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-extraneous-dependencies] no error on imports in jsdoc @types #2508

Closed
DetachHead opened this issue Jul 25, 2022 · 1 comment
Closed

[no-extraneous-dependencies] no error on imports in jsdoc @types #2508

DetachHead opened this issue Jul 25, 2022 · 1 comment

Comments

@DetachHead
Copy link

const eslint = require('eslint') // error:  'eslint' should be listed in the project's dependencies. Run 'npm i -S eslint' to add it

/** @type {import('eslint').Linter.ParserOptions} */ // no error
const parserOptions = {}
@JounQin
Copy link
Collaborator

JounQin commented Jul 25, 2022

Maybe it should be used with https://github.com/gajus/eslint-plugin-jsdoc#user-content-eslint-plugin-jsdoc-rules-check-types?

eslint-plugin-import has no info about jsdoc.

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

No branches or pull requests

2 participants