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

no-deprecated-modulo-syntax rule #495

Closed
2 of 4 tasks
kazupon opened this issue Apr 11, 2024 · 0 comments · Fixed by #499
Closed
2 of 4 tasks

no-deprecated-modulo-syntax rule #495

kazupon opened this issue Apr 11, 2024 · 0 comments · Fixed by #499
Assignees
Labels
Priority: High Type: Feature Includes new features

Comments

@kazupon
Copy link
Member

kazupon commented Apr 11, 2024

Please describe what the rule should do:

vue-i18n v10 will drop modulo Interpolation (rails-style interpolation).
docs is here:
https://vue-i18n.intlify.dev/guide/essentials/syntax.html#rails-i18n-format

I would like to provide this rule to support migration, and support with --fix in this rule too.

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:

✗ BAD :

{
  "hello": "%{msg} world"
}

✓ GOOD:

{
  "hello": "{msg} world"
}

Additional context
Not really relevant to this eslint plugin, but I will output a warning with message-compiler if it is also using modulo.

@kazupon kazupon changed the title `no-deprecated-modulo-interpolation' rule no-deprecated-modulo-interpolation rule Apr 11, 2024
@kazupon kazupon added Type: Feature Includes new features Priority: High labels Apr 11, 2024
@kazupon kazupon self-assigned this Apr 11, 2024
@kazupon kazupon changed the title no-deprecated-modulo-interpolation rule no-deprecated-modulo-syntax rule Apr 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority: High Type: Feature Includes new features
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant