Skip to content

Commit 795000f

Browse files
committed
Change config
1 parent f6a1475 commit 795000f

17 files changed

+28
-36
lines changed

docs/rules/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,14 @@ Enforce all the rules in this category, as well as all higher priority rules, wi
5555
| [vue/no-deprecated-slot-attribute](./no-deprecated-slot-attribute.md) | disallow deprecated `slot` attribute (in Vue.js 2.6.0+) | :wrench: |
5656
| [vue/no-deprecated-slot-scope-attribute](./no-deprecated-slot-scope-attribute.md) | disallow deprecated `slot-scope` attribute (in Vue.js 2.6.0+) | :wrench: |
5757
| [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: |
58+
| [vue/no-deprecated-v-is](./no-deprecated-v-is.md) | disallow deprecated `v-is` directive (in Vue.js 3.1.0+) | :wrench: |
5859
| [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+) | |
5960
| [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: |
6061
| [vue/no-deprecated-vue-config-keycodes](./no-deprecated-vue-config-keycodes.md) | disallow using deprecated `Vue.config.keyCodes` (in Vue.js 3.0.0+) | |
6162
| [vue/no-dupe-keys](./no-dupe-keys.md) | disallow duplication of field names | |
6263
| [vue/no-dupe-v-else-if](./no-dupe-v-else-if.md) | disallow duplicate conditions in `v-if` / `v-else-if` chains | |
6364
| [vue/no-duplicate-attributes](./no-duplicate-attributes.md) | disallow duplication of attributes | |
65+
| [vue/no-export-in-script-setup](./no-export-in-script-setup.md) | disallow `export` in `<script setup>` | |
6466
| [vue/no-lifecycle-after-await](./no-lifecycle-after-await.md) | disallow asynchronously registered lifecycle hooks | |
6567
| [vue/no-mutating-props](./no-mutating-props.md) | disallow mutation of component props | |
6668
| [vue/no-parsing-error](./no-parsing-error.md) | disallow parsing errors in `<template>` | |
@@ -86,6 +88,8 @@ Enforce all the rules in this category, as well as all higher priority rules, wi
8688
| [vue/return-in-computed-property](./return-in-computed-property.md) | enforce that a return statement is present in computed property | |
8789
| [vue/return-in-emits-validator](./return-in-emits-validator.md) | enforce that a return statement is present in emits validator | |
8890
| [vue/use-v-on-exact](./use-v-on-exact.md) | enforce usage of `exact` modifier on `v-on` | |
91+
| [vue/valid-define-emits](./valid-define-emits.md) | enforce valid `defineEmits` compiler macro | |
92+
| [vue/valid-define-props](./valid-define-props.md) | enforce valid `defineProps` compiler macro | |
8993
| [vue/valid-template-root](./valid-template-root.md) | enforce valid template root | |
9094
| [vue/valid-v-bind](./valid-v-bind.md) | enforce valid `v-bind` directives | |
9195
| [vue/valid-v-cloak](./valid-v-cloak.md) | enforce valid `v-cloak` directives | |
@@ -95,6 +99,7 @@ Enforce all the rules in this category, as well as all higher priority rules, wi
9599
| [vue/valid-v-html](./valid-v-html.md) | enforce valid `v-html` directives | |
96100
| [vue/valid-v-if](./valid-v-if.md) | enforce valid `v-if` directives | |
97101
| [vue/valid-v-is](./valid-v-is.md) | enforce valid `v-is` directives | |
102+
| [vue/valid-v-memo](./valid-v-memo.md) | enforce valid `v-memo` directives | |
98103
| [vue/valid-v-model](./valid-v-model.md) | enforce valid `v-model` directives | |
99104
| [vue/valid-v-on](./valid-v-on.md) | enforce valid `v-on` directives | |
100105
| [vue/valid-v-once](./valid-v-once.md) | enforce valid `v-once` directives | |
@@ -136,6 +141,7 @@ Enforce all the rules in this category, as well as all higher priority rules, wi
136141
| [vue/require-prop-types](./require-prop-types.md) | require type definitions in props | |
137142
| [vue/singleline-html-element-content-newline](./singleline-html-element-content-newline.md) | require a line break before and after the contents of a singleline element | :wrench: |
138143
| [vue/v-bind-style](./v-bind-style.md) | enforce `v-bind` directive style | :wrench: |
144+
| [vue/v-on-event-hyphenation](./v-on-event-hyphenation.md) | enforce v-on event naming style on custom components in template | :wrench: |
139145
| [vue/v-on-style](./v-on-style.md) | enforce `v-on` directive style | :wrench: |
140146
| [vue/v-slot-style](./v-slot-style.md) | enforce `v-slot` directive style | :wrench: |
141147

@@ -299,10 +305,8 @@ For example:
299305
| [vue/next-tick-style](./next-tick-style.md) | enforce Promise or callback style in `nextTick` | :wrench: |
300306
| [vue/no-bare-strings-in-template](./no-bare-strings-in-template.md) | disallow the use of bare strings in `<template>` | |
301307
| [vue/no-boolean-default](./no-boolean-default.md) | disallow boolean defaults | :wrench: |
302-
| [vue/no-deprecated-v-is](./no-deprecated-v-is.md) | disallow deprecated `v-is` directive (in Vue.js 3.1.0+) | :wrench: |
303308
| [vue/no-duplicate-attr-inheritance](./no-duplicate-attr-inheritance.md) | enforce `inheritAttrs` to be set to `false` when using `v-bind="$attrs"` | |
304309
| [vue/no-empty-component-block](./no-empty-component-block.md) | disallow the `<template>` `<script>` `<style>` block to be empty | |
305-
| [vue/no-export-in-script-setup](./no-export-in-script-setup.md) | disallow `export` in `<script setup>` | |
306310
| [vue/no-invalid-model-keys](./no-invalid-model-keys.md) | require valid keys in model option | |
307311
| [vue/no-multiple-objects-in-class](./no-multiple-objects-in-class.md) | disallow to pass multiple objects into array to class | |
308312
| [vue/no-potential-component-option-typo](./no-potential-component-option-typo.md) | disallow a potential typo in your component property | |
@@ -333,12 +337,8 @@ For example:
333337
| [vue/sort-keys](./sort-keys.md) | enforce sort-keys in a manner that is compatible with order-in-components | |
334338
| [vue/static-class-names-order](./static-class-names-order.md) | enforce static class names order | :wrench: |
335339
| [vue/v-for-delimiter-style](./v-for-delimiter-style.md) | enforce `v-for` directive's delimiter style | :wrench: |
336-
| [vue/v-on-event-hyphenation](./v-on-event-hyphenation.md) | enforce v-on event naming style on custom components in template | :wrench: |
337340
| [vue/v-on-function-call](./v-on-function-call.md) | enforce or forbid parentheses after method calls without arguments in `v-on` directives | :wrench: |
338-
| [vue/valid-define-emits](./valid-define-emits.md) | enforce valid `defineEmits` compiler macro | |
339-
| [vue/valid-define-props](./valid-define-props.md) | enforce valid `defineProps` compiler macro | |
340341
| [vue/valid-next-tick](./valid-next-tick.md) | enforce valid `nextTick` function calls | :wrench: |
341-
| [vue/valid-v-memo](./valid-v-memo.md) | enforce valid `v-memo` directives | |
342342

343343
### Extension Rules
344344

docs/rules/no-deprecated-v-is.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ since: v7.11.0
99

1010
> disallow deprecated `v-is` directive (in Vue.js 3.1.0+)
1111
12+
- :gear: This rule is included in all of `"plugin:vue/vue3-essential"`, `"plugin:vue/vue3-strongly-recommended"` and `"plugin:vue/vue3-recommended"`.
1213
- :wrench: The `--fix` option on the [command line](https://eslint.org/docs/user-guide/command-line-interface#fixing-problems) can automatically fix some of the problems reported by this rule.
1314

1415
## :book: Rule Details

docs/rules/no-export-in-script-setup.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ since: v7.13.0
99

1010
> disallow `export` in `<script setup>`
1111
12+
- :gear: This rule is included in all of `"plugin:vue/vue3-essential"`, `"plugin:vue/vue3-strongly-recommended"` and `"plugin:vue/vue3-recommended"`.
13+
1214
## :book: Rule Details
1315

1416
This rule warns ES module exports in `<script setup>`.

docs/rules/v-on-event-hyphenation.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ since: v7.4.0
99

1010
> enforce v-on event naming style on custom components in template
1111
12+
- :gear: This rule is included in `"plugin:vue/vue3-strongly-recommended"` and `"plugin:vue/vue3-recommended"`.
1213
- :wrench: The `--fix` option on the [command line](https://eslint.org/docs/user-guide/command-line-interface#fixing-problems) can automatically fix some of the problems reported by this rule.
1314

1415
## :book: Rule Details

docs/rules/valid-define-emits.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ since: v7.13.0
99

1010
> enforce valid `defineEmits` compiler macro
1111
12+
- :gear: This rule is included in all of `"plugin:vue/vue3-essential"`, `"plugin:vue/vue3-strongly-recommended"` and `"plugin:vue/vue3-recommended"`.
13+
1214
This rule checks whether `defineEmits` compiler macro is valid.
1315

1416
## :book: Rule Details

docs/rules/valid-define-props.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ since: v7.13.0
99

1010
> enforce valid `defineProps` compiler macro
1111
12+
- :gear: This rule is included in all of `"plugin:vue/vue3-essential"`, `"plugin:vue/vue3-strongly-recommended"` and `"plugin:vue/vue3-recommended"`.
13+
1214
This rule checks whether `defineProps` compiler macro is valid.
1315

1416
## :book: Rule Details

docs/rules/valid-v-memo.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ since: v7.16.0
99

1010
> enforce valid `v-memo` directives
1111
12+
- :gear: This rule is included in all of `"plugin:vue/vue3-essential"`, `"plugin:vue/vue3-strongly-recommended"` and `"plugin:vue/vue3-recommended"`.
13+
1214
This rule checks whether every `v-memo` directive is valid.
1315

1416
## :book: Rule Details

lib/configs/vue3-essential.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,14 @@ module.exports = {
2222
'vue/no-deprecated-slot-attribute': 'error',
2323
'vue/no-deprecated-slot-scope-attribute': 'error',
2424
'vue/no-deprecated-v-bind-sync': 'error',
25+
'vue/no-deprecated-v-is': 'error',
2526
'vue/no-deprecated-v-on-native-modifier': 'error',
2627
'vue/no-deprecated-v-on-number-modifiers': 'error',
2728
'vue/no-deprecated-vue-config-keycodes': 'error',
2829
'vue/no-dupe-keys': 'error',
2930
'vue/no-dupe-v-else-if': 'error',
3031
'vue/no-duplicate-attributes': 'error',
32+
'vue/no-export-in-script-setup': 'error',
3133
'vue/no-lifecycle-after-await': 'error',
3234
'vue/no-mutating-props': 'error',
3335
'vue/no-parsing-error': 'error',
@@ -53,6 +55,8 @@ module.exports = {
5355
'vue/return-in-computed-property': 'error',
5456
'vue/return-in-emits-validator': 'error',
5557
'vue/use-v-on-exact': 'error',
58+
'vue/valid-define-emits': 'error',
59+
'vue/valid-define-props': 'error',
5660
'vue/valid-template-root': 'error',
5761
'vue/valid-v-bind': 'error',
5862
'vue/valid-v-cloak': 'error',
@@ -62,6 +66,7 @@ module.exports = {
6266
'vue/valid-v-html': 'error',
6367
'vue/valid-v-if': 'error',
6468
'vue/valid-v-is': 'error',
69+
'vue/valid-v-memo': 'error',
6570
'vue/valid-v-model': 'error',
6671
'vue/valid-v-on': 'error',
6772
'vue/valid-v-once': 'error',

lib/configs/vue3-strongly-recommended.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ module.exports = {
2727
'vue/require-prop-types': 'warn',
2828
'vue/singleline-html-element-content-newline': 'warn',
2929
'vue/v-bind-style': 'warn',
30+
'vue/v-on-event-hyphenation': 'warn',
3031
'vue/v-on-style': 'warn',
3132
'vue/v-slot-style': 'warn'
3233
}

lib/rules/no-deprecated-v-is.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@ module.exports = {
1212
type: 'suggestion',
1313
docs: {
1414
description: 'disallow deprecated `v-is` directive (in Vue.js 3.1.0+)',
15-
// TODO Switch to `vue3-essential` in the major version.
16-
// categories: ['vue3-essential'],
17-
categories: undefined,
15+
categories: ['vue3-essential'],
1816
url: 'https://eslint.vuejs.org/rules/no-deprecated-v-is.html'
1917
},
2018
fixable: 'code',

0 commit comments

Comments
 (0)