From bf771696172e07c05e2eb60533b6e4ce5922013a Mon Sep 17 00:00:00 2001 From: Yosuke Ota Date: Wed, 20 Oct 2021 14:14:26 +0900 Subject: [PATCH] Change presets configs. (#1603) * Change config * valid-next-tick to essential * update * Update --- docs/rules/README.md | 26 +++++++++++-------- docs/rules/multi-word-component-names.md | 2 ++ docs/rules/no-computed-properties-in-data.md | 2 ++ .../no-deprecated-router-link-tag-prop.md | 2 ++ docs/rules/no-deprecated-v-is.md | 1 + docs/rules/no-export-in-script-setup.md | 2 ++ docs/rules/no-useless-template-attributes.md | 2 ++ docs/rules/v-on-event-hyphenation.md | 1 + docs/rules/valid-define-emits.md | 2 ++ docs/rules/valid-define-props.md | 2 ++ docs/rules/valid-next-tick.md | 1 + docs/rules/valid-v-memo.md | 2 ++ lib/configs/essential.js | 4 +++ lib/configs/vue3-essential.js | 10 +++++++ lib/configs/vue3-strongly-recommended.js | 1 + lib/rules/multi-word-component-names.js | 2 +- lib/rules/no-computed-properties-in-data.js | 2 +- .../no-deprecated-router-link-tag-prop.js | 2 +- lib/rules/no-deprecated-v-is.js | 4 +-- lib/rules/no-export-in-script-setup.js | 4 +-- lib/rules/no-useless-template-attributes.js | 4 +-- lib/rules/v-on-event-hyphenation.js | 4 +-- lib/rules/valid-define-emits.js | 4 +-- lib/rules/valid-define-props.js | 4 +-- lib/rules/valid-next-tick.js | 3 +-- lib/rules/valid-v-is.js | 2 -- lib/rules/valid-v-memo.js | 4 +-- 27 files changed, 60 insertions(+), 39 deletions(-) diff --git a/docs/rules/README.md b/docs/rules/README.md index 40a6a6d28..04d9046c1 100644 --- a/docs/rules/README.md +++ b/docs/rules/README.md @@ -39,8 +39,10 @@ Enforce all the rules in this category, as well as all higher priority rules, wi | Rule ID | Description | | |:--------|:------------|:---| +| [vue/multi-word-component-names](./multi-word-component-names.md) | require component names to be always multi-word | | | [vue/no-arrow-functions-in-watch](./no-arrow-functions-in-watch.md) | disallow using arrow functions to define watcher | | | [vue/no-async-in-computed-properties](./no-async-in-computed-properties.md) | disallow asynchronous actions in computed properties | | +| [vue/no-computed-properties-in-data](./no-computed-properties-in-data.md) | disallow accessing computed properties in `data`. | | | [vue/no-deprecated-data-object-declaration](./no-deprecated-data-object-declaration.md) | disallow using deprecated object declaration on data (in Vue.js 3.0.0+) | :wrench: | | [vue/no-deprecated-destroyed-lifecycle](./no-deprecated-destroyed-lifecycle.md) | disallow using deprecated `destroyed` and `beforeDestroy` lifecycle hooks (in Vue.js 3.0.0+) | :wrench: | | [vue/no-deprecated-dollar-listeners-api](./no-deprecated-dollar-listeners-api.md) | disallow using deprecated `$listeners` (in Vue.js 3.0.0+) | | @@ -51,16 +53,19 @@ Enforce all the rules in this category, as well as all higher priority rules, wi | [vue/no-deprecated-html-element-is](./no-deprecated-html-element-is.md) | disallow using deprecated the `is` attribute on HTML elements (in Vue.js 3.0.0+) | | | [vue/no-deprecated-inline-template](./no-deprecated-inline-template.md) | disallow using deprecated `inline-template` attribute (in Vue.js 3.0.0+) | | | [vue/no-deprecated-props-default-this](./no-deprecated-props-default-this.md) | disallow deprecated `this` access in props default function (in Vue.js 3.0.0+) | | +| [vue/no-deprecated-router-link-tag-prop](./no-deprecated-router-link-tag-prop.md) | disallow using deprecated `tag` property on `RouterLink` (in Vue.js 3.0.0+) | | | [vue/no-deprecated-scope-attribute](./no-deprecated-scope-attribute.md) | disallow deprecated `scope` attribute (in Vue.js 2.5.0+) | :wrench: | | [vue/no-deprecated-slot-attribute](./no-deprecated-slot-attribute.md) | disallow deprecated `slot` attribute (in Vue.js 2.6.0+) | :wrench: | | [vue/no-deprecated-slot-scope-attribute](./no-deprecated-slot-scope-attribute.md) | disallow deprecated `slot-scope` attribute (in Vue.js 2.6.0+) | :wrench: | | [vue/no-deprecated-v-bind-sync](./no-deprecated-v-bind-sync.md) | disallow use of deprecated `.sync` modifier on `v-bind` directive (in Vue.js 3.0.0+) | :wrench: | +| [vue/no-deprecated-v-is](./no-deprecated-v-is.md) | disallow deprecated `v-is` directive (in Vue.js 3.1.0+) | :wrench: | | [vue/no-deprecated-v-on-native-modifier](./no-deprecated-v-on-native-modifier.md) | disallow using deprecated `.native` modifiers (in Vue.js 3.0.0+) | | | [vue/no-deprecated-v-on-number-modifiers](./no-deprecated-v-on-number-modifiers.md) | disallow using deprecated number (keycode) modifiers (in Vue.js 3.0.0+) | :wrench: | | [vue/no-deprecated-vue-config-keycodes](./no-deprecated-vue-config-keycodes.md) | disallow using deprecated `Vue.config.keyCodes` (in Vue.js 3.0.0+) | | | [vue/no-dupe-keys](./no-dupe-keys.md) | disallow duplication of field names | | | [vue/no-dupe-v-else-if](./no-dupe-v-else-if.md) | disallow duplicate conditions in `v-if` / `v-else-if` chains | | | [vue/no-duplicate-attributes](./no-duplicate-attributes.md) | disallow duplication of attributes | | +| [vue/no-export-in-script-setup](./no-export-in-script-setup.md) | disallow `export` in `