fix: husky pre-commit warning#93
Conversation
``` husky - DEPRECATED Please remove the following two lines from .husky/pre-commit: . "$(dirname -- "$0")/_/husky.sh" They WILL FAIL in v10.0.0 ```
WalkthroughThe pull request modifies the Husky pre-commit hook by removing two lines from the Changes
Sequence Diagram(s)sequenceDiagram
participant Dev as Developer
participant Git as Git
participant Pre as .husky/pre-commit
participant Lint as npx lint-staged
Dev->>Git: Commit changes
Git->>Pre: Trigger pre-commit hook
Pre->>Lint: Execute lint-staged
Lint-->>Pre: Return lint results
Pre-->>Git: Allow commit if linting passes
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
💤 Files with no reviewable changes (1)
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Problem
Committing throws this warning:
Solution
.husky/pre-commitSummary by CodeRabbit