Available Rules
- ⭐ mark: the rule which is enabled by
plugin:@intlify/vue-i18n/recommended
or*.configs["flat/recommended"]
preset. - ✒️ mark: the rule which is fixable by
eslint --fix
command.
Recommended
Rule ID | Description | |
---|---|---|
@intlify/vue-i18n/ | disallow using deprecated <i18n> components (in Vue I18n 9.0.0+) | ⭐✒️ |
@intlify/vue-i18n/ | disallow using deprecated place attribute (Removed in Vue I18n 9.0.0+) | ⭐ |
@intlify/vue-i18n/ | disallow using deprecated places prop (Removed in Vue I18n 9.0.0+) | ⭐ |
@intlify/vue-i18n/ | enforce modulo interpolation to be named interpolation | ⭐✒️ |
@intlify/vue-i18n/ | disallow using deprecated tc or $tc (Deprecated in Vue I18n 10.0.0, removed fully in Vue I18n 11.0.0) | ⭐ |
@intlify/vue-i18n/ | disallow use HTML localization messages | ⭐ |
@intlify/vue-i18n/ | disallow using path prop with <i18n-t> | ⭐✒️ |
@intlify/vue-i18n/ | disallow missing locale message key at localization methods | ⭐ |
@intlify/vue-i18n/ | disallow to string literal in template or JSX | ⭐ |
@intlify/vue-i18n/ | disallow use of localization methods on v-html to prevent XSS attack | ⭐ |
@intlify/vue-i18n/ | disallow invalid message syntax | ⭐ |
Best Practices
Rule ID | Description | |
---|---|---|
@intlify/vue-i18n/ | enforce specific casing for localization keys | |
@intlify/vue-i18n/ | disallow duplicate localization keys within the same locale | |
@intlify/vue-i18n/ | disallow localization dynamic keys at localization methods | |
@intlify/vue-i18n/ | disallow missing locale message keys in other locales | |
@intlify/vue-i18n/ | disallow unknown locale name | |
@intlify/vue-i18n/ | disallow unused localization keys | ✒️ |
@intlify/vue-i18n/ | require lang attribute on <i18n> block | ✒️ |
Stylistic Issues
Rule ID | Description | |
---|---|---|
@intlify/vue-i18n/ | enforce linked key to be enclosed in parentheses | ✒️ |
@intlify/vue-i18n/ | require or disallow the locale attribute on <i18n> block |