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

chore(lint): fix lint errors+warnings #110

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

pongstr
Copy link

@pongstr pongstr commented Dec 12, 2024

  • fixed: fixable lint errors + warnings that doesn't have unintended bad side effects
  • fixed: suppressed ones that break the app (mostly react-hooks/exhaustive-deps)
  • added: eslint-plugin-tailwindcss
    • no-contradicting-classname e.g. avoid p-2 p-3, different Tailwind CSS classnames (pt-2 & pt-3) but targeting the same property several times for the same variant.
    • classnames-order: order classnames for consistency and it makes merge conflict a bit easier to resolve
  • refactor: ConnectModal to adhere to react "rules of hook"
Screenshot 2024-12-13 at 00 26 34

@pongstr pongstr marked this pull request as ready for review December 12, 2024 22:27
Copy link

netlify bot commented Dec 12, 2024

Deploy Preview for zmk-studio ready!

Name Link
🔨 Latest commit 5386a8d
🔍 Latest deploy log https://app.netlify.com/sites/zmk-studio/deploys/6769b4ccb2610d0008fbae12
😎 Deploy Preview https://deploy-preview-110.preview.zmk.studio
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@pongstr pongstr marked this pull request as draft December 12, 2024 22:32
@pongstr pongstr marked this pull request as ready for review December 12, 2024 23:10
- fixed: React Hook "usePub" is called in function "listen_for_notifications"
    - `usePub` is no longer neccessary, calling `emitter.emit` is okay
    - `useSub` added generic typing, small refactor
- fixed: updated components that utilizes `usePub` + `useSub`
small refactor to adhere to rules of hooks.
.eslintrc.cjs Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants