Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 1ffb919

Browse filesBrowse files
Add vue/no-deprecated-model-definition to vue3-essential config (#2629)
Co-authored-by: Yosuke Ota <otameshiyo23@gmail.com>
1 parent f9496d7 commit 1ffb919
Copy full SHA for 1ffb919

File tree

5 files changed

+5
-2
lines changed
Filter options

5 files changed

+5
-2
lines changed

‎docs/rules/index.md

Copy file name to clipboardExpand all lines: docs/rules/index.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ Rules in this category are enabled for all presets provided by eslint-plugin-vue
5757
| [vue/no-deprecated-functional-template] | disallow using deprecated the `functional` template (in Vue.js 3.0.0+) | | :three::warning: |
5858
| [vue/no-deprecated-html-element-is] | disallow using deprecated the `is` attribute on HTML elements (in Vue.js 3.0.0+) | | :three::warning: |
5959
| [vue/no-deprecated-inline-template] | disallow using deprecated `inline-template` attribute (in Vue.js 3.0.0+) | | :three::warning: |
60+
| [vue/no-deprecated-model-definition] | disallow deprecated `model` definition (in Vue.js 3.0.0+) | :bulb: | :three::warning: |
6061
| [vue/no-deprecated-props-default-this] | disallow deprecated `this` access in props default function (in Vue.js 3.0.0+) | | :three::warning: |
6162
| [vue/no-deprecated-router-link-tag-prop] | disallow using deprecated `tag` property on `RouterLink` (in Vue.js 3.0.0+) | | :three::warning: |
6263
| [vue/no-deprecated-scope-attribute] | disallow deprecated `scope` attribute (in Vue.js 2.5.0+) | :wrench: | :three::hammer: |
@@ -229,7 +230,6 @@ For example:
229230
| [vue/next-tick-style] | enforce Promise or callback style in `nextTick` | :wrench: | :hammer: |
230231
| [vue/no-bare-strings-in-template] | disallow the use of bare strings in `<template>` | | :hammer: |
231232
| [vue/no-boolean-default] | disallow boolean defaults | | :hammer: |
232-
| [vue/no-deprecated-model-definition] | disallow deprecated `model` definition (in Vue.js 3.0.0+) | :bulb: | :warning: |
233233
| [vue/no-duplicate-attr-inheritance] | enforce `inheritAttrs` to be set to `false` when using `v-bind="$attrs"` | | :hammer: |
234234
| [vue/no-empty-component-block] | disallow the `<template>` `<script>` `<style>` block to be empty | :wrench: | :hammer: |
235235
| [vue/no-multiple-objects-in-class] | disallow passing multiple objects in an array to class | | :hammer: |

‎docs/rules/no-deprecated-model-definition.md

Copy file name to clipboardExpand all lines: docs/rules/no-deprecated-model-definition.md
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ since: v9.16.0
1010

1111
> disallow deprecated `model` definition (in Vue.js 3.0.0+)
1212
13+
- :gear: This rule is included in all of `"plugin:vue/vue3-essential"`, `*.configs["flat/essential"]`, `"plugin:vue/vue3-strongly-recommended"`, `*.configs["flat/strongly-recommended"]`, `"plugin:vue/vue3-recommended"` and `*.configs["flat/recommended"]`.
1314
- :bulb: Some problems reported by this rule are manually fixable by editor [suggestions](https://eslint.org/docs/developer-guide/working-with-rules#providing-suggestions).
1415

1516
## :book: Rule Details

‎lib/configs/flat/vue3-essential.js

Copy file name to clipboardExpand all lines: lib/configs/flat/vue3-essential.js
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ module.exports = [
2626
'vue/no-deprecated-functional-template': 'error',
2727
'vue/no-deprecated-html-element-is': 'error',
2828
'vue/no-deprecated-inline-template': 'error',
29+
'vue/no-deprecated-model-definition': 'error',
2930
'vue/no-deprecated-props-default-this': 'error',
3031
'vue/no-deprecated-router-link-tag-prop': 'error',
3132
'vue/no-deprecated-scope-attribute': 'error',

‎lib/configs/vue3-essential.js

Copy file name to clipboardExpand all lines: lib/configs/vue3-essential.js
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ module.exports = {
2121
'vue/no-deprecated-functional-template': 'error',
2222
'vue/no-deprecated-html-element-is': 'error',
2323
'vue/no-deprecated-inline-template': 'error',
24+
'vue/no-deprecated-model-definition': 'error',
2425
'vue/no-deprecated-props-default-this': 'error',
2526
'vue/no-deprecated-router-link-tag-prop': 'error',
2627
'vue/no-deprecated-scope-attribute': 'error',

‎lib/rules/no-deprecated-model-definition.js

Copy file name to clipboardExpand all lines: lib/rules/no-deprecated-model-definition.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ module.exports = {
4545
type: 'problem',
4646
docs: {
4747
description: 'disallow deprecated `model` definition (in Vue.js 3.0.0+)',
48-
categories: undefined,
48+
categories: ['vue3-essential'],
4949
url: 'https://eslint.vuejs.org/rules/no-deprecated-model-definition.html'
5050
},
5151
fixable: null,

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.