Skip to content

Latest commit

 

History

History
57 lines (40 loc) · 1.23 KB

require-default-export.md

File metadata and controls

57 lines (40 loc) · 1.23 KB
pageClass sidebarDepth title description
rule-details
0
vue/require-default-export
require components to be the default export

vue/require-default-export

require components to be the default export

  • This rule has not been released yet.

📖 Rule Details

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>

🔧 Options

Nothing.

👫 Related Rules

🔍 Implementation