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

key-format-style more options #340

Open
tomas-vahala-unbiased-co-uk opened this issue Oct 26, 2022 · 0 comments
Open

key-format-style more options #340

tomas-vahala-unbiased-co-uk opened this issue Oct 26, 2022 · 0 comments

Comments

@tomas-vahala-unbiased-co-uk
Copy link

tomas-vahala-unbiased-co-uk commented Oct 26, 2022

What rule do you want to change?
key-format-style
https://eslint-plugin-vue-i18n.intlify.dev/rules/key-format-style.html

Does this change cause the rule to produce more or fewer warnings?
fewer if you choose more then one key format

How will the change be implemented? (New option, new default behavior, etc.)?

"@intlify/vue-i18n/key-format-style": [
      "error",
      "camelCase" | "snake_case",
      {
        "allowArray": false,
        "splitByDots": false,
      }
    ],

or

"@intlify/vue-i18n/key-format-style": [
      "error",
      ["camelCase", "snake_case"],
      {
        "allowArray": false,
        "splitByDots": false,
      }
    ],

Please provide some example code that this change will affect:

"keyName": "value",
"key_name": "value

What does the rule currently do for this code?
It will not throw an error if you choose more than one type of key-format-style

What will the rule do after it's changed?
if you choose more options like camelCase and snake_case, it will not throw an error.

Additional context

since we are storing some of our variables, it would be great to quickly distinguish them just by the key

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

No branches or pull requests

1 participant