From 6bd81ea60ed814c1fa5cf4b27f80022b352611a1 Mon Sep 17 00:00:00 2001 From: Yosuke Ota Date: Tue, 17 May 2022 21:17:52 +0900 Subject: [PATCH] Rename `vue/no-invalid-attribute-name` rule to `vue/invalid-attribute-name` and add it to presets (#1892) * Add `vue/no-invalid-attribute-name` rule to the presets * Rename no-invalid-attribute-name rule to invalid-attribute-name --- docs/rules/README.md | 2 +- ...alid-attribute-name.md => valid-attribute-name.md} | 11 ++++++----- lib/configs/essential.js | 1 + lib/configs/vue3-essential.js | 1 + lib/index.js | 2 +- ...alid-attribute-name.js => valid-attribute-name.js} | 4 ++-- ...alid-attribute-name.js => valid-attribute-name.js} | 6 +++--- 7 files changed, 15 insertions(+), 12 deletions(-) rename docs/rules/{no-invalid-attribute-name.md => valid-attribute-name.md} (61%) rename lib/rules/{no-invalid-attribute-name.js => valid-attribute-name.js} (92%) rename tests/lib/rules/{no-invalid-attribute-name.js => valid-attribute-name.js} (95%) diff --git a/docs/rules/README.md b/docs/rules/README.md index 869a0cee0..b72928647 100644 --- a/docs/rules/README.md +++ b/docs/rules/README.md @@ -105,6 +105,7 @@ Rules in this category are enabled for all presets provided by eslint-plugin-vue | [vue/return-in-computed-property](./return-in-computed-property.md) | enforce that a return statement is present in computed property | | :three::two::warning: | | [vue/return-in-emits-validator](./return-in-emits-validator.md) | enforce that a return statement is present in emits validator | | :three::two::warning: | | [vue/use-v-on-exact](./use-v-on-exact.md) | enforce usage of `exact` modifier on `v-on` | | :three::two::hammer: | +| [vue/valid-attribute-name](./valid-attribute-name.md) | require valid attribute names | | :three::two::warning: | | [vue/valid-define-emits](./valid-define-emits.md) | enforce valid `defineEmits` compiler macro | | :three::two::warning: | | [vue/valid-define-props](./valid-define-props.md) | enforce valid `defineProps` compiler macro | | :three::two::warning: | | [vue/valid-model-definition](./valid-model-definition.md) | require valid keys in model option | | :two::warning: | @@ -224,7 +225,6 @@ For example: | [vue/no-boolean-default](./no-boolean-default.md) | disallow boolean defaults | :wrench: | :hammer: | | [vue/no-duplicate-attr-inheritance](./no-duplicate-attr-inheritance.md) | enforce `inheritAttrs` to be set to `false` when using `v-bind="$attrs"` | | :hammer: | | [vue/no-empty-component-block](./no-empty-component-block.md) | disallow the `