Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@intlify/eslint-plugin-vue-i18n

intlify384.4kMIT4.0.1TypeScript support: included

ESLint plugin for Vue I18n

eslint, eslint-plugin, eslintplugin, i18n, internationalization, vue, vue-i18n, vue.js, vuejs

readme

ESLint plugin for Vue I18n logo

@intlify/eslint-plugin-vue-i18n

Test Status

NPM

ESLint plugin for Vue I18n

Supporting Intlify Project

Intlify Project is an open source project that is included Vue I18n and i18n tooling and libraries with its ongoing development made possible entirely by the support of Sponsors. If you would like to become a sponsor, please consider:

📔 Documentation

See here

📜 Changelog

Details changes for each release are documented in the CHANGELOG.md.

🚥 Versioning policy

This plugin follows Semantic Versioning. However, please note that we do not follow ESLint's Semantic Versioning Policy. In minor version releases, this plugin may change the sharable configs provided by the plugin or the default behavior of the plugin's rules in order to add features to the plugin. Because we want to add many features to the plugin soon, so that users can easily take advantage of new features in Vue I18n, Vue and Nuxt.

According to our policy, any minor update may report more linting errors than the previous release. As such, we recommend using the tilde (~) in package.json to guarantee the results of your builds.

❗ Issues

Please make sure to read the Issue Reporting Checklist before opening an issue. Issues not conforming to the guidelines may be closed immediately.

💪 Contribution

Please make sure to read the Contributing Guide before making a pull request.

©️ License

MIT

changelog

@intlify/eslint-plugin-vue-i18n

4.0.1

Patch Changes

4.0.0

Major Changes

Minor Changes

4.0.0-next.2

Major Changes

Minor Changes

4.0.0-next.1

Major Changes

4.0.0-next.0

Major Changes

3.2.0

Minor Changes

3.1.0

Minor Changes

  • #567 4ae81b0 Thanks @absidue! - fix: Bump tsconfig target to es2017 to avoid polyfilling await

3.0.0

Major Changes

Minor Changes

Patch Changes

3.0.0-next.14

Major Changes

3.0.0-next.13

Major Changes

Patch Changes

3.0.0-next.12

Minor Changes

3.0.0-next.11

Minor Changes

3.0.0-next.10

Minor Changes

3.0.0-next.9

Minor Changes

3.0.0-next.8

Minor Changes

3.0.0-next.7

Patch Changes

  • #474 ebd7353 Thanks @ota-meshi! - fix: wrong suggestion for remove all unused keys in vue-i18n/no-unused-keys rule

3.0.0-next.6

Minor Changes

3.0.0-next.5

Minor Changes

Patch Changes

3.0.0-next.4

Patch Changes

3.0.0-next.3

Patch Changes

  • #413 0fadd81 Thanks @dargmuesli! - Pin @intlify dependencies to tag beta to try to prevent renovate from downgrading.

3.0.0-next.2

Patch Changes

v3.0.0-beta.1 (2023-06-18)

:boom: Breaking Change

Committers: 4

v2.0.0 (2022-05-18)

:boom: Breaking Change

Committers: 1

v1.4.1 (2022-04-07)

:bug: Bug Fixes

  • #315 Fix crash with null value in no-raw-text rule (@ota-meshi)
  • #313 Fix false positives in no-missing-keys (@ota-meshi)
  • #312 Fix false negatives when using parsers other than vue-eslint-parser in no-missing-keys (@ota-meshi)

Committers: 1

v1.4.0 (2022-03-06)

:bug: Bug Fixes

  • #302 Fix false positives and false negatives for no-missing-keys and no-unused-keys rules (@ota-meshi)

Committers: 1

v1.3.0 (2022-02-11)

:star: Features

:pencil: Documentation

Committers: 2

v1.2.0 (2021-11-18)

:star: Features

  • #267 Add prefer-sfc-lang-attr rule (@ota-meshi)
  • #270 feat: support localePattern option for locale structured with directory (@kazupon)

Committers: 2

v1.1.0 (2021-11-16)

:star: Features

:bug: Bug Fixes

  • #256 Fix bug when using delimited-like path. (@ota-meshi)
  • #253 Fix false negatives for <i18n-t keypath> in no-missing-key rule (@ota-meshi)

Committers: 1

v1.0.1 (2021-10-29)

:bug: Bug Fixes

  • #252 Fix false positives for <i18n-t keypath> in no-unused-key rule (@ota-meshi)

Committers: 1

v1.0.0 (2021-10-29)

:boom: Breaking Change

Committers: 1

v0.15.0 (2021-09-08)

:star: Features

Committers: 1

v0.14.0 (2021-09-08)

:star: Features

  • #229 feat: support template literal for no-raw-text rule (@kazupon)

:bug: Bug Fixes

  • #230 Fix false positives for non component template in no-raw-text rule. (@ota-meshi)

Committers: 2

v0.13.0 (2021-08-22)

:star: Features

Committers: 1

v0.12.0 (2021-07-27)

:gear: Updates

  • #205 Upgrade @intlify/message-compiler and @intlify/message-resolver
  • #206 Replace ESLint CLIEngine with @eslint/eslintrc
  • #211 update dependency yaml-eslint-parser to ^0.4.0

v0.11.1 (2021-03-18)

:bug: Bug Fixes

Committers: 2

v0.11.0 (2021-02-23)

:star: Features

Committers: 1

v0.10.0 (2021-01-04)

:star: Features

:bug: Bug Fixes

  • #150 Fix false negatives for member expression in no-dynamic-keys rule (@ota-meshi)

:pencil: Documentation

  • #153 Replace documentation example with vue-eslint-editor (@ota-meshi)
  • #144 Chores: Add to documentation that eslint-plugin-jsonc and eslint-plugin-yml can be used (@ota-meshi)
  • #122 Docs: Fix typo and dead link (@mfmfuyu)

Committers: 2

v0.9.0 (2020-08-17)

:star: Features

  • #114 Add support for multiple locale directories (@ota-meshi)
  • #116 Add @intlify/vue-i18n/key-format-style rule (@ota-meshi)
  • #112 Add @intlify/vue-i18n/no-duplicate-keys-in-locale rule and change @intlify/vue-i18n/no-missing-keys rule to not report if there is one matching key in each locale (@ota-meshi)

:bug: Bug Fixes

  • #115 Fix false positives when key contains object in YAML in no-unused-keys rule. (@ota-meshi)
  • #111 Fix false negatives in <i18n> block without <template> in no-unused-keys rule. (@ota-meshi)

:pencil: Documentation

Committers: 1

v0.8.1 (2020-08-07)

:bug: Bug Fixes

Committers: 1

v0.8.0 (2020-08-07)

:star: Features

:bug: Bug Fixes

  • #92 Fix false positives of key used in <i18n> component in no-unused-keys rule. (@ota-meshi)

:zap: Improvement Features

  • #93 Change no-missing-keys and no-dynamic-keys rules to also verify keys used in the <i18n-t> component. (@ota-meshi)
  • #87 Change to apply update when resource file is updated. (@ota-meshi)

:pencil: Documentation

  • #89 docs: fix $t in example (@azu)

Committers: 2

v0.7.0 (2020-07-27)

:star: Features

  • #83 Add enableFix option to @intlify/vue-i18n/no-unused-keys rule (@ota-meshi)
  • #80 Add support for <i18n> blocks of SFC. (@ota-meshi)

Committers: 1

v0.6.0 (2020-07-19)

:bug: Bug Fixes

  • #76 Fix false positives for linked keys in no-unused-keys rule (@ota-meshi)

:zap: Improvement Features

  • #75 Change "settings['vue-i18n'].localeDir" to can specify object options. (@ota-meshi)

Committers: 1

v0.5.0 (2020-07-12)

:bug: Bug Fixes

  • #71 Fixed missing namespace in recommended config. (@ota-meshi)

Committers: 1

v0.4.1 (2020-04-19)

:pencil: Documentation

  • #52 Add missing close quote to no-missing-keys.md. (@jlebar)

Committers: 1

v0.4.0 (2020-01-22)

:boom: Breaking Change

  • #39 breaking: re-setup due to repository transfer (@kazupon)

Committers: 2

0.3.0 (2019-10-02)

:star: New Features

0.2.3 (2019-07-22)

:bug: Bug Fixes

0.2.2 (2019-07-22)

:bug: Bug Fixes

  • rule: fix cannot detect raw text of template syntax expression (84f37b8), closes #23

0.2.1 (2019-07-16)

:bug: Bug Fixes

  • rule: fix no-raw-text bug (bc6a830)

0.2.0 (2019-07-12)

:star: New Features

  • rule: support no-raw-text rule (76077b4), closes #2

:zap: Improvements

0.1.1 (2019-05-08)

:bug: Bug Fixes

0.1.0 (2019-04-10)

:star: New Features

  • rule: add no-dynamic-keys rule (7612dfd)
  • rule: add no-html-messages rule (e75546f)
  • rule: add no-missing-key rule (d35001d)
  • rule: add no-unused-key rule (09ee649)
  • rule: add no-v-html rule (f9636da)

:up: Updates

  • add docs deploy script (39b503f)
  • tweak line error messages (eb9b528)
  • config: recommended config file (2e5c3c5)
  • no-dynamic-keys: support i18n functional component (1fc1589)
  • no-missing-keys: support i18n functional component (d6f08ea)
  • add generation scripts (2b0ff7d)
  • change recommended rule level (9d310aa)
  • change rule category (17a1aed)
  • generation scripts (3dee7c4)
  • rule name (e5cb3d0)