You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/rules/component-api-style.md
+4-3Lines changed: 4 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -73,14 +73,15 @@ export default {
73
73
```json
74
74
{
75
75
"vue/component-api-style": ["error",
76
-
["script-setup", "composition"] // "script-setup", "composition", or "options"
76
+
["script-setup", "composition"] // "script-setup", "composition", "composition-vue2", or "options"
77
77
]
78
78
}
79
79
```
80
80
81
81
- Array options ... Defines the API styles you want to allow. Default is `["script-setup", "composition"]`. You can use the following values.
82
-
-`"script-setup"` ... If set, allows `<script setup>`.
83
-
-`"composition"` ... If set, allows Composition API (not `<script setup>`).
82
+
-`"script-setup"` ... If set, allows [`<script setup>`](https://v3.vuejs.org/api/sfc-script-setup.html).
83
+
-`"composition"` ... If set, allows [Composition API](https://v3.vuejs.org/api/composition-api.html) (not `<script setup>`).
84
+
-`"composition-vue2"` ... If set, allows [Composition API for Vue 2](https://github.com/vuejs/composition-api) (not `<script setup>`). In particular, it allows `render`, `renderTracked` and `renderTriggered` alongside `setup`.
0 commit comments