Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add PreviewNaming opt-in rule #344

Merged
merged 1 commit into from
Oct 3, 2024
Merged

Add PreviewNaming opt-in rule #344

merged 1 commit into from
Oct 3, 2024

Conversation

mrmans0n
Copy link
Owner

@mrmans0n mrmans0n commented Oct 3, 2024

Adds an opt-in rule to be able to enforce a naming rule on preview composable functions. It allows users to be able to add Preview as suffix, prefix or ensure that's anywhere in the text. It also contains an autofix that adds it for you. As preview composables shouldn't be called by anybody else in your codebase, it should be fine (and if they are called, make better choices lol)

Closes #229

@mrmans0n mrmans0n merged commit 703bf71 into main Oct 3, 2024
2 checks passed
@mrmans0n mrmans0n deleted the nacho/preview-naming branch October 3, 2024 11:23
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Idea] add ComposePreviewNaming
1 participant