You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: docs/rules/index.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -232,7 +232,7 @@ For example:
232
232
|[vue/no-deprecated-delete-set](./no-deprecated-delete-set.md)| disallow using deprecated `$delete` and `$set` (in Vue.js 3.0.0+) ||:warning:|
233
233
|[vue/no-deprecated-model-definition](./no-deprecated-model-definition.md)| disallow deprecated `model` definition (in Vue.js 3.0.0+) |:bulb:|:warning:|
234
234
|[vue/no-duplicate-attr-inheritance](./no-duplicate-attr-inheritance.md)| enforce `inheritAttrs` to be set to `false` when using `v-bind="$attrs"`||:hammer:|
235
-
|[vue/no-empty-component-block](./no-empty-component-block.md)| disallow the `<template>``<script>``<style>` block to be empty ||:hammer:|
235
+
|[vue/no-empty-component-block](./no-empty-component-block.md)| disallow the `<template>``<script>``<style>` block to be empty |:wrench:|:hammer:|
236
236
|[vue/no-multiple-objects-in-class](./no-multiple-objects-in-class.md)| disallow to pass multiple objects into array to class ||:hammer:|
237
237
|[vue/no-potential-component-option-typo](./no-potential-component-option-typo.md)| disallow a potential typo in your component property |:bulb:|:hammer:|
238
238
|[vue/no-ref-object-reactivity-loss](./no-ref-object-reactivity-loss.md)| disallow usages of ref objects that can lead to loss of reactivity ||:warning:|
Copy file name to clipboardexpand all lines: docs/rules/no-empty-component-block.md
+3-1
Original file line number
Diff line number
Diff line change
@@ -10,14 +10,16 @@ since: v7.0.0
10
10
11
11
> disallow the `<template>``<script>``<style>` block to be empty
12
12
13
+
-:wrench: The `--fix` option on the [command line](https://eslint.org/docs/user-guide/command-line-interface#fixing-problems) can automatically fix some of the problems reported by this rule.
14
+
13
15
## :book: Rule Details
14
16
15
17
This rule disallows the `<template>``<script>``<style>` block to be empty.
16
18
17
19
This rule also checks block what has attribute `src`.
18
20
See [Vue Single-File Component (SFC) Spec](https://vue-loader.vuejs.org/spec.html#src-imports).
0 commit comments