No error output on missing package.json at least if it is not active
Actual behavior
An error is always printed, if package.json is not found although imports-as-dependencies is not configured. Although the error is catched and only printed it breaks parsing the eslint output.
A similar issue is reported here. As this was not fixed so far I implemented a workaround to create an empty package.json in the parent folder of all my projects. This works for eslint-plugin-import but not for eslint-plugin-jsdoc as eslint-plugin-jsdoc is only looking in the current working directory for package.json.
Expected behavior
No error output on missing package.json at least if it is not active
Actual behavior
An error is always printed, if package.json is not found although imports-as-dependencies is not configured. Although the error is catched and only printed it breaks parsing the eslint output.
A similar issue is reported here. As this was not fixed so far I implemented a workaround to create an empty package.json in the parent folder of all my projects. This works for eslint-plugin-import but not for eslint-plugin-jsdoc as eslint-plugin-jsdoc is only looking in the current working directory for package.json.
ESLint Config
(*) but not "jsdoc/imports-as-dependencies": "error",
Environment
eslint-plugin-jsdoc
version: 46.2.5