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

Forbid $t and friends in data #304

Open
1 of 4 tasks
allanlewis opened this issue Mar 7, 2022 · 0 comments
Open
1 of 4 tasks

Forbid $t and friends in data #304

allanlewis opened this issue Mar 7, 2022 · 0 comments
Labels
help wanted Extra attention is needed Status: PR Welcome Welcome to Pull Request Type: Feature Includes new features

Comments

@allanlewis
Copy link

Please describe what the rule should do:

Use of $t and friends in components' data sections should be forbidden because it results in non-dynamic translations.

What category should the rule belong to?

  • Enforces code style (layout)
  • Warns about a potential error (problem)
  • Suggests an alternate way of doing something (suggestion)
  • Other (please specify:)

Provide 2-3 code examples that this rule should warn about:

data() {
  return {
    foo: this.$t('foo'),
  }
},

Additional context

@ota-meshi ota-meshi added help wanted Extra attention is needed Status: PR Welcome Welcome to Pull Request Type: Feature Includes new features labels Mar 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed Status: PR Welcome Welcome to Pull Request Type: Feature Includes new features
Projects
None yet
Development

No branches or pull requests

2 participants