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

Fix store naming check #140

Merged
merged 1 commit into from Jun 1, 2023
Merged

Conversation

raidenmiro
Copy link
Contributor

@raidenmiro raidenmiro commented May 13, 2023

fixes #139

Also, I noticed that if you use an entry like this

const $store$ = createStore(0) // fired with a suggestion rename it to `$$store`
Screenshot

image

I can fix it in this pr, сorrection option to the entry (if a prefix convention is used)

const $store$ = createStore(0) // suggestion: rename it to `$store`

@stackblitz
Copy link

stackblitz bot commented May 13, 2023

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@raidenmiro raidenmiro changed the title Fix bug Fix issue #139 May 13, 2023
@sergeysova sergeysova changed the title Fix issue #139 Fix store naming check May 16, 2023
@sergeysova
Copy link
Collaborator

Hi @raidenmiro Thank you for the contribution

I can fix it in this pr, сorrection option to the entry (if a prefix convention is used)

It would be cool!

- Add check length for this case

- Fix using postfix and prefix convention at once
@raidenmiro
Copy link
Contributor Author

@sergeysova done! Could you take a look when you have some free time?

@igorkamyshev
Copy link
Member

@sergeysova done! Could you take a look when you have some free time?

I'll check it this week ☺️

@sergeysova sergeysova added the fix label May 25, 2023
Copy link
Collaborator

@sergeysova sergeysova left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link
Member

@igorkamyshev igorkamyshev left a comment

Choose a reason for hiding this comment

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

Sounds quite reasonable 👍

@igorkamyshev igorkamyshev merged commit b8b38ce into effector:master Jun 1, 2023
5 checks passed
@raidenmiro raidenmiro deleted the fix/issue-139 branch June 1, 2023 06:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Store with name $ (rule enforce-store-naming-convention)
3 participants