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

[Vue] Provide a rule for consistent usage of props. prefix in template block #27

Open
nozomuikuta opened this issue Sep 12, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@nozomuikuta
Copy link
Contributor

nozomuikuta commented Sep 12, 2023

Ref: https://github.com/globalbrain/deus/pull/170#discussion_r1322334736

Currently, it depends on products and developers whether using props. prefix in Vue template block and make the codebase inconsistent.

I'm not sure there is such a rule officially supported, but it's nice if it's possible and can be fixed automatically, so that we don't have to make the code consistent manually.

Note that I created this issue but do not refer to whether we should add it or remove it.
So far, I used to always add the prefix so that I can reduce amount of manual conditional coding (note props.* prefix is needed in script block while it can be omitted in template block).

@nozomuikuta nozomuikuta changed the title [Vue] Make consistent usage of props. prefix in template block [Vue] Provide a rule for consistent usage of props. prefix in template block Sep 12, 2023
@kiaking kiaking added the enhancement New feature or request label Sep 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants