novuhq / hacksquad-website

Contribute code, meet community members, participate in workshops, and win more SWAG 🚀
https://hacksquad.dev
MIT License
257 stars 191 forks source link

lint: eslint create errors when adding new tailwind classes to pages #13

Closed jessej-samuel closed 1 year ago

jessej-samuel commented 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.

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

jessej-samuel commented 1 year ago

Oops! Apparently this error can be prevented by stopping the dev server before commiting.