Skip to content

Commit 8b64576

Browse files
authored
chore: fix no-required-prop-with-default doc (#2002)
1 parent f7960c8 commit 8b64576

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

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

+4-3
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ If a prop is declared with a default value, whether it is required or not, we ca
1818
So, a required prop with a default value is essentially the same as an optional prop.
1919
This rule enforces all props with default values to be optional.
2020

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

2323
```vue
2424
<script setup lang="ts">
@@ -48,7 +48,7 @@ This rule enforces all props with default values to be optional.
4848

4949
</eslint-code-block>
5050

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

5353
```vue
5454
<script>
@@ -60,12 +60,13 @@ This rule enforces all props with default values to be optional.
6060
default: 'Hello'
6161
}
6262
}
63+
}
6364
</script>
6465
```
6566

6667
</eslint-code-block>
6768

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

7071
```vue
7172
<script>

0 commit comments

Comments
 (0)