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

Exception with multiple config files #1282

Closed
danielrentz opened this issue Jul 30, 2024 · 3 comments · Fixed by #1283
Closed

Exception with multiple config files #1282

danielrentz opened this issue Jul 30, 2024 · 3 comments · Fixed by #1283

Comments

@danielrentz
Copy link

Expected behavior

Linting succeeds

Actual behavior

Error: ENOENT: no such file or directory, open '.../my_project/test/package.json'
    at Object.open (node:internal/fs/sync:78:18)
    at Object.openSync (node:fs:565:17)
    at readFileSync (node:fs:445:35)
    at .../my_project/node_modules/eslint-plugin-jsdoc/src/getJsdocProcessorPlugin.js:18:3

ESLint Config

We have a project with a sub directory containing an additional "eslint.config.js" for some reason.

my_project/
    package.json
    eslint.config.js
    test/
        eslint.config.js  

Linting in this directory (cd test && eslint .) worked with eslint-plugin-jsdoc v48.8.x but fails with eslint-plugin-jsdoc v48.9.2. Maybe caused by the "move processor to own file" changes in 48.9.1.

Environment

  • Node version: 20.x
  • ESLint version 9.8.0
  • eslint-plugin-jsdoc version: 48.9.2
Copy link

🎉 This issue has been resolved in version 48.9.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

@brettz9
Copy link
Collaborator

brettz9 commented Jul 30, 2024

Please let us know if the new release addresses the issue (as it should). Thanks!

@danielrentz
Copy link
Author

@brettz9 It works, thank you for the quick fix!

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