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 14b01d5

Browse filesBrowse files
waynzhFloEdelmann
authored andcommitted
Add vue/valid-define-options to vue3-essential config (#2653)
1 parent 0ef2ae6 commit 14b01d5
Copy full SHA for 14b01d5

File tree

5 files changed

+6
-4
lines changed
Filter options

5 files changed

+6
-4
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
@@ -108,6 +108,7 @@ Rules in this category are enabled for all presets provided by eslint-plugin-vue
108108
| [vue/use-v-on-exact] | enforce usage of `exact` modifier on `v-on` | | :three::two::hammer: |
109109
| [vue/valid-attribute-name] | require valid attribute names | | :three::two::warning: |
110110
| [vue/valid-define-emits] | enforce valid `defineEmits` compiler macro | | :three::two::warning: |
111+
| [vue/valid-define-options] | enforce valid `defineOptions` compiler macro | | :three::warning: |
111112
| [vue/valid-define-props] | enforce valid `defineProps` compiler macro | | :three::two::warning: |
112113
| [vue/valid-model-definition] | require valid keys in model option | | :two::warning: |
113114
| [vue/valid-next-tick] | enforce valid `nextTick` function calls | :wrench::bulb: | :three::two::warning: |
@@ -288,7 +289,6 @@ For example:
288289
| [vue/v-for-delimiter-style] | enforce `v-for` directive's delimiter style | :wrench: | :lipstick: |
289290
| [vue/v-if-else-key] | require key attribute for conditionally rendered repeated components | :wrench: | :warning: |
290291
| [vue/v-on-handler-style] | enforce writing style for handlers in `v-on` directives | :wrench: | :hammer: |
291-
| [vue/valid-define-options] | enforce valid `defineOptions` compiler macro | | :warning: |
292292

293293
</rules-table>
294294

‎docs/rules/valid-define-options.md

Copy file name to clipboardExpand all lines: docs/rules/valid-define-options.md
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ since: v9.13.0
1010

1111
> enforce valid `defineOptions` compiler macro
1212
13+
- :gear: This rule is included in all of `"plugin:vue/essential"`, `*.configs["flat/essential"]`, `"plugin:vue/strongly-recommended"`, `*.configs["flat/strongly-recommended"]`, `"plugin:vue/recommended"` and `*.configs["flat/recommended"]`.
14+
1315
This rule checks whether `defineOptions` compiler macro is valid.
1416

1517
## :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
@@ -74,6 +74,7 @@ module.exports = [
7474
'vue/use-v-on-exact': 'error',
7575
'vue/valid-attribute-name': 'error',
7676
'vue/valid-define-emits': 'error',
77+
'vue/valid-define-options': 'error',
7778
'vue/valid-define-props': 'error',
7879
'vue/valid-next-tick': 'error',
7980
'vue/valid-template-root': '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
@@ -69,6 +69,7 @@ module.exports = {
6969
'vue/use-v-on-exact': 'error',
7070
'vue/valid-attribute-name': 'error',
7171
'vue/valid-define-emits': 'error',
72+
'vue/valid-define-options': 'error',
7273
'vue/valid-define-props': 'error',
7374
'vue/valid-next-tick': 'error',
7475
'vue/valid-template-root': 'error',

‎lib/rules/valid-define-options.js

Copy file name to clipboardExpand all lines: lib/rules/valid-define-options.js
+1-3Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@ module.exports = {
1212
type: 'problem',
1313
docs: {
1414
description: 'enforce valid `defineOptions` compiler macro',
15-
// TODO Switch in the next major version
16-
// categories: ['vue3-essential', 'vue2-essential'],
17-
categories: undefined,
15+
categories: ['vue3-essential'],
1816
url: 'https://eslint.vuejs.org/rules/valid-define-options.html'
1917
},
2018
fixable: null,

0 commit comments

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