Skip to content

Commit f4f946a

Browse files
authored
Fix docs code example for vue/no-required-prop-with-default (#1995)
1 parent 467e85f commit f4f946a

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

docs/rules/no-required-prop-with-default.md

+9
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,16 @@ This rule enforces all props with default values to be optional.
6060
default: 'Hello'
6161
}
6262
}
63+
</script>
64+
```
6365

66+
</eslint-code-block>
67+
68+
<eslint-code-block fix :rules="{'vue/no-required-prop-with-default': ['error', { autoFix: true }]}">
69+
70+
```vue
71+
<script>
72+
export default {
6473
/* ✗ BAD */
6574
props: {
6675
name: {

0 commit comments

Comments
 (0)