Closed jessej-samuel closed 1 year ago
https://github.com/novuhq/hacksquad-website/blob/6e15da800e2d7b45179baee7a85c3e14c311b030/.lintstagedrc#L3
When lint-staged checks for linting errors on git add it concurrently does git add twice leading to a race condition.
git add
So, I suggest a hotfix for the same.
Remove linting checks for .jsx files as they don't have a lot of JavaScript to check for linting errors
.jsx
Oops! Apparently this error can be prevented by stopping the dev server before commiting.
https://github.com/novuhq/hacksquad-website/blob/6e15da800e2d7b45179baee7a85c3e14c311b030/.lintstagedrc#L3
When lint-staged checks for linting errors on
git add
it concurrently doesgit add
twice leading to a race condition.So, I suggest a hotfix for the same.
Remove linting checks for
.jsx
files as they don't have a lot of JavaScript to check for linting errors