From cde5303d7e48d86d07a26cacd44d1e0572fae4bf Mon Sep 17 00:00:00 2001 From: lee Date: Mon, 6 Jan 2025 15:26:43 +0000 Subject: [PATCH] task: rename to -ex plugin --- .changeset/afraid-queens-shave.md | 4 +- .github/CONTRIBUTING.md | 6 +-- .github/workflows/release.yml | 4 +- CHANGELOG.md | 16 +++---- README.md | 4 +- ...i18n.png => eslint-plugin-vue-i18n-ex.png} | Bin ...i18n.svg => eslint-plugin-vue-i18n-ex.svg} | 0 .../components/eslint-code-block.vue | 4 +- ...i18n.png => eslint-plugin-vue-i18n-ex.png} | Bin ...i18n.svg => eslint-plugin-vue-i18n-ex.svg} | 0 docs/rules/index.md | 44 +++++++++--------- docs/rules/key-format-style.md | 28 +++++------ docs/rules/keys-order.md | 8 ++-- docs/rules/no-deprecated-i18n-component.md | 14 +++--- docs/rules/no-deprecated-i18n-place-attr.md | 16 +++---- docs/rules/no-deprecated-i18n-places-prop.md | 16 +++---- docs/rules/no-deprecated-modulo-syntax.md | 14 +++--- docs/rules/no-deprecated-tc.md | 14 +++--- docs/rules/no-deprecated-v-t.md | 14 +++--- docs/rules/no-duplicate-keys-in-locale.md | 18 +++---- docs/rules/no-dynamic-keys.md | 18 +++---- docs/rules/no-html-messages.md | 18 +++---- docs/rules/no-i18n-t-path-prop.md | 14 +++--- .../rules/no-missing-keys-in-other-locales.md | 16 +++---- docs/rules/no-missing-keys.md | 26 +++++------ docs/rules/no-raw-text.md | 26 +++++------ docs/rules/no-unknown-locale.md | 10 ++-- docs/rules/no-unused-keys.md | 20 ++++---- docs/rules/no-v-html.md | 12 ++--- docs/rules/prefer-linked-key-with-paren.md | 16 +++---- docs/rules/prefer-sfc-lang-attr.md | 10 ++-- docs/rules/sfc-locale-attr.md | 12 ++--- docs/rules/valid-message-syntax.md | 14 +++--- docs/started.md | 30 ++++++------ lib/configs/base.ts | 2 +- lib/configs/flat/base.ts | 8 ++-- lib/configs/flat/recommended.ts | 28 +++++------ lib/configs/recommended.ts | 24 +++++----- lib/types/eslint.ts | 2 +- lib/types/settings.ts | 2 +- lib/utils/get-cwd.ts | 4 +- lib/utils/index.ts | 2 +- lib/utils/message-compiler/parser-v8.ts | 4 +- lib/utils/message-compiler/parser-v9.ts | 2 +- lib/utils/message-compiler/utils.ts | 2 +- .../build-parser-using-legacy-config.ts | 4 +- package.json | 4 +- scripts/lib/changesets-util.ts | 2 +- scripts/lib/rules.ts | 2 +- scripts/new-rule.ts | 8 ++-- scripts/update-flat-base-configs.ts | 8 ++-- scripts/update-flat-recommended-configs.ts | 4 +- scripts/update-index-docs.ts | 4 +- scripts/update-legacy-base-configs.ts | 2 +- scripts/update-rule-docs.ts | 4 +- .../eslint.config.cjs | 4 +- .../invalid/typescript/.eslintrc.cjs | 10 ++-- tests/integrations/flat-config.ts | 4 +- .../integrations/flat-config/eslint.config.js | 4 +- tests/integrations/flat-config/package.json | 2 +- tests/integrations/legacy-config.ts | 4 +- .../integrations/legacy-config/.eslintrc.cjs | 4 +- tests/integrations/legacy-config/package.json | 2 +- tests/lib/rules/key-format-style.ts | 8 ++-- .../rules/no-missing-keys-in-other-locales.ts | 4 +- tests/lib/rules/no-missing-keys.ts | 6 +-- tests/lib/rules/no-unknown-locale.ts | 12 ++--- tests/lib/rules/valid-message-syntax.ts | 16 +++---- tests/lib/test-utils.ts | 8 ++-- tests/lib/utils/collect-linked-keys.ts | 2 +- tests/lib/utils/index.ts | 2 +- tests/lib/utils/message-compiler/utils.ts | 2 +- 72 files changed, 341 insertions(+), 341 deletions(-) rename assets/{eslint-plugin-vue-i18n.png => eslint-plugin-vue-i18n-ex.png} (100%) rename assets/{eslint-plugin-vue-i18n.svg => eslint-plugin-vue-i18n-ex.svg} (100%) rename docs/public/{eslint-plugin-vue-i18n.png => eslint-plugin-vue-i18n-ex.png} (100%) rename docs/public/{eslint-plugin-vue-i18n.svg => eslint-plugin-vue-i18n-ex.svg} (100%) diff --git a/.changeset/afraid-queens-shave.md b/.changeset/afraid-queens-shave.md index ce077ea3..8d607ecb 100644 --- a/.changeset/afraid-queens-shave.md +++ b/.changeset/afraid-queens-shave.md @@ -1,5 +1,5 @@ --- -"@intlify/eslint-plugin-vue-i18n-ex": major +"eslint-plugin-vue-i18n-ex": major --- -fix(deps): update dependency @intlify/core-base to v10 +fix(deps): update dependency core-base to v10 diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md index a405bb11..00c7494f 100644 --- a/.github/CONTRIBUTING.md +++ b/.github/CONTRIBUTING.md @@ -8,7 +8,7 @@ - The issue list of this repo is **exclusively** for bug reports and feature requests. Non-conforming issues will be closed immediately. - - For simple beginner questions, you can get quick answers from [`#vue-i18n` channel of Discord](https://chat.vuejs.org/) + - For simple beginner questions, you can get quick answers from [`#vue-i18n-ex` channel of Discord](https://chat.vuejs.org/) - For more complicated questions, you can use [the official forum](http://forum.vuejs.org/) or StackOverflow. Make sure to provide enough information when asking your questions - this makes it easier for others to help you! @@ -43,12 +43,12 @@ ### Work Step Example -- Fork the repository from [@intlify/eslint-plugin-vue-i18n-ex](https://github.com/intlify/eslint-plugin-vue-i18n-ex) ! +- Fork the repository from [@intlify/eslint-plugin-vue-i18n](https://github.com/intlify/eslint-plugin-vue-i18n-ex) ! - Create your topic branch from `master`: `git branch my-new-topic origin/master` - Add codes and pass tests ! - Commit your changes: `git commit -am 'Add some topic'` - Push to the branch: `git push origin my-new-topic` -- Submit a pull request to `dev` branch of `@intlify/eslint-plugin-vue-i18n-ex` repository ! +- Submit a pull request to `dev` branch of `@intlify/eslint-plugin-vue-i18n` repository ! ## Development Setup diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 96df4e15..939a913d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -38,8 +38,8 @@ jobs: version: pnpm run version:ci # This expects you to have a script called release which does a build for your packages and calls changeset publish publish: pnpm run release - commit: 'chore: release `@intlify/eslint-plugin-vue-i18n-ex`' - title: 'chore: release `@intlify/eslint-plugin-vue-i18n-ex`' + commit: 'chore: release `eslint-plugin-vue-i18n-ex`' + title: 'chore: release `eslint-plugin-vue-i18n-ex`' env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} NPM_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} diff --git a/CHANGELOG.md b/CHANGELOG.md index 156724d7..de13e8bb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,4 @@ -# @intlify/eslint-plugin-vue-i18n-ex +# eslint-plugin-vue-i18n-ex ## 4.0.0-next.1 @@ -64,7 +64,7 @@ - [#459](https://github.com/intlify/eslint-plugin-vue-i18n-ex/pull/459) [`8b3d347`](https://github.com/intlify/eslint-plugin-vue-i18n-ex/commit/8b3d347e9e10b4cce0b8527675c230654d8e28bd) Thanks [@renovate](https://github.com/apps/renovate)! - fix(deps): update dependency @eslint/eslintrc to v3 -- [#474](https://github.com/intlify/eslint-plugin-vue-i18n-ex/pull/474) [`ebd7353`](https://github.com/intlify/eslint-plugin-vue-i18n-ex/commit/ebd7353ada4d65eec0f504887db0911a80819979) Thanks [@ota-meshi](https://github.com/ota-meshi)! - fix: wrong suggestion for remove all unused keys in `vue-i18n/no-unused-keys` rule +- [#474](https://github.com/intlify/eslint-plugin-vue-i18n-ex/pull/474) [`ebd7353`](https://github.com/intlify/eslint-plugin-vue-i18n-ex/commit/ebd7353ada4d65eec0f504887db0911a80819979) Thanks [@ota-meshi](https://github.com/ota-meshi)! - fix: wrong suggestion for remove all unused keys in `vue-i18n-ex/no-unused-keys` rule - [#413](https://github.com/intlify/eslint-plugin-vue-i18n-ex/pull/413) [`0fadd81`](https://github.com/intlify/eslint-plugin-vue-i18n-ex/commit/0fadd81f0551c380514744573b4c3fdac9b9d4fa) Thanks [@dargmuesli](https://github.com/dargmuesli)! - Pin `@intlify` dependencies to tag `beta` to try to prevent renovate from downgrading. @@ -124,7 +124,7 @@ ### Patch Changes -- [#474](https://github.com/intlify/eslint-plugin-vue-i18n-ex/pull/474) [`ebd7353`](https://github.com/intlify/eslint-plugin-vue-i18n-ex/commit/ebd7353ada4d65eec0f504887db0911a80819979) Thanks [@ota-meshi](https://github.com/ota-meshi)! - fix: wrong suggestion for remove all unused keys in `vue-i18n/no-unused-keys` rule +- [#474](https://github.com/intlify/eslint-plugin-vue-i18n-ex/pull/474) [`ebd7353`](https://github.com/intlify/eslint-plugin-vue-i18n-ex/commit/ebd7353ada4d65eec0f504887db0911a80819979) Thanks [@ota-meshi](https://github.com/ota-meshi)! - fix: wrong suggestion for remove all unused keys in `vue-i18n-ex/no-unused-keys` rule ## 3.0.0-next.6 @@ -349,7 +349,7 @@ - [#148](https://github.com/intlify/eslint-plugin-vue-i18n-ex/pull/148) Add `no-missing-keys-in-other-locales` rule ([@ota-meshi](https://github.com/ota-meshi)) - [#148](https://github.com/intlify/eslint-plugin-vue-i18n-ex/pull/148) Change `no-missing-keys` rule to not report if there is one matching key ([@ota-meshi](https://github.com/ota-meshi)) - [#147](https://github.com/intlify/eslint-plugin-vue-i18n-ex/pull/147) Add `valid-message-syntax` rule ([@ota-meshi](https://github.com/ota-meshi)) -- [#145](https://github.com/intlify/eslint-plugin-vue-i18n-ex/pull/145) Supports vue-i18n v9 message format ([@ota-meshi](https://github.com/ota-meshi)) +- [#145](https://github.com/intlify/eslint-plugin-vue-i18n-ex/pull/145) Supports vue-i18n-ex v9 message format ([@ota-meshi](https://github.com/ota-meshi)) #### :bug: Bug Fixes @@ -371,8 +371,8 @@ #### :star: Features - [#114](https://github.com/intlify/eslint-plugin-vue-i18n-ex/pull/114) Add support for multiple locale directories ([@ota-meshi](https://github.com/ota-meshi)) -- [#116](https://github.com/intlify/eslint-plugin-vue-i18n-ex/pull/116) Add `@intlify/vue-i18n/key-format-style` rule ([@ota-meshi](https://github.com/ota-meshi)) -- [#112](https://github.com/intlify/eslint-plugin-vue-i18n-ex/pull/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](https://github.com/ota-meshi)) +- [#116](https://github.com/intlify/eslint-plugin-vue-i18n-ex/pull/116) Add `vue-i18n-ex/key-format-style` rule ([@ota-meshi](https://github.com/ota-meshi)) +- [#112](https://github.com/intlify/eslint-plugin-vue-i18n-ex/pull/112) Add `vue-i18n-ex/no-duplicate-keys-in-locale` rule and change `vue-i18n-ex/no-missing-keys` rule to not report if there is one matching key in each locale ([@ota-meshi](https://github.com/ota-meshi)) #### :bug: Bug Fixes @@ -425,7 +425,7 @@ #### :star: Features -- [#83](https://github.com/intlify/eslint-plugin-vue-i18n-ex/pull/83) Add `enableFix` option to `@intlify/vue-i18n/no-unused-keys` rule ([@ota-meshi](https://github.com/ota-meshi)) +- [#83](https://github.com/intlify/eslint-plugin-vue-i18n-ex/pull/83) Add `enableFix` option to `vue-i18n-ex/no-unused-keys` rule ([@ota-meshi](https://github.com/ota-meshi)) - [#80](https://github.com/intlify/eslint-plugin-vue-i18n-ex/pull/80) Add support for `` blocks of SFC. ([@ota-meshi](https://github.com/ota-meshi)) #### Committers: 1 @@ -440,7 +440,7 @@ #### :zap: Improvement Features -- [#75](https://github.com/intlify/eslint-plugin-vue-i18n-ex/pull/75) Change "settings['vue-i18n'].localeDir" to can specify object options. ([@ota-meshi](https://github.com/ota-meshi)) +- [#75](https://github.com/intlify/eslint-plugin-vue-i18n-ex/pull/75) Change "settings['vue-i18n-ex'].localeDir" to can specify object options. ([@ota-meshi](https://github.com/ota-meshi)) #### Committers: 1 diff --git a/README.md b/README.md index db5cd53c..f46d33a4 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,11 @@

ESLint plugin for Vue I18n logo

-

@intlify/eslint-plugin-vue-i18n-ex

+

eslint-plugin-vue-i18n-ex

Test Status

- NPM + NPM

ESLint plugin for Vue I18n

diff --git a/assets/eslint-plugin-vue-i18n.png b/assets/eslint-plugin-vue-i18n-ex.png similarity index 100% rename from assets/eslint-plugin-vue-i18n.png rename to assets/eslint-plugin-vue-i18n-ex.png diff --git a/assets/eslint-plugin-vue-i18n.svg b/assets/eslint-plugin-vue-i18n-ex.svg similarity index 100% rename from assets/eslint-plugin-vue-i18n.svg rename to assets/eslint-plugin-vue-i18n-ex.svg diff --git a/docs/.vitepress/components/eslint-code-block.vue b/docs/.vitepress/components/eslint-code-block.vue index d4bbda4d..d634f10a 100644 --- a/docs/.vitepress/components/eslint-code-block.vue +++ b/docs/.vitepress/components/eslint-code-block.vue @@ -132,7 +132,7 @@ export default { } }, settings: { - 'vue-i18n': { + 'vue-i18n-ex': { localeDir: (this.$resourceGroup ? this.$resourceGroup .getFiles() @@ -185,7 +185,7 @@ export default { const linter = (this.linter = new Linter({ cwd: '/path' })) for (const ruleId of Object.keys(rules)) { - linter.defineRule(`@intlify/vue-i18n/${ruleId}`, rules[ruleId]) + linter.defineRule(`vue-i18n-ex/${ruleId}`, rules[ruleId]) } linter.defineParser('vue-eslint-parser', vueESLintParser) linter.defineParser('jsonc-eslint-parser', jsoncESLintParser) diff --git a/docs/public/eslint-plugin-vue-i18n.png b/docs/public/eslint-plugin-vue-i18n-ex.png similarity index 100% rename from docs/public/eslint-plugin-vue-i18n.png rename to docs/public/eslint-plugin-vue-i18n-ex.png diff --git a/docs/public/eslint-plugin-vue-i18n.svg b/docs/public/eslint-plugin-vue-i18n-ex.svg similarity index 100% rename from docs/public/eslint-plugin-vue-i18n.svg rename to docs/public/eslint-plugin-vue-i18n-ex.svg diff --git a/docs/rules/index.md b/docs/rules/index.md index 8ae409ca..dbbcd941 100644 --- a/docs/rules/index.md +++ b/docs/rules/index.md @@ -1,6 +1,6 @@ # Available Rules -- :star: mark: the rule which is enabled by `plugin:@intlify/vue-i18n/recommended` or `*.configs["flat/recommended"]` preset. +- :star: mark: the rule which is enabled by `plugin:vue-i18n-ex/recommended` or `*.configs["flat/recommended"]` preset. - :black_nib: mark: the rule which is fixable by `eslint --fix` command. ## Recommended @@ -8,36 +8,36 @@ | Rule ID | Description | | |:--------|:------------|:---| -| [@intlify/vue-i18n/no-deprecated-i18n-component](./no-deprecated-i18n-component.html) | disallow using deprecated `` components (in Vue I18n 9.0.0+) | :star::black_nib: | -| [@intlify/vue-i18n/no-deprecated-i18n-place-attr](./no-deprecated-i18n-place-attr.html) | disallow using deprecated `place` attribute (Removed in Vue I18n 9.0.0+) | :star: | -| [@intlify/vue-i18n/no-deprecated-i18n-places-prop](./no-deprecated-i18n-places-prop.html) | disallow using deprecated `places` prop (Removed in Vue I18n 9.0.0+) | :star: | -| [@intlify/vue-i18n/no-deprecated-modulo-syntax](./no-deprecated-modulo-syntax.html) | enforce modulo interpolation to be named interpolation | :star::black_nib: | -| [@intlify/vue-i18n/no-deprecated-tc](./no-deprecated-tc.html) | disallow using deprecated `tc` or `$tc` (Deprecated in Vue I18n 10.0.0, removed fully in Vue I18n 11.0.0) | :star: | -| [@intlify/vue-i18n/no-deprecated-v-t](./no-deprecated-v-t.html) | disallow using deprecated `v-t` custom directive (Deprecated in Vue I18n 11.0.0, removed fully in Vue I18n 12.0.0) | :star: | -| [@intlify/vue-i18n/no-html-messages](./no-html-messages.html) | disallow use HTML localization messages | :star: | -| [@intlify/vue-i18n/no-i18n-t-path-prop](./no-i18n-t-path-prop.html) | disallow using `path` prop with `` | :star::black_nib: | -| [@intlify/vue-i18n/no-missing-keys](./no-missing-keys.html) | disallow missing locale message key at localization methods | :star: | -| [@intlify/vue-i18n/no-raw-text](./no-raw-text.html) | disallow to string literal in template or JSX | :star: | -| [@intlify/vue-i18n/no-v-html](./no-v-html.html) | disallow use of localization methods on v-html to prevent XSS attack | :star: | -| [@intlify/vue-i18n/valid-message-syntax](./valid-message-syntax.html) | disallow invalid message syntax | :star: | +| [vue-i18n-ex/no-deprecated-i18n-component](./no-deprecated-i18n-component.html) | disallow using deprecated `` components (in Vue I18n 9.0.0+) | :star::black_nib: | +| [vue-i18n-ex/no-deprecated-i18n-place-attr](./no-deprecated-i18n-place-attr.html) | disallow using deprecated `place` attribute (Removed in Vue I18n 9.0.0+) | :star: | +| [vue-i18n-ex/no-deprecated-i18n-places-prop](./no-deprecated-i18n-places-prop.html) | disallow using deprecated `places` prop (Removed in Vue I18n 9.0.0+) | :star: | +| [vue-i18n-ex/no-deprecated-modulo-syntax](./no-deprecated-modulo-syntax.html) | enforce modulo interpolation to be named interpolation | :star::black_nib: | +| [vue-i18n-ex/no-deprecated-tc](./no-deprecated-tc.html) | disallow using deprecated `tc` or `$tc` (Deprecated in Vue I18n 10.0.0, removed fully in Vue I18n 11.0.0) | :star: | +| [vue-i18n-ex/no-deprecated-v-t](./no-deprecated-v-t.html) | disallow using deprecated `v-t` custom directive (Deprecated in Vue I18n 11.0.0, removed fully in Vue I18n 12.0.0) | :star: | +| [vue-i18n-ex/no-html-messages](./no-html-messages.html) | disallow use HTML localization messages | :star: | +| [vue-i18n-ex/no-i18n-t-path-prop](./no-i18n-t-path-prop.html) | disallow using `path` prop with `` | :star::black_nib: | +| [vue-i18n-ex/no-missing-keys](./no-missing-keys.html) | disallow missing locale message key at localization methods | :star: | +| [vue-i18n-ex/no-raw-text](./no-raw-text.html) | disallow to string literal in template or JSX | :star: | +| [vue-i18n-ex/no-v-html](./no-v-html.html) | disallow use of localization methods on v-html to prevent XSS attack | :star: | +| [vue-i18n-ex/valid-message-syntax](./valid-message-syntax.html) | disallow invalid message syntax | :star: | ## Best Practices | Rule ID | Description | | |:--------|:------------|:---| -| [@intlify/vue-i18n/key-format-style](./key-format-style.html) | enforce specific casing for localization keys | | -| [@intlify/vue-i18n/no-duplicate-keys-in-locale](./no-duplicate-keys-in-locale.html) | disallow duplicate localization keys within the same locale | | -| [@intlify/vue-i18n/no-dynamic-keys](./no-dynamic-keys.html) | disallow localization dynamic keys at localization methods | | -| [@intlify/vue-i18n/no-missing-keys-in-other-locales](./no-missing-keys-in-other-locales.html) | disallow missing locale message keys in other locales | | -| [@intlify/vue-i18n/no-unknown-locale](./no-unknown-locale.html) | disallow unknown locale name | | -| [@intlify/vue-i18n/no-unused-keys](./no-unused-keys.html) | disallow unused localization keys | :black_nib: | -| [@intlify/vue-i18n/prefer-sfc-lang-attr](./prefer-sfc-lang-attr.html) | require lang attribute on `` block | :black_nib: | +| [vue-i18n-ex/key-format-style](./key-format-style.html) | enforce specific casing for localization keys | | +| [vue-i18n-ex/no-duplicate-keys-in-locale](./no-duplicate-keys-in-locale.html) | disallow duplicate localization keys within the same locale | | +| [vue-i18n-ex/no-dynamic-keys](./no-dynamic-keys.html) | disallow localization dynamic keys at localization methods | | +| [vue-i18n-ex/no-missing-keys-in-other-locales](./no-missing-keys-in-other-locales.html) | disallow missing locale message keys in other locales | | +| [vue-i18n-ex/no-unknown-locale](./no-unknown-locale.html) | disallow unknown locale name | | +| [vue-i18n-ex/no-unused-keys](./no-unused-keys.html) | disallow unused localization keys | :black_nib: | +| [vue-i18n-ex/prefer-sfc-lang-attr](./prefer-sfc-lang-attr.html) | require lang attribute on `` block | :black_nib: | ## Stylistic Issues | Rule ID | Description | | |:--------|:------------|:---| -| [@intlify/vue-i18n/prefer-linked-key-with-paren](./prefer-linked-key-with-paren.html) | enforce linked key to be enclosed in parentheses | :black_nib: | -| [@intlify/vue-i18n/sfc-locale-attr](./sfc-locale-attr.html) | require or disallow the locale attribute on `` block | | +| [vue-i18n-ex/prefer-linked-key-with-paren](./prefer-linked-key-with-paren.html) | enforce linked key to be enclosed in parentheses | :black_nib: | +| [vue-i18n-ex/sfc-locale-attr](./sfc-locale-attr.html) | require or disallow the locale attribute on `` block | | diff --git a/docs/rules/key-format-style.md b/docs/rules/key-format-style.md index 2ed0236b..b8309471 100644 --- a/docs/rules/key-format-style.md +++ b/docs/rules/key-format-style.md @@ -1,10 +1,10 @@ --- -title: '@intlify/vue-i18n/key-format-style' +title: 'vue-i18n-ex/key-format-style' description: enforce specific casing for localization keys since: v0.9.0 --- -# @intlify/vue-i18n/key-format-style +# vue-i18n-ex/key-format-style > enforce specific casing for localization keys @@ -28,7 +28,7 @@ Also, the following localization key definitions are reported as errors, because ```yaml -# eslint @intlify/vue-i18n/key-format-style: 'error' +# eslint vue-i18n-ex/key-format-style: 'error' # ✗ BAD: Use array elements. - message1 @@ -46,7 +46,7 @@ Also, the following localization key definitions are reported as errors, because ```json { - "@intlify/vue-i18n/key-format-style": [ + "vue-i18n-ex/key-format-style": [ "error", "camelCase" | "kebab-case" | "lowercase" | "snake_case", { @@ -66,7 +66,7 @@ Also, the following localization key definitions are reported as errors, because ```yaml -# eslint @intlify/vue-i18n/key-format-style: ['error', 'camelCase'] +# eslint vue-i18n-ex/key-format-style: ['error', 'camelCase'] # ✓ GOOD appTitle: I18N Management System @@ -79,7 +79,7 @@ appTitle: I18N Management System ```yaml -# eslint @intlify/vue-i18n/key-format-style: ['error', 'camelCase'] +# eslint vue-i18n-ex/key-format-style: ['error', 'camelCase'] # ✗ BAD app-title: I18N Management System @@ -93,7 +93,7 @@ app_title: I18N Management System ```yaml -# eslint @intlify/vue-i18n/key-format-style: ['error', 'kebab-case'] +# eslint vue-i18n-ex/key-format-style: ['error', 'kebab-case'] # ✓ GOOD app-title: I18N Management System @@ -106,7 +106,7 @@ app-title: I18N Management System ```yaml -# eslint @intlify/vue-i18n/key-format-style: ['error', 'kebab-case'] +# eslint vue-i18n-ex/key-format-style: ['error', 'kebab-case'] # ✗ BAD appTitle: I18N Management System @@ -120,7 +120,7 @@ app_title: I18N Management System ```yaml -# eslint @intlify/vue-i18n/key-format-style: ['error', 'lowercase'] +# eslint vue-i18n-ex/key-format-style: ['error', 'lowercase'] # ✓ GOOD apptitle: I18N Management System @@ -133,7 +133,7 @@ apptitle: I18N Management System ```yaml -# eslint @intlify/vue-i18n/key-format-style: ['error', 'lowercase'] +# eslint vue-i18n-ex/key-format-style: ['error', 'lowercase'] # ✗ BAD appTitle: I18N Management System @@ -148,7 +148,7 @@ APP_TITLE: I18N Management System ```yaml -# eslint @intlify/vue-i18n/key-format-style: ['error', 'snake_case'] +# eslint vue-i18n-ex/key-format-style: ['error', 'snake_case'] # ✓ GOOD app_title: I18N Management System @@ -161,7 +161,7 @@ app_title: I18N Management System ```yaml -# eslint @intlify/vue-i18n/key-format-style: ['error', 'snake_case'] +# eslint vue-i18n-ex/key-format-style: ['error', 'snake_case'] # ✗ BAD appTitle: I18N Management System @@ -175,7 +175,7 @@ app-title: I18N Management System ```yaml -# eslint @intlify/vue-i18n/key-format-style: ['error', 'camelCase', {allowArray: true}] +# eslint vue-i18n-ex/key-format-style: ['error', 'camelCase', {allowArray: true}] # ✓ GOOD - message1 @@ -187,7 +187,7 @@ app-title: I18N Management System ## :rocket: Version -This rule was introduced in `@intlify/eslint-plugin-vue-i18n-ex` v0.9.0 +This rule was introduced in `eslint-plugin-vue-i18n-ex` v0.9.0 ## :mag: Implementation diff --git a/docs/rules/keys-order.md b/docs/rules/keys-order.md index 21121511..370e36a6 100644 --- a/docs/rules/keys-order.md +++ b/docs/rules/keys-order.md @@ -1,4 +1,4 @@ -# @intlify/vue-i18n/keys-order +# vue-i18n-ex/keys-order > enforce order of localization keys @@ -15,7 +15,7 @@ This rule is useful to provide browsability of localization keys. ```json -/* eslint @intlify/vue-i18n/keys-order: 'error' */ +/* eslint vue-i18n-ex/keys-order: 'error' */ // ✗ BAD { @@ -32,7 +32,7 @@ This rule is useful to provide browsability of localization keys. ```json -/* eslint @intlify/vue-i18n/keys-order: 'error' */ +/* eslint vue-i18n-ex/keys-order: 'error' */ // ✓ GOOD { @@ -48,7 +48,7 @@ This rule is useful to provide browsability of localization keys. ```json { - "@intlify/vue-i18n/keys-order": [ + "vue-i18n-ex/keys-order": [ "error", { "order": "desc" diff --git a/docs/rules/no-deprecated-i18n-component.md b/docs/rules/no-deprecated-i18n-component.md index 08164092..ba01862d 100644 --- a/docs/rules/no-deprecated-i18n-component.md +++ b/docs/rules/no-deprecated-i18n-component.md @@ -1,14 +1,14 @@ --- -title: '@intlify/vue-i18n/no-deprecated-i18n-component' +title: 'vue-i18n-ex/no-deprecated-i18n-component' description: disallow using deprecated `` components (in Vue I18n 9.0.0+) since: v0.11.0 --- -# @intlify/vue-i18n/no-deprecated-i18n-component +# vue-i18n-ex/no-deprecated-i18n-component > disallow using deprecated `` components (in Vue I18n 9.0.0+) -- :star: The `"extends": "plugin:@intlify/vue-i18n/recommended"` or `*.configs["flat/recommended"]` property in a configuration file enables this rule. +- :star: The `"extends": "plugin:vue-i18n-ex/recommended"` or `*.configs["flat/recommended"]` property in a configuration file enables this rule. - :black_nib:️ The `--fix` option on the [command line](http://eslint.org/docs/user-guide/command-line-interface#fix) can automatically fix some of the problems reported by this rule. If you are migrating from Vue I18n v8 to v9, the `` component should be replaced with the `` component. @@ -25,7 +25,7 @@ This rule reports use of deprecated `` components (in Vue I18n 9.0.0+). ```vue