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

Precommit hook fails due to lint:fix not existing #237

Closed
Zaperex opened this issue Oct 16, 2023 · 0 comments · Fixed by #239
Closed

Precommit hook fails due to lint:fix not existing #237

Zaperex opened this issue Oct 16, 2023 · 0 comments · Fixed by #239
Labels
kind/bug Something isn't working status/triage

Comments

@Zaperex
Copy link
Member

Zaperex commented Oct 16, 2023

Describe the bug

When trying to create a commit, the following error occurs:

> janus-idp.io@0.0.0 lint-staged
> lint-staged

✔ Preparing lint-staged...
⚠ Running tasks for staged files...
  ❯ package.json — 1 file
    ❯ * — 1 file
      ✖ turbo run prettier:fix -- [KILLED]
    ❯ *.{js,jsx,ts,tsx,mjs,cjs} — 1 file
      ✖ turbo run lint:fix -- [FAILED]
↓ Skipped because of errors from tasks.
✔ Reverting to original state because of errors...
✔ Cleaning up temporary files...

✖ turbo run lint:fix --:
 ERROR  run failed: error preparing engine: Could not find the following tasks in project: lint:fix
Turbo error: error preparing engine: Could not find the following tasks in project: lint:fix

✖ turbo run prettier:fix --:
• Packages in scope: //, docusaurus-plugin-tailwind, eslint-config-custom, tsconfig, ui, website
• Running prettier:fix in 6 packages
• Remote caching disabled
//:prettier:fix: cache bypass, force executing 0263fb2fa2ae5114
husky - pre-commit hook exited with code 1 (error)

Expected Behavior

The commit is created without error.

What are the steps to reproduce this bug?

  1. Create a commit with a modification for a file that is one of the following types ({js,jsx,ts,tsx,mjs,cjs})
  2. Observe above error
@Zaperex Zaperex added status/triage kind/bug Something isn't working labels Oct 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working status/triage
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant