Skip to content

Commit 41fc721

Browse files
committed
docs: update
1 parent 19963be commit 41fc721

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

docs/rules/no-empty-component-block.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ This rule disallows the `<template>` `<script>` `<style>` block to be empty.
1919
This rule also checks block what has attribute `src`.
2020
See [Vue Single-File Component (SFC) Spec](https://vue-loader.vuejs.org/spec.html#src-imports).
2121

22-
<eslint-code-block fix :rules="{'vue/no-empty-component-block': ['error']}">
22+
<eslint-code-block fix :rules="{'vue/no-empty-component-block': ['error', { autofix: true }]}">
2323

2424
```vue
2525
<!-- ✓ GOOD -->
@@ -64,7 +64,15 @@ p {
6464

6565
## :wrench: Options
6666

67-
Nothing.
67+
```json
68+
{
69+
"vue/no-duplicate-attributes": ["error", {
70+
"autofix": false,
71+
}]
72+
}
73+
```
74+
75+
- `"autofix"` ... If `true`, enable autofix. (Default: `false`)
6876

6977
## :rocket: Version
7078

0 commit comments

Comments
 (0)