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

bug report: eslint-plugin-no-autofix crashes when run on pre-commit.ci #98

Open
Samuel-Therrien-Beslogic opened this issue Jul 15, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@Samuel-Therrien-Beslogic
Copy link

Samuel-Therrien-Beslogic commented Jul 15, 2024

Tell us about your environment
Run on pre-commit.ci . Config file: https://github.com/BesLogic/releaf-canopeum/blob/bda039de852dfa164309c9a5c8a9945e321d7717/.pre-commit-config.yaml (although I'm currently working around it by not using no-autofix whilst running on pre-commit.ci)

Expected behavior

No crash.

Actual behavior

Looking at the logs below, it looks like it might be trying to scan a node_module at a location that doesn't exist ?

Run: https://results.[pre-commit.ci](https://results.pre-commit.ci/run/github/771018559/1721085009.qZHCeznDTve6PMAqJ7p21A)/run/github/771018559/1721085009.qZHCeznDTve6PMAqJ7p21A

Oops! Something went wrong! :(

ESLint: 8.56.0

Error: Failed to load plugin 'no-autofix' declared in 'canopeum_frontend/.eslintrc.cjs » eslint-config-beslogic/react » ./javascript': ENOENT: no such file or directory, scandir '/pc/clone/VaOx4E9QTZeyBfAt5DfXBQ/node_modules/'
    at Object.readdirSync (node:fs:1527:3)
    at Object.<anonymous> (/pc/clone/VaOx4E9QTZeyBfAt5DfXBQ/node_env-system/lib/node_modules/eslint-plugin-no-autofix/lib/rules.js:60:23)
    at Module._compile (node:internal/modules/cjs/loader:1256:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)
    at Module.load (node:internal/modules/cjs/loader:1119:32)
    at Module._load (node:internal/modules/cjs/loader:960:12)
    at Module.require (node:internal/modules/cjs/loader:1143:19)
    at require (node:internal/modules/cjs/helpers:121:18)
    at Object.<anonymous> (/pc/clone/VaOx4E9QTZeyBfAt5DfXBQ/node_env-system/lib/node_modules/eslint-plugin-no-autofix/lib/configs/all.js:9:18)
    at Module._compile (node:internal/modules/cjs/loader:1256:14)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants