pageClass | sidebarDepth | title | description |
---|---|---|---|
rule-details |
0 |
vue/require-default-export |
require components to be the default export |
require components to be the default export
- ❗ This rule has not been released yet.
This rule reports when a Vue component does not have a default export, if the component is not defined as <script setup>
.
<!-- ✗ BAD -->
<script>
const foo = 'foo';
</script>
<!-- ✓ GOOD -->
<script>
export default {
data() {
return {
foo: 'foo'
};
}
};
</script>
Nothing.