Remove "git add" commands from lint-staged
See original GitHub issueI get this warning when committing:
@rjsf/core: ⚠ Some of your tasks use `git add` command. Please remove it from the config since all modifications made by tasks will be automatically added to the git commit index.
Issue Analytics
- State:
- Created 3 years ago
- Comments:14 (11 by maintainers)
Top Results From Across the Web
lint-staged: what the purpose of 'git add' command
lint -staged just changes your code and make it linting (It runs before commit by husky). After changed, you need add it again...
Read more >Remove "git add" from configuration of lint-staged #270 - GitHub
Steps To Reproduce: Clone the trailheadapps/lwc-recipes; Try to commit any changes. Expected result. The pre-commit hook runs linting and tests ...
Read more >Linting Staged Git Files with lint-staged -- newline - Fullstack.io
With lint-staged , executing the command git commit automatically runs the linter against files staged for commit.
Read more >Remove `git add` in lint-staged commands · a175b65634 - hi3
Remove `git add` in lint-staged commands · 1 changed files · 1 additions · 2 deletions.
Read more >Run ESLint on git commit with Husky and Lint Staged
Husky makes git hooks much more manageable because you don't have to write scripts for hooks manually. You can just add the command...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I’ll like to work on this @epicfaace
Okay, I will pick this up