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 for curly brackets and fix #956

Merged
merged 2 commits into from
Oct 7, 2024

Conversation

tylersayshi
Copy link
Contributor

follow up to: #952 (comment)

Copy link

vercel bot commented Oct 7, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
waku ✅ Ready (Inspect) Visit Preview Oct 7, 2024 1:36am

Copy link

codesandbox-ci bot commented Oct 7, 2024

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

@@ -33,7 +33,8 @@
"destructuredArrayIgnorePattern": "^_"
}
],
"react/prop-types": "off"
"react/prop-types": "off",
"curly": ["error", "all"]
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wish it had a rule for early return. https://eslint.org/docs/latest/rules/curly

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah, yeah. There are other options, but I don't currently see a way to separate early returns

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dai-shi dai-shi merged commit 94a05d6 into dai-shi:main Oct 7, 2024
24 checks passed
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