Skip to content

Commit 94ca078

Browse files
fix: add more vue-i18n rules
1 parent 003dca5 commit 94ca078

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/configs/vue.ts

+14
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,20 @@ export async function vue(
200200
"vue-i18n/no-missing-keys": i18n === false ? "off" : "error",
201201
"vue-i18n/no-raw-text": i18n === false ? "off" : "warn",
202202
"vue-i18n/no-v-html": i18n === false ? "off" : "error",
203+
"vue-i18n/no-deprecated-i18n-component": i18n === false ? "off" : "error",
204+
"vue-i18n/no-deprecated-i18n-place-attr": i18n === false ? "off" : "error",
205+
"vue-i18n/no-deprecated-i18n-places-prop": i18n === false ? "off" : "error",
206+
"vue-i18n/no-deprecated-modulo-syntax": i18n === false ? "off" : "error",
207+
"vue-i18n/no-deprecated-tc": i18n === false ? "off" : "error",
208+
"vue-i18n/no-deprecated-v-t": i18n === false ? "off" : "error",
209+
"vue-i18n/no-i18n-t-path-prop": i18n === false ? "off" : "error",
210+
"vue-i18n/valid-message-syntax": i18n === false ? "off" : "error",
211+
"vue-i18n/prefer-linked-key-with-paren": i18n === false ? "off" : "error",
212+
"vue-i18n/key-format-style": i18n === false ? "off" : ["error", "kebab-case"],
213+
"vue-i18n/no-dynamic-keys": i18n === false ? "off" : "error",
214+
"vue-i18n/no-unknown-locale": i18n === false ? "off" : "error",
215+
// "vue-i18n/no-missing-keys-in-other-locales": i18n === false ? "off" : "error",
216+
// "@intlify/vue-i18n/no-unused-keys": i18n === false ? "off" : "error",
203217

204218
"vue/array-bracket-spacing": [stylisticEnforcement, "never"],
205219
"vue/arrow-spacing": [stylisticEnforcement, { after: true, before: true }],

0 commit comments

Comments
 (0)