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

Add lint rule that enforces curly brace opinions #130

Merged
merged 3 commits into from
Sep 22, 2023

Conversation

felixhabib
Copy link
Contributor

Most IDEs (including VS Code and JetBrains IDEs) will insert curly braces around autocompleted prop strings unnecessarily.

This rule removes braces around string props, and string children but enforces them on prop expressions (see changeset for examples).

@felixhabib felixhabib requested a review from a team as a code owner September 21, 2023 05:46
@changeset-bot
Copy link

changeset-bot bot commented Sep 21, 2023

🦋 Changeset detected

Latest commit: 2960051

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
eslint-config-seek Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

index.js Outdated Show resolved Hide resolved
@felixhabib felixhabib changed the title Add lint rule that enforces when curly brace opinions Add lint rule that enforces curly brace opinions Sep 22, 2023
@felixhabib felixhabib merged commit 762f864 into master Sep 22, 2023
2 checks passed
@felixhabib felixhabib deleted the add-curly-braces-rule branch September 22, 2023 00:44
@seek-oss-ci seek-oss-ci mentioned this pull request Sep 22, 2023
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.

3 participants