Skip to content

Commit

Permalink
Fix docs code example for vue/no-required-prop-with-default (#1995)
Browse files Browse the repository at this point in the history
  • Loading branch information
FloEdelmann committed Sep 28, 2022
1 parent 467e85f commit f4f946a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docs/rules/no-required-prop-with-default.md
Expand Up @@ -60,7 +60,16 @@ This rule enforces all props with default values to be optional.
default: 'Hello'
}
}
</script>
```

</eslint-code-block>

<eslint-code-block fix :rules="{'vue/no-required-prop-with-default': ['error', { autoFix: true }]}">

```vue
<script>
export default {
/* ✗ BAD */
props: {
name: {
Expand Down

0 comments on commit f4f946a

Please sign in to comment.