thanks for adding the rule i suggested in #896! i noticed that it doesn't seem to detect @types/ packages though
Expected behavior
error because @types/eslint is not in dependencies or devDependencies
Actual behavior
no error
ESLint Config
module.exports = {
// ...
rules: {
'jsdoc/imports-as-dependencies': 'error'
}
}
ESLint sample
source code
/** @type {import('eslint').Linter.ParserOptions} */
const foo = {}
package.json
{
"dependencies": {
"eslint": "^8.13.0"
},
"devDependencies": {}
}
Environment
- Node version: 19.7.0
- ESLint version
eslint-plugin-jsdoc version: 46.2.0
thanks for adding the rule i suggested in #896! i noticed that it doesn't seem to detect
@types/packages thoughExpected behavior
error because
@types/eslintis not independenciesordevDependenciesActual behavior
no error
ESLint Config
ESLint sample
source code
package.json
{ "dependencies": { "eslint": "^8.13.0" }, "devDependencies": {} }Environment
eslint-plugin-jsdocversion: 46.2.0