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

Update biome, fix and enforce recommended rules #213

Merged
merged 4 commits into from
Jun 24, 2024

Conversation

bmv437
Copy link
Contributor

@bmv437 bmv437 commented May 27, 2024

Most changes in this PR are auto-fixes from running biome check . --write.

Notable changes:

  • Switched Biome lint rules from all to recommended.
  • Migrated useToast from using a useState + useEffect to a useSyncExternalStore instead. This was because Biome showed an error where the useEffect did not have listeners in it's dependencies array. Seeing that listeners didn't actually belong in the useEffect dependencies, I noticed this was actually a better fit for useSyncExternalStore.

@CLAassistant
Copy link

CLAassistant commented May 27, 2024

CLA assistant check
All committers have signed the CLA.

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


Brandon Vandegrift seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

@bmv437 bmv437 force-pushed the feature/enforce-biome branch from a599a32 to fc7222e Compare May 27, 2024 20:17
@bmv437 bmv437 marked this pull request as ready for review May 27, 2024 20:17
@bmv437 bmv437 force-pushed the feature/enforce-biome branch from fc7222e to 404052f Compare May 27, 2024 20:22
@Hunter275 Hunter275 added bug Something isn't working enhancement New feature or request major change This is a major change labels Jun 16, 2024
@bmv437 bmv437 force-pushed the feature/enforce-biome branch from 404052f to 94cf819 Compare June 22, 2024 16:42
@bmv437 bmv437 force-pushed the feature/enforce-biome branch from 94cf819 to 93b139c Compare June 22, 2024 16:55
@bmv437
Copy link
Contributor Author

bmv437 commented Jun 22, 2024

I've rebased this PR onto the latest master branch, and applied additional biome fixes to the latest changes.

@Hunter275 let me know if you have any questions or concerns.

@Hunter275
Copy link
Member

@bmv437 perfect I’ll work on testing this and merging this weekend

@Hunter275 Hunter275 merged commit 0dddf6a into meshtastic:master Jun 24, 2024
2 of 3 checks passed
@Hunter275
Copy link
Member

Very excited for this change!

@bmv437 bmv437 deleted the feature/enforce-biome branch June 24, 2024 00:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request major change This is a major change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants