-
-
Notifications
You must be signed in to change notification settings - Fork 42
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 no work and how to keys order #295
Comments
It looks to me that you are not linting the JSON file. https://eslint-plugin-vue-i18n.intlify.dev/started.html#usage Also, in order for the VS Code extension to check JSON, you need to add the following settings. // .vscode/settings.json
{
"eslint.validate": [
"javascript",
"javascriptreact",
"vue",
"json",
"jsonc"
]
} Also, you probably need to add a parser configuration. Add an overrides configuration and do the following: "overrides": [
{
"files": ["*.json", "*.json5"],
"parser": "jsonc-eslint-parser",
},
], https://github.com/ota-meshi/jsonc-eslint-parser#book-usage |
eslint-plugin-vue-i18n is awesome I like it very much. |
I forgot to write about it. |
You may be able to use eslint-plugin-jsonc. |
ok, thank you for your patience. |
I will close this issue. Follow #3 to remaining issue. |
Tell us about your environment
Please show your full configuration:
What did you do?
This is my translation JSON file.
Directory in src/locales/lang/en.json
What did you expect to happen?
My rules has
'@intlify/vue-i18n/key-format-style': ['error', 'snake_case']
npm run lint
is executed. Is there something wrong with the use?What actually happened?
When
npm run lint
is executed, only had @intlify/vue-i18n/no-raw-text error.The text was updated successfully, but these errors were encountered: