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

List imports explicitly in readme examples #59

Merged
merged 1 commit into from
Sep 3, 2023

Conversation

chrisalley
Copy link
Collaborator

No description provided.

@chrisalley chrisalley marked this pull request as ready for review August 31, 2023 07:33
readme.md Outdated
import { When } from 'pundit'
import PostPolicy from 'src/policies/post.policy.js'

...
Copy link
Contributor

Choose a reason for hiding this comment

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

what about

// ...

instead?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Good idea - makes it clearer that it is not code. Updated.

Copy link
Collaborator Author

@chrisalley chrisalley Sep 3, 2023

Choose a reason for hiding this comment

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

I've also added return () around the JSX elements so it's a bit clearer when the JavaScript ends and the JSX elements start.

@chrisalley chrisalley force-pushed the list-imports-explicitly-in-readme branch from 77906cc to c81f4e1 Compare September 3, 2023 06:39
@chrisalley chrisalley force-pushed the list-imports-explicitly-in-readme branch from c81f4e1 to 012eb2f Compare September 3, 2023 06:44
@chrisalley chrisalley merged commit ac28590 into main Sep 3, 2023
3 checks passed
@chrisalley chrisalley deleted the list-imports-explicitly-in-readme branch September 3, 2023 20:53
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